I found that the corrupted secrets.tdb prevented samba from starting:
[2009/03/27 12:16:44, 0] smbd/server.c:main(1213)
smbd version 3.2.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/03/27 12:16:44, 0] lib/util_tdb.c:tdb_wrap_log(886)
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1601070448 len=24
[2009/03/27 12:16:44, 0] lib/util_tdb.c:tdb_wrap_log(886)
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1601070448 len=24
[2009/03/27 12:16:44, 0] lib/util_tdb.c:tdb_wrap_log(886)
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1601070448 len=24
[2009/03/27 12:16:44, 0] lib/util_tdb.c:tdb_wrap_log(886)
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1601070448 len=24
[2009/03/27 12:16:44, 0] lib/util_tdb.c:tdb_wrap_log(886)
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1650750572 len=24
[2009/03/27 12:16:44, 0] passdb/machine_sid.c:pdb_generate_sam_sid(166)
pdb_generate_sam_sid: Failed to store generated machine SID.
[2009/03/27 12:16:44, 0] lib/util.c:smb_panic(1663)
PANIC (pid 28036): could not generate a machine SID
[2009/03/27 12:16:44, 0] lib/util.c:log_stack_trace(1767)
BACKTRACE: 6 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7bc542c]
#1 /usr/sbin/smbd(smb_panic+0x80) [0xb7bc5589]
#2 /usr/sbin/smbd(get_global_sam_sid+0x6f3) [0xb7acc257]
#3 /usr/sbin/smbd(main+0x9f7) [0xb7a65530]
#4 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb757f685]
#5 /usr/sbin/smbd [0xb7a62af1]
[2009/03/27 12:16:44, 0] lib/util.c:smb_panic(1668)
smb_panic(): calling panic action [/usr/share/samba/panic-action 28036]
[2009/03/27 12:16:44, 0] lib/util.c:smb_panic(1676)
smb_panic(): action returned status 0
[2009/03/27 12:16:44, 0] lib/fault.c:dump_core(201)
dumping core in /var/log/samba/cores/smbd
I deleted secrets.tdb and the segfault went away. That was OK for me because I had also purged libpam-smbpass and I am using security = share for now anyway. :)
I found that the corrupted secrets.tdb prevented samba from starting:
[2009/03/27 12:16:44, 0] smbd/server. c:main( 1213) tdb.c:tdb_ wrap_log( 886) var/lib/ samba/secrets. tdb): transaction_read: failed at off=1601070448 len=24 tdb.c:tdb_ wrap_log( 886) var/lib/ samba/secrets. tdb): transaction_read: failed at off=1601070448 len=24 tdb.c:tdb_ wrap_log( 886) var/lib/ samba/secrets. tdb): transaction_read: failed at off=1601070448 len=24 tdb.c:tdb_ wrap_log( 886) var/lib/ samba/secrets. tdb): transaction_read: failed at off=1601070448 len=24 tdb.c:tdb_ wrap_log( 886) var/lib/ samba/secrets. tdb): transaction_read: failed at off=1650750572 len=24 machine_ sid.c:pdb_ generate_ sam_sid( 166) sam_sid: Failed to store generated machine SID. c:smb_panic( 1663) c:log_stack_ trace(1767) smbd(log_ stack_trace+ 0x2d) [0xb7bc542c] smbd(smb_ panic+0x80) [0xb7bc5589] smbd(get_ global_ sam_sid+ 0x6f3) [0xb7acc257] smbd(main+ 0x9f7) [0xb7a65530] i686/cmov/ libc.so. 6(__libc_ start_main+ 0xe5) [0xb757f685] c:smb_panic( 1668) samba/panic- action 28036] c:smb_panic( 1676) c:dump_ core(201) samba/cores/ smbd
smbd version 3.2.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/03/27 12:16:44, 0] lib/util_
tdb(/
[2009/03/27 12:16:44, 0] lib/util_
tdb(/
[2009/03/27 12:16:44, 0] lib/util_
tdb(/
[2009/03/27 12:16:44, 0] lib/util_
tdb(/
[2009/03/27 12:16:44, 0] lib/util_
tdb(/
[2009/03/27 12:16:44, 0] passdb/
pdb_generate_
[2009/03/27 12:16:44, 0] lib/util.
PANIC (pid 28036): could not generate a machine SID
[2009/03/27 12:16:44, 0] lib/util.
BACKTRACE: 6 stack frames:
#0 /usr/sbin/
#1 /usr/sbin/
#2 /usr/sbin/
#3 /usr/sbin/
#4 /lib/tls/
#5 /usr/sbin/smbd [0xb7a62af1]
[2009/03/27 12:16:44, 0] lib/util.
smb_panic(): calling panic action [/usr/share/
[2009/03/27 12:16:44, 0] lib/util.
smb_panic(): action returned status 0
[2009/03/27 12:16:44, 0] lib/fault.
dumping core in /var/log/
I deleted secrets.tdb and the segfault went away. That was OK for me because I had also purged libpam-smbpass and I am using security = share for now anyway. :)