smbd doesn't start, fails to generate "machine SID," dumps core

Bug #302605 reported by Can Berk Güder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: samba

smbd crashes immediately upon start on Intrepid.

I have recently uninstalled libpam-smbpass due to a bug in that package, but reinstalling it doesn't change anything, so that's not the cause.

# lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

# apt-cache policy samba
samba:
  Installed: 2:3.2.3-1ubuntu3.1
  Candidate: 2:3.2.3-1ubuntu3.1
  Version table:
 *** 2:3.2.3-1ubuntu3.1 0
        500 http://archive.ubuntu.com intrepid-updates/main Packages
        100 /var/lib/dpkg/status
     2:3.2.3-1ubuntu3 0
        500 http://archive.ubuntu.com intrepid/main Packages

# sudo smbd -i
smbd version 3.2.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1948282469 len=24
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1948282469 len=24
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1948282469 len=24
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1948282469 len=24
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1650750572 len=24
pdb_generate_sam_sid: Failed to store generated machine SID.
PANIC (pid 12135): could not generate a machine SID
BACKTRACE: 6 stack frames:
 #0 smbd(log_stack_trace+0x1c) [0x7f282ced6cbd]
 #1 smbd(smb_panic+0x5b) [0x7f282ced6dcb]
 #2 smbd(get_global_sam_sid+0x6ad) [0x7f282cdf5682]
 #3 smbd(main+0x980) [0x7f282cd9617d]
 #4 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f2829a06466]
 #5 smbd [0x7f282cd94d89]
smb_panic(): calling panic action [/usr/share/samba/panic-action 12135]
smb_panic(): action returned status 0
dumping core in /var/log/samba/cores/smbd
Aborted (core dumped)

# tail -n 32 /var/log/samba/log.smbd
  smbd version 3.2.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/11/26 22:36:12, 0] smbd/server.c:main(1264)
  standard input is not a socket, assuming -D option
[2008/11/26 22:36:12, 0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1948282469 len=24
[2008/11/26 22:36:12, 0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1948282469 len=24
[2008/11/26 22:36:12, 0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1948282469 len=24
[2008/11/26 22:36:12, 0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1948282469 len=24
[2008/11/26 22:36:12, 0] lib/util_tdb.c:tdb_wrap_log(886)
  tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1650750572 len=24
[2008/11/26 22:36:12, 0] passdb/machine_sid.c:pdb_generate_sam_sid(166)
  pdb_generate_sam_sid: Failed to store generated machine SID.
[2008/11/26 22:36:12, 0] lib/util.c:smb_panic(1663)
  PANIC (pid 9691): could not generate a machine SID
[2008/11/26 22:36:12, 0] lib/util.c:log_stack_trace(1767)
  BACKTRACE: 6 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f7b7fbbecbd]
   #1 /usr/sbin/smbd(smb_panic+0x5b) [0x7f7b7fbbedcb]
   #2 /usr/sbin/smbd(get_global_sam_sid+0x6ad) [0x7f7b7fadd682]
   #3 /usr/sbin/smbd(main+0x980) [0x7f7b7fa7e17d]
   #4 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f7b7c6ee466]
   #5 /usr/sbin/smbd [0x7f7b7fa7cd89]
[2008/11/26 22:36:12, 0] lib/util.c:smb_panic(1668)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 9691]
[2008/11/26 22:36:12, 0] lib/util.c:smb_panic(1676)
  smb_panic(): action returned status 0
[2008/11/26 22:36:12, 0] lib/fault.c:dump_core(201)
  dumping core in /var/log/samba/cores/smbd

description: updated
Revision history for this message
Can Berk Güder (cbguder) wrote :

removing secrets.tdb solved the problem.

Changed in samba:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.