Re: [Samba] INTERNAL ERROR: Signal 11 in smbd (samba 3.0.2a)

2004-02-27 Thread Simone Lazzaris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jeremy Allison wrote:

| Can you compile with debug symbols included (-g) so we can
| get some info as to chat line this is failing on ?
|
| Thanks,
|
|   Jeremy.
Mmm... I'm not very used to gdb... anyway, I've compiled smbd with the
- --enable-debug switch on (via ./configure).
Firing gdb --pid to attach to a running process, and waiting for it to
crash, I've obtained the following data:
(gdb) info program
~Using the running image of attached process 6930.
Program stopped at 0x81a78ea.
It stopped with signal SIGSEGV, Segmentation fault.
(gdb) backtrace
#0  0x081a78ea in get_stored_queue_info ()
#1  0x081a7c49 in print_queue_status ()
#2  0x0810cf00 in _spoolss_enumjobs ()
#3  0x080fee9a in api_spoolss_enumjobs ()
#4  0x0812a19c in api_rpcTNP ()
#5  0x08129f1e in api_pipe_request ()
#6  0x08124484 in process_request_pdu ()
#7  0x08124671 in process_complete_pdu ()
#8  0x081248f6 in process_incoming_data ()
#9  0x08124ab3 in write_to_internal_pipe ()
#10 0x08124a33 in write_to_pipe ()
#11 0x08087feb in api_fd_reply ()
#12 0x080881d7 in named_pipe ()
#13 0x08088beb in reply_trans ()
#14 0x080bd4f5 in switch_message ()
#15 0x080bd581 in construct_reply ()
#16 0x080bd891 in process_smb ()
#17 0x080be2fd in smbd_process ()
#18 0x081ea34b in main (argc=2, argv=0xbad4) at smbd/server.c:887
#19 0x4026c306 in __libc_start_main (main=0x81e9ac8 main, argc=2,
~ubp_av=0xbad4, init=0x8075420 _init, fini=0x81ea5f0 _fini,
~rtld_fini=0x4000d2fc _dl_fini, stack_end=0xbacc)
~at ../sysdeps/generic/libc-start.c:129


(gdb) info frame
Stack level 0, frame at 0xb018:
~ eip = 0x81a78ea in get_stored_queue_info; saved eip 0x81a7c49
~ called by frame at 0xb168
~ Arglist at 0xb018, args:
~ Locals at 0xb018, Previous frame's sp is 0x0
~ Saved registers:
~  ebx at 0xb00c, ebp at 0xb018, esi at 0xb010, edi at
0xb014,
~  eip at 0xb01c
(note: info locals seems to have some problem (no symbol table) but as
I've said, I'm not used to gdb).
Do you need any more data ? There's some more testing I can do ?

(And, by the way, thanks in advance).

- --
Simone Lazzaris
Task84 S.p.A.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAPw4b/38nB9eqrJYRArxGAKCt730+rfKcjI9JJLvMnAX7Syd4tQCguLZk
4jfuLejqZiacFqYN7Qx1+nM=
=CuBq
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] INTERNAL ERROR: Signal 11 in smbd (samba 3.0.2a)

2004-02-27 Thread Simone Lazzaris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
As I've said, I'm not vary proficient with gdb... here are another
inspection (maybe more useful this time).


Program received signal SIGSEGV, Segmentation fault.
0x082071ab in get_stored_queue_info (pdb=0x8397e68, snum=6,
pcount=0xb064,
~ppqueue=0xb1ac) at printing/printing.c:2186
2186jobid = IVAL(cgdata.dptr, i*4);
(gdb) print i
$2 = 1012
(gdb) print extra_count
$3 = 1130
(gdb) print cgdata.dsize
$4 = 4520
(gdb) print cgdata.dsize/4
$5 = 1130
(gdb) print cgdata
$6 = {dptr = 0x83bff20 ~\006, dsize = 4520}
(gdb) l
2181/* Add in the changed jobids. */
2182for( i  = 0; i  extra_count; i++) {
2183uint32 jobid;
2184struct printjob *pjob;
2185
2186jobid = IVAL(cgdata.dptr, i*4);
2187DEBUG(5,(get_stored_queue_info: changed job =
%u\n,
(unsigned int)jobid));
2188pjob = print_job_find(snum, jobid);
2189if (!pjob) {
2190DEBUG(5,(get_stored_queue_info: failed to
find changed job = %u\n, (unsigned int)jobid));
(gdb)
(gdb) backtrace
#0  0x082071ab in get_stored_queue_info (pdb=0x8397e68, snum=6,
~pcount=0xb064, ppqueue=0xb1ac) at printing/printing.c:2186
#1  0x0820763a in print_queue_status (snum=6, ppqueue=0xb1ac,
~status=0xb1b0) at printing/printing.c:2283
#2  0x0813c149 in _spoolss_enumjobs (p=0x839c530, q_u=0xb320,
~r_u=0xb310) at rpc_server/srv_spoolss_nt.c:6517
#3  0x0812a99c in api_spoolss_enumjobs (p=0x839c530)
~at rpc_server/srv_spoolss.c:693
#4  0x08160654 in api_rpcTNP (p=0x839c530, rpc_name=0x839c53e spoolss,
~api_rpc_cmds=0x82dab84, n_cmds=51) at rpc_server/srv_pipe.c:1530
#5  0x081602d3 in api_pipe_request (p=0x839c530) at
rpc_server/srv_pipe.c:1476
#6  0x08159081 in process_request_pdu (p=0x839c530, rpc_in_p=0xb530)
~at rpc_server/srv_pipe_hnd.c:669
#7  0x0815931f in process_complete_pdu (p=0x839c530)
~at rpc_server/srv_pipe_hnd.c:741
#8  0x08159687 in process_incoming_data (p=0x839c530, data=0x83969b8 (,
n=48)
~at rpc_server/srv_pipe_hnd.c:839
#9  0x081598b3 in write_to_internal_pipe (np_conn=0x839c530,
~data=0x83969b8 (, n=64) at rpc_server/srv_pipe_hnd.c:878
#10 0x0815981a in write_to_pipe (p=0x839c3f0, data=0x83969a8 \005, n=64)
~at rpc_server/srv_pipe_hnd.c:861
#11 0x0808e605 in api_fd_reply (conn=0x8397810, vuid=100,
~outbuf=0x40547008 , setup=0x82f5830, data=0x83969a8 \005,
params=0x0,
~suwcnt=2, tdscnt=64, tpscnt=0, mdrcnt=1024, mprcnt=0) at smbd/ipc.c:306
#12 0x0808e889 in named_pipe (conn=0x8397810, vuid=100,
outbuf=0x40547008 ,
~name=0xb716 , setup=0x82f5830, data=0x83969a8 \005, params=0x0,
~suwcnt=2, tdscnt=64, tpscnt=0, msrcnt=0, mdrcnt=1024, mprcnt=0)
~at smbd/ipc.c:350
#13 0x0808f674 in reply_trans (conn=0x8397810, inbuf=0x40526008 ,
~outbuf=0x40547008 , size=152, bufsize=16644) at smbd/ipc.c:558
#14 0x080d5a4c in switch_message (type=37, inbuf=0x40526008 ,
~outbuf=0x40547008 , size=152, bufsize=16644) at smbd/process.c:767
#15 0x080d5b08 in construct_reply (inbuf=0x40526008 ,
outbuf=0x40547008 ,
~size=152, bufsize=16644) at smbd/process.c:797
#16 0x080d5eb0 in process_smb (inbuf=0x40526008 , outbuf=0x40547008 )
~at smbd/process.c:897
#17 0x080d6c88 in smbd_process () at smbd/process.c:1328
#18 0x08258e07 in main (argc=2, argv=0xbac4) at smbd/server.c:887
#19 0x4026c306 in __libc_start_main (main=0x8258584 main, argc=2,
~ubp_av=0xbac4, init=0x80754a0 _init, fini=0x8259160 _fini,
~rtld_fini=0x4000d2fc _dl_fini, stack_end=0xbabc)
~at ../sysdeps/generic/libc-start.c:129
(gdb) print cgdata
$7 = {dptr = 0x83bff20 ~\006, dsize = 4520}
- --
Simone Lazzaris
Task84 S.p.A.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAPzgv/38nB9eqrJYRAq8YAKCl8owvKLC+eVx62OfpsMM6BXGaOwCfZwyL
YT2ux6RgMktgLpJbIMNkkEU=
=2QsD
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] INTERNAL ERROR: Signal 11 in smbd (samba 3.0.2a)

2004-02-26 Thread Simone Lazzaris
 name = utprint
[UTHPGL_5]
~   comment = HP laserjet 5000 HPGL 5e ufficio tecnico
~   directory = /var/spool/samba
~   browseable = yes
~   public = yes
~   printable = yes
~   create mode = 0700
~   valid users = @uftec
~   guest ok = no
~   read only = yes
~   printer name = utprint
[UTHPGL_6]
~   comment = HP laserjet 5000 HPGL 6e ufficio tecnico
~   directory = /var/spool/samba
~   browseable = yes
~   public = yes
~   printable = yes
~   create mode = 0700
~   valid users = @uftec
~   guest ok = no
~   read only = yes
~   printer name = utprint
[UTEPLAFR]
~   comment = HP laserjet 5000 HPGL 5e x Eplan Fronte/Retro ufficio tecnico
~   directory = /var/spool/samba
~   browseable = yes
~   public = yes
~   printable = yes
~   create mode = 0700
~   valid users = @uftec
~   guest ok = no
~   read only = yes
~   printer name = utprint
[UTEPLA_S]
~   comment = HP laserjet 5000 HPGL 5e x Eplan Singolo ufficio tecnico
~   directory = /var/spool/samba
~   browseable = yes
~   public = yes
~   printable = yes
~   create mode = 0700
~   valid users = @uftec
~   guest ok = no
~   read only = yes
~   printer name = utprint
[UTHP_GEN]
~   comment = HP laserjet 5000 generica ufficio tecnico
~   directory = /var/spool/samba
~   browseable = yes
~   public = yes
~   printable = yes
~   create mode = 0700
~   valid users = @uftec
~   guest ok = no
~   read only = yes
~   printer name = utprint
[UTHPFAST]
~   comment = HP laserjet 5000 prioritaria ufficio tecnico
~   directory = /var/spool/samba
~   browseable = yes
~   public = yes
~   printable = yes
~   create mode = 0700
~   valid users = @uftec
~   guest ok = no
~   read only = yes
~   printer name = utprint
[lav]
~   comment = Lavori progrettazione
~   path = /home/prg/lavori
~   public = no
~   writable = yes
~   printable = no
~   valid users = @amminrete @analogico @lamiera @col_ana @col_lam
~   force create mode = 660
~   force directory mode = 770
[apps]
~   comment = Applicazioni comuni
~   path = /home/prg/applicazioni
~   public = no
~   writable = yes
~   printable = no
~   valid users = @amminrete @analogico @lamiera @col_ana @col_lam
@direzione @uftec @amministrazione
~   force create mode = 660
~   force directory mode = 770
[uftec]
~   comment = Ufficio Tecnico
~   path = /home/gest/ut
~   public = no
~   writable = yes
~   printable = no
~   valid users = @uftec
~   force create mode = 660
~   force directory mode = 770
[direz]
~   comment = Direzione
~   path = /home/gest/direzione
~   public = no
~   writable = yes
~   printable = no
~   valid users = @direzione
~   force create mode = 660
~   force directory mode = 770
[ammin]
~   comment = Amministrazione
~   path = /home/gest/amministrazione
~   public = no
~   writable = yes
~   printable = no
~   valid users = @amministrazione
~   force create mode = 660
~   force directory mode = 770
[com]
~   comment = cartella con file in comune
~   path = /home/gest/comuni
~   public = no
~   writable = yes
~   printable = no
~   force create mode = 666
~   force directory mode = 770
Note: we need to address the very same printer with different names (due
to some limitation in some legacy application). utprint002 is actualy
the same printer duplicated in CUPS, and seems to works. Duplicating
printers via samba seems to have some trouble (but this is NOT a
scientific analisys).
Any help ?

- --
Simone Lazzaris
Task84 S.p.A.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAPgps/38nB9eqrJYRArBPAKCq+dqvJzfnJBHOYGp1NYPionO4egCfdEyt
cG9cLGvkm12XsGEHqxvb+MU=
=o9Hg
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Unable to use Samba 3.0.1 as PDC

2004-01-29 Thread Simone Lazzaris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
I'm trying to use Samba 3.0.1 on a RedHat 7.0 system as a PDC, with
tdbsam as a backend, migrating from a NT4.0 PDC (the machine on which
NT4 is running is going to be dismessed).
I've manually created the user accounts as local users, I've manually
populated passdb.tdb, setting SIDs and RIDs identical to the existing
ones (manually obtained with 'getsid' on the NT4 machine).
I've manually created the local groups, and mapped the existing nt4
groups onto them.
I've create a machine account as a local user and added with 'smbpasswd
- -a -m' to the database.
All seems fine, but it's not working.

Disconnecting the existing NT4 server and restarting samba as a PDC, I
cannot log on from the other servers/workstations. Note that accessing
the shares without accessing the domain works as usual.
The error message I've got from a Win2000 server (and also from another
NT4 workstation) was something like incorrect user namo or password.
I've tryed to figure out what's not working, upping the debug level to
3, and the only thing that I've found suspicous is
[2004/01/28 16:43:09, 2]
rpc_server/srv_samr_nt.c:access_check_samr_object(93)
~  _samr_open_domain: ACCESS DENIED  (requested: 0x0211)
I'm including also my smb.conf file:

~ BEGIN of SMB.CONF
[global]
~   netbios name = FS5
~   idmap uid = 1-2
~   idmap gid = 1-2
~   winbind enum users = yes
~   winbind enum groups = yes
~   workgroup = Task_84

~   server string = Server FS5

~   printcap name = /etc/printcap
~   load printers = yes
~printing = cups

~   guest account = nobody
~   map to guest = never
~   log file = /var/log/samba/samba3.log
~   log level = 3
~   max log size = 0
~   security = user

~  encrypt passwords = yes
~  passdb backend = tdbsam:/usr/local/samba3/lib/passdb.tdb


~  unix password sync = Yes
~  passwd program = /usr/bin/passwd %u
~  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
~   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	interfaces = 10.0.1.32/24

~   local master = yes

~   os level = 65

~   domain master = yes

~   preferred master = yes

~  domain logons = yes

~logon script = script\%U.bat
~   wins server = 10.0.1.34
~   dns proxy = no

disable spoolss = no
use client driver = yes
[netlogon]
path = /var/lib/samba3/netlogon
comment = Servizio di Logon
guest ok = yes
browseable = No
[homes]
~   comment = Home Directories
~   browseable = no
~   writable = yes
~   hide dot files = yes
[laserjet]
~   comment = Stampante in progettazione
~   directory = /var/spool/samba
~   browseable = yes
~   public = yes
~   printable = yes
~   create mode = 0700
~   guest ok = no
~   read only = yes
~   printer name = laserjet
[lav]
~   comment = Lavori progrettazione
~   path = /home/prg/lavori
~   public = no
~   writable = yes
~   printable = no
~   valid users = @amminrete @analogico @lamiera @col_ana @col_lam
~   force create mode = 660
~   force directory mode = 770
[apps]
~   comment = Applicazioni comuni
~   path = /home/prg/applicazioni
~   public = no
~   writable = yes
~   printable = no
~   valid users = @amminrete @analogico @lamiera @col_ana @col_lam
@direzione @uftec @amministrazione
~   force create mode = 660
~   force directory mode = 770
~ END of SMB.CONF
Any Ideas ?

By the way... samba was installed from sources, compiled with kgcc
(aka egcs-2.91.66) 'cos gcc-2.96-85 barfed at some point of the
compilation. Can this cause some troubles ?
- --
Simone Lazzaris
Task84 S.p.A.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAGMmu/38nB9eqrJYRAvDsAJoCRfmuMt1baloA7B2pdcumCJrbbACfTMp9
JScfe4gLsSkscXh0gAdD16Q=
=bogE
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Unable to use Samba 3.0.1 as PDC

2004-01-29 Thread Simone Lazzaris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
I'm trying to use Samba 3.0.1 on a RedHat 7.0 system as a PDC, with
tdbsam as a backend, migrating from a NT4.0 PDC (the machine on which
NT4 is running is going to be dismessed).
I've manually created the user accounts as local users, I've manually
populated passdb.tdb, setting SIDs and RIDs identical to the existing
ones (manually obtained with 'getsid' on the NT4 machine).
I've manually created the local groups, and mapped the existing nt4
groups onto them.
I've create a machine account as a local user and added with 'smbpasswd
- -a -m' to the database.
All seems fine, but it's not working.

Disconnecting the existing NT4 server and restarting samba as a PDC, I
cannot log on from the other servers/workstations. Note that accessing
the shares without accessing the domain works as usual.
The error message I've got from a Win2000 server (and also from another
NT4 workstation) was something like incorrect user namo or password.
I've tryed to figure out what's not working, upping the debug level to
3, and the only thing that I've found suspicous is
[2004/01/28 16:43:09, 2]
rpc_server/srv_samr_nt.c:access_check_samr_object(93)
~  _samr_open_domain: ACCESS DENIED  (requested: 0x0211)
I'm including also my smb.conf file:

~ BEGIN of SMB.CONF
[global]
~   netbios name = FS5
~   idmap uid = 1-2
~   idmap gid = 1-2
~   winbind enum users = yes
~   winbind enum groups = yes
~   workgroup = Task_84

~   server string = Server FS5

~   printcap name = /etc/printcap
~   load printers = yes
~printing = cups

~   guest account = nobody
~   map to guest = never
~   log file = /var/log/samba/samba3.log
~   log level = 3
~   max log size = 0
~   security = user

~  encrypt passwords = yes
~  passdb backend = tdbsam:/usr/local/samba3/lib/passdb.tdb


~  unix password sync = Yes
~  passwd program = /usr/bin/passwd %u
~  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
~   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	interfaces = 10.0.1.32/24

~   local master = yes

~   os level = 65

~   domain master = yes

~   preferred master = yes

~  domain logons = yes

~logon script = script\%U.bat
~   wins server = 10.0.1.34
~   dns proxy = no

disable spoolss = no
use client driver = yes
[netlogon]
path = /var/lib/samba3/netlogon
comment = Servizio di Logon
guest ok = yes
browseable = No
[homes]
~   comment = Home Directories
~   browseable = no
~   writable = yes
~   hide dot files = yes
[laserjet]
~   comment = Stampante in progettazione
~   directory = /var/spool/samba
~   browseable = yes
~   public = yes
~   printable = yes
~   create mode = 0700
~   guest ok = no
~   read only = yes
~   printer name = laserjet
[lav]
~   comment = Lavori progrettazione
~   path = /home/prg/lavori
~   public = no
~   writable = yes
~   printable = no
~   valid users = @amminrete @analogico @lamiera @col_ana @col_lam
~   force create mode = 660
~   force directory mode = 770
[apps]
~   comment = Applicazioni comuni
~   path = /home/prg/applicazioni
~   public = no
~   writable = yes
~   printable = no
~   valid users = @amminrete @analogico @lamiera @col_ana @col_lam
@direzione @uftec @amministrazione
~   force create mode = 660
~   force directory mode = 770
~ END of SMB.CONF
Any Ideas ?

By the way... samba was installed from sources, compiled with kgcc
(aka egcs-2.91.66) 'cos gcc-2.96-85 barfed at some point of the
compilation. Can this cause some troubles ?
- --
Simone Lazzaris
Task84 S.p.A.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAGON7/38nB9eqrJYRAjMFAJ4wFQL7GulMTVUcHAv4IOmv47X4JgCfcJ0/
VglWSKoVGKKOgdCHa2eGcaw=
=Ybzq
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba