[Samba] help! smbd spawning Zombies when started with swat.

Galella, Anthony anthony.galella at intel.com
Fri Feb 22 16:06:19 GMT 2002


I am having a problem with my Samba machine, here are the details.

The machine in question is running FreeBSD 4.5-RELEASE on a Dual PIII/XEON
550.
I downloaded the source for Samba-2.2.3a and compiled without a hitch.
I also setup SWAT to run through an stunnel(ssl) pipe.  
SWAT configuration of Samba worked great, but if I start the daemons(smbd &
nmbd) from SWAT, smbd seems to keep creating Zombie processes! If I try to
stop the daemons through SWAT, smbd does not respond!  I have to go and kill
-9 the pid (even kill -15 doesn't work)
Now here is the strange part.  If I start the daemons from an ssh window
(command line) the daemons work fine. (no Zombies) and they also stop
nicely.   

here is the tail end from my log.smbd when smbd refuses to cooperate:
(below it is the log when it works ok)

[2002/02/22 18:40:12, 3] smbd/process.c:timeout_processing(1092)
  receive_smb error (Undefined error: 0) exiting
[2002/02/22 18:40:12, 3] smbd/sec_ctx.c:set_sec_ctx(314)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/02/22 18:40:12, 5] smbd/uid.c:change_to_root_user(216)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2002/02/22 18:40:12, 2] smbd/server.c:exit_server(458)
  Closing connections
[2002/02/22 18:40:12, 3] smbd/connection.c:yield_connection(48)
  Yielding connection to
[2002/02/22 18:40:12, 3] smbd/connection.c:yield_connection(62)
  yield_connection: tdb_delete for name  failed with error Record does not
exist
.
[2002/02/22 18:40:12, 3] smbd/server.c:exit_server(492)
  Server exit (normal exit)
[2002/02/22 18:40:12, 3] smbd/server.c:exit_server(492)
  Server exit (normal exit)



-----------Below is the log when start/stopped smbd from command
line--------
[2002/02/22 18:50:37, 2] smbd/server.c:open_sockets(198)
  waiting for a connection
[2002/02/22 18:50:40, 3] smbd/sec_ctx.c:set_sec_ctx(314)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/02/22 18:50:40, 5] smbd/uid.c:change_to_root_user(216)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2002/02/22 18:50:40, 2] smbd/server.c:exit_server(458)
  Closing connections
[2002/02/22 18:50:40, 3] smbd/connection.c:yield_connection(48)
  Yielding connection to
[2002/02/22 18:50:40, 3] smbd/server.c:exit_server(492)
  Server exit (caught signal)

Thanks in advance for any help.
-Tony Galella
anthony.galella at intel.com




More information about the samba mailing list