[Samba] smbd hanging on OS X 10.4.8
nicerobot
org.samba at nicerobot.org
Fri Oct 6 23:54:40 GMT 2006
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
James Peach wrote:
> On 06/10/06, nicerobot <org.samba at nicerobot.org> wrote:
>> Right, -i was intentional so that I can watch what it's doing from the
>> command-line, so that I can see the messages as a smbclient attempts to
>> connect. But it is actually hanging before it ever gets to a point in
>> the initialization that it will be capable of responding to connection
>> requests so I'll never see any debugging messages beyond the point where
>> it hangs.
>
> Can you ktrace the process whilst it is hung? Is it making any system
> calls?
>
>
More information about the samba
mailing list