Hi, If process all my mounts prior to the "..." bit below. It looks as if it's hanging while processing some printer config. On that assumption and since I don't and never have had any printers attached, I've commented out the '[printers]' section from smb.conf. No section contains a 'printable = yes'. I've tried with all sections containing 'printable = no'. The '[global]' section includes 'load printers = no'. Still it hangs. Any clue or tips on things to try are greatly appreciated. Apple hasn't been able to reproduce the problem and haven't been able to come up with any recommendations that I haven't already tried. Thanks $ smbd -V Version 3.0.10 $ smbd -i -d 100 -s /etc/smb.conf ... lp_servicenumber: couldn't find printers lp_file_list_changed() file /etc/smb.conf -> /etc/smb.conf last mod_time: Mon Oct 2 13:46:25 2006 added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0 Netbios name list:- my_netbios_names[0]="DODO" loaded services fcntl_lock 6 8 0 1 3 fcntl_lock: Lock call successful Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Opening cache file at /private/var/samba/gencache.tdb namecache_enable: enabling netbios namecache, timeout 30 seconds reghook_cache_add: Adding key [/HKLM/SYSTEM/CurrentControlSet/Control/Print] sorted_tree_add: Enter sorted_tree_find_child: Did not find [HKLM] sorted_tree_birth_child: First child of node [NULL]! [HKLM] sorted_tree_find_child: Did not find [SYSTEM] sorted_tree_birth_child: First child of node [HKLM]! [SYSTEM] sorted_tree_find_child: Did not find [CurrentControlSet] sorted_tree_birth_child: First child of node [SYSTEM]! [CurrentControlSet] sorted_tree_find_child: Did not find [Control] sorted_tree_birth_child: First child of node [CurrentControlSet]! [Control] sorted_tree_find_child: Did not find [Print] sorted_tree_birth_child: First child of node [Control]! [Print] sorted_tree_add: Successfully added node [HKLM/SYSTEM/CurrentControlSet/Control/Print] to tree sorted_tree_add: Exit reghook_dump_cache: Starting cache dump now... ROOT/: [HKLM] (NULL) ROOT/HKLM/: [SYSTEM] (NULL) ROOT/HKLM/SYSTEM/: [CurrentControlSet] (NULL) ROOT/HKLM/SYSTEM/CurrentControlSet/: [Control] (NULL) ROOT/HKLM/SYSTEM/CurrentControlSet/Control/: [Print] (data)
On 05/10/06, nicerobot <org.samba@nicerobot.org> wrote:> Hi, > If process all my mounts prior to the "..." bit below. It looks as if > it's hanging while processing some printer config. On that assumptionCan you please describe exactly what problem is occurring and the steps that you take to trigger it?> and since I don't and never have had any printers attached, I've > commented out the '[printers]' section from smb.conf. No section > contains a 'printable = yes'. I've tried with all sections containing > 'printable = no'. The '[global]' section includes 'load printers = no'. > Still it hangs. Any clue or tips on things to try are greatly > appreciated. Apple hasn't been able to reproduce the problem and haven't > been able to come up with any recommendations that I haven't already tried. > Thanks > > $ smbd -V > Version 3.0.10 > $ smbd -i -d 100 -s /etc/smb.conf > ... > lp_servicenumber: couldn't find printers > lp_file_list_changed() > file /etc/smb.conf -> /etc/smb.conf last mod_time: Mon Oct 2 13:46:25 2006 > > added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0 > Netbios name list:- > my_netbios_names[0]="DODO" > loaded services > fcntl_lock 6 8 0 1 3 > fcntl_lock: Lock call successful > Registered MSG_REQ_POOL_USAGE > Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED > Opening cache file at /private/var/samba/gencache.tdb > namecache_enable: enabling netbios namecache, timeout 30 seconds > reghook_cache_add: Adding key [/HKLM/SYSTEM/CurrentControlSet/Control/Print] > sorted_tree_add: Enter > sorted_tree_find_child: Did not find [HKLM] > sorted_tree_birth_child: First child of node [NULL]! [HKLM] > sorted_tree_find_child: Did not find [SYSTEM] > sorted_tree_birth_child: First child of node [HKLM]! [SYSTEM] > sorted_tree_find_child: Did not find [CurrentControlSet] > sorted_tree_birth_child: First child of node [SYSTEM]! [CurrentControlSet] > sorted_tree_find_child: Did not find [Control] > sorted_tree_birth_child: First child of node [CurrentControlSet]! [Control] > sorted_tree_find_child: Did not find [Print] > sorted_tree_birth_child: First child of node [Control]! [Print] > sorted_tree_add: Successfully added node > [HKLM/SYSTEM/CurrentControlSet/Control/Print] to tree > sorted_tree_add: Exit > reghook_dump_cache: Starting cache dump now... > ROOT/: [HKLM] (NULL) > ROOT/HKLM/: [SYSTEM] (NULL) > ROOT/HKLM/SYSTEM/: [CurrentControlSet] (NULL) > ROOT/HKLM/SYSTEM/CurrentControlSet/: [Control] (NULL) > ROOT/HKLM/SYSTEM/CurrentControlSet/Control/: [Print] (data) > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >-- James Peach | jorgar@gmail.com
Great suggestion. I wasn't sure what the .tdb files were so didn't really consider renaming the directory. Once I moved all the files out of /var/samba, smbd started up perfectly and recreated all the .tdb files. Thank for the great guidance. James Peach wrote:> On 06/10/06, nicerobot <org.samba@nicerobot.org> wrote: >> Great idea. Sorry, I should have already done that. I ran ktrace several >> times letting it hang for several minutes just to check if it's polling. >> All produce the same trace. >> lsof doesn't show any files in /private/var/samba that don't belong to >> the hung smbd process. >> Also, not sure it matters but from scanning the full trace, the only >> files in /private/var/samba not accessed are account_policy.tdb and >> unexpected.tdb. >> >> Here is the tail of the file from the last item printed to the console >> through to my interrupt: >> >> 512 smbd CALL write(0x1,0x503e90,0x3c) >> 512 smbd GIO fd 1 wrote 60 bytes >> "ROOT/HKLM/SYSTEM/CurrentControlSet/Control/: [Print] (data) >> " >> 512 smbd RET write 60/0x3c >> 512 smbd CALL stat(0x255e2c,0xbffff5c0) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL unlink(0x255e2c) >> 512 smbd NAMI "/private/var/samba/printing.tdb" >> 512 smbd RET unlink -1 errno 2 No such file or directory >> 512 smbd CALL stat(0x255e2c,0xbffff5c0) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL mkdir(0xbffff6c0,0x1ed) >> 512 smbd NAMI "/private/var/samba/printing" >> 512 smbd RET mkdir -1 errno 17 File exists >> 512 smbd CALL stat(0x255e2c,0xbffff560) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL open(0x255e2c,0x202,0x180) >> 512 smbd NAMI "/private/var/samba/ntdrivers.tdb" >> 512 smbd RET open 15/0xf >> 512 smbd CALL fcntl(0xf,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL read(0xf,0x50432c,0xa8) >> 512 smbd GIO fd 15 read 168 bytes >> "TDB file >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&\^A\^Ym\0\0\0\M^C\0\0\^B\M-8\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" >> >> 512 smbd RET read 168/0xa8 >> 512 smbd CALL fstat(0xf,0xbffff530) >> 512 smbd RET fstat 0 >> 512 smbd CALL mmap(0,0x2000,0x3,0x1,0xf,0) >> 512 smbd RET mmap 3047424/0x2e8000 >> 512 smbd CALL fcntl(0xf,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL stat(0x255e2c,0xbffff560) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL open(0x255e2c,0x202,0x180) >> 512 smbd NAMI "/private/var/samba/ntprinters.tdb" >> 512 smbd RET open 16/0x10 >> 512 smbd CALL fcntl(0x10,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL read(0x10,0x50445c,0xa8) >> 512 smbd GIO fd 16 read 168 bytes >> "TDB file >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&\^A\^Ym\0\0\0\M^C\0\0\^B\M-8\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" >> >> 512 smbd RET read 168/0xa8 >> 512 smbd CALL fstat(0x10,0xbffff530) >> 512 smbd RET fstat 0 >> 512 smbd CALL mmap(0,0x2000,0x3,0x1,0x10,0) >> 512 smbd RET mmap 3055616/0x2ea000 >> 512 smbd CALL fcntl(0x10,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL stat(0x255e2c,0xbffff560) >> 512 smbd NAMI "/private/var/samba" >> 512 smbd RET stat 0 >> 512 smbd CALL open(0x255e2c,0x202,0x180) >> 512 smbd NAMI "/private/var/samba/ntforms.tdb" >> 512 smbd RET open 17/0x11 >> 512 smbd CALL fcntl(0x11,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd CALL read(0x11,0x5045ac,0xa8) >> 512 smbd GIO fd 17 read 168 bytes >> "TDB file >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&\^A\^Ym\0\0\0\M^C\0\0\^B\M-8\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ >> >> >> \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" >> >> 512 smbd RET read 168/0xa8 >> 512 smbd CALL fstat(0x11,0xbffff530) >> 512 smbd RET fstat 0 >> 512 smbd CALL mmap(0,0x6d8,0x3,0x1,0x11,0) >> 512 smbd RET mmap 3063808/0x2ec000 >> 512 smbd CALL fcntl(0x11,0x9,0xbffff4b0) >> 512 smbd RET fcntl 0 >> 512 smbd PSIG SIGINT SIG_DFL > > So at this point, is smbd hung or is it still poking around in the > TDBs? Could you see > what happens when you moving your existing TDB files aside? >