Comment 29 for bug 303458

Sam Morris (yrro) wrote :

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. :)