# uname -a SunOS blade 5.10 Generic_127111-11 sun4u sparc SUNW,Sun-Blade-1000 # testparm -v -s 2>&1|grep "socket address" socket address = ***1*** # ps -ef |grep smbd |grep -v grep ***2*** # time /usr/sbin/smbd -F real 0m0.269s ***3*** user 0m0.088s sys 0m0.081s # cat /var/log/samba/log.smbd ... [2008/08/13 17:41:54, 0] smbd/server.c:(1208) smbd version 3.2.1-16.sol10 started. Copyright Andrew Tridgell and the Samba Team 1992-2008 ... [2008/08/13 17:41:54, 3, pid=4323, effective(0, 0), real(0, 0)] printing/printing.c:(1397) start_background_queue: Starting background LPQ thread [2008/08/13 17:41:54, 0, pid=4323, effective(0, 0), real(0, 0)] smbd/server.c:(547) open_sockets_smbd: No sockets available to bind to. ***4*** [2008/08/13 17:41:54, 5, pid=4326, effective(0, 0), real(0, 0)] printing/printing.c:(1407) start_background_queue: background LPQ thread started ***5*** ... # ps -ef |grep smbd |grep -v grep ***6*** root 4326 1 0 17:41:55 pts/1 0:00 /usr/sbin/smbd -F -d10 ***1*** The "socket address" parameter has null string that is invalid value for Samba 3.2 but valid for Samba 3.0. ***2*** No output, i.e. no smbd process is running. ***3*** Starting smbd in foreground, but aborted immediately. ***4*** The main (parent) smbd process was aborted here. ***5***, ***6*** The LPQ smbd process is remained. This problem can be reproduced with "smbd -D" instead of "smbd -F", but cannot be reproduced on CentOS 4 (i386).
Created attachment 3469 [details] Interpret null string "socket address" as 0.0.0.0
Correct - thanks ! Pushed for 3.2.2. Jeremy.
Created attachment 3795 [details] LPQ process can detect parent smbd died This patch fixes a problem that smbd process for LPQ thread is orphaned if (a) the parent smbd is aborted (e.g. SIGKILL, abort(3) and so on), or (b) the "socket address" parameter has invalid value.
Please see the Comment #3. This bug is NOT fixed completely.
Applied (minus the "static" on the pipes array, not needed and I'm trying to reduce our static footprint). Thanks ! Jeremy.
Closing out bug report. Thanks for reporting!