Bug 220 - smbd reloads smb.conf changes -- then segfaults
smbd reloads smb.conf changes -- then segfaults
Product: Samba 3.0
Classification: Unclassified
Component: File Services
Other other
: P2 regression
: none
Assigned To: Gerald (Jerry) Carter
Depends on:
  Show dependency treegraph
Reported: 2003-07-12 15:36 UTC by Steve Langasek
Modified: 2005-08-24 10:26 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Steve Langasek 2003-07-12 15:36:55 UTC
Whenever I make a change to the smb.conf on my 3.0.0beta1 PDC/fileserver, the
processes corresponding to open client connections begin to segfault.  This
tends to be a problem when a user has a locking-sensitive application in use at
the time.

Example gdb backtrace (no debugging symbols, unfortunately):

#0  0x401e6b89 in wait4 () from /lib/libc.so.6
#1  0x4025a000 in sys_sigabbrev () from /lib/libc.so.6
#2  0x40189712 in strtold_l () from /lib/libc.so.6
#3  0x40189815 in system () from /lib/libc.so.6
#4  0x0817c5cd in smb_panic ()
#5  0x0816d6d2 in dbgtext ()
#6  0x0816d725 in dbgtext ()
#7  0x401739d8 in sigaction () from /lib/libc.so.6
#8  0x08181b7b in alloc_sub_basic ()
#9  0x0807686b in lp_talloc_free ()
#10 0x0807779f in lp_servicename ()
#11 0x080b87ed in make_connection ()
#12 0x08093df3 in reply_tcon_and_X ()
#13 0x080b5c2e in respond_to_all_remaining_local_messages ()
#14 0x080b5cce in respond_to_all_remaining_local_messages ()
#15 0x080b5f73 in process_smb ()
#16 0x080b68e2 in smbd_process ()
#17 0x081d21bf in main ()
#18 0x40162a51 in __libc_start_main () from /lib/libc.so.6
Comment 1 Volker Lendecke 2003-07-16 03:58:23 UTC
I could not reproduce it here, I think we need more info. For example your
smb.conf and the exact changes you have made.

Feel free to reopen this bug with more info, please don't feel offended by the
'worksforme' :-)

Comment 2 Steve Langasek 2003-07-16 07:09:55 UTC
Any change at all causes the problem -- even a change to the debug level.  I'll
have to check over the smb.conf on this machine and sanitize it before
forwarding it on.

Some factors which might help explain why it's not easily reproducible -- so
far, I've only had the problem with 3.0.0beta1, and haven't been able to upgrade
yet to beta2, so it may be fixed; the segfaults are due to clients connected at
the time the smb.conf is reloaded; and the number of segfaults does *not*
correspond to the number of clients actually connected at the time, it's always

All of which contributes to my not having set up a reproducible test case yet.

I noticed after filing the bug that one of the reports on the Debian packages,
http://bugs.debian.org/180711, seems to correspond to this bug as well -- so
it's not just me... :)
Comment 3 Gerald (Jerry) Carter 2003-08-06 22:38:37 UTC
This has either ben fixed or is _really_ hard to reproduce.  In either
case, it doesn't look like a P3.  Steve said it would be a couple 
of weeks before he could try out a new snapshot on the problematic server.
Comment 4 Gerald (Jerry) Carter 2003-09-09 11:20:57 UTC
Sorry Steve.  Beta1 is really old and we've seen no signs 
of reproducing this on newer releases.
Comment 5 Gerald (Jerry) Carter 2005-02-07 08:39:34 UTC
originally reported against 3.0.0beta1.  CLeaning out 
non-production release versions.
Comment 6 Gerald (Jerry) Carter 2005-08-24 10:26:14 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.