Comment 0 for bug 163042

Revision history for this message
Rod Roark (rod) wrote : nmbd crashes after routine Dapper upgrade

Binary package hint: samba

Running 6.06 LTS, I did a routine update/upgrade and now Samba will no longer start. The system sends this email:

--------------------------------------------------------------------------------

The Samba 'panic action' script, /usr/share/samba/panic-action,
was called for pid 8377 (/usr/sbin/nmbd).

Below is a backtrace for this process generated with gdb, which shows
the state of the program at the time the error occurred.

If the problem persists, you are encouraged to first install the
samba-dbg package which contains the debugging symbols for samba
binaries. Then, submit the provided information as a bug report to Ubuntu.
For information about the procedure for submitting bug reports, please
see http://www.ubuntulinux.org/support/bugs/document_view

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1211996480 (LWP 8377)]
0xffffe410 in __kernel_vsyscall ()
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7db7933 in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7d613c9 in strtold_l () from /lib/tls/i686/cmov/libc.so.6
#3 0x080cc403 in smb_panic2 (
    why=0xfffffe00 <Address 0xfffffe00 out of bounds>, decrement_pid_count=1)
    at lib/util.c:1545
#4 0x080cc525 in smb_panic (why=0xfffffe00 <Address 0xfffffe00 out of bounds>)
    at lib/util.c:1506
#5 0x080b8624 in push_ascii (dest=0xfffffe00,
    src=0x818bd00 "ns1 server (Samba, Ubuntu)", dest_len=4294967295, flags=5)
    at lib/charcnv.c:844
#6 0x08073c63 in send_announcement (subrec=0x81897d8,
    announce_type=<value optimized out>, from_name=0x818bbfc "NS1",
    to_name=0x0, to_type=0, to_ip={s_addr = 0}, announce_interval=-1078055348,
    server_name=0xfffffe00 <Address 0xfffffe00 out of bounds>,
    server_type=104963,
    server_comment=0xfffffe00 <Address 0xfffffe00 out of bounds>)
    at nmbd/nmbd_sendannounce.c:119
#7 0x08073e2a in send_host_announcement (subrec=0x81897d8, work=0x8189910,
    servrec=0x818bbf0) at nmbd/nmbd_sendannounce.c:210
#8 0x08074167 in announce_my_server_names (t=1195196102)
    at nmbd/nmbd_sendannounce.c:257
#9 0x08062b7d in main (argc=-512, argv=0xbfbe34e4) at nmbd/nmbd.c:449

--------------------------------------------------------------------------------

From /var/log/samba/log.nmbd:

[2007/11/15 22:55:02, 0] nmbd/nmbd.c:main(727)
  Netbios nameserver version 3.0.22 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/11/15 22:55:02, 0] lib/util.c:smb_panic2(1544)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 8377]
[2007/11/15 22:55:02, 0] lib/util.c:smb_panic2(1552)
  smb_panic(): action returned status 0
[2007/11/15 22:55:02, 0] lib/util.c:smb_panic2(1554)
  PANIC: push_ascii - dest_len == -1
[2007/11/15 22:55:02, 0] lib/util.c:smb_panic2(1562)
  BACKTRACE: 9 stack frames:
   #0 /usr/sbin/nmbd(smb_panic2+0x78) [0x80cc328]
   #1 /usr/sbin/nmbd(smb_panic+0x19) [0x80cc525]
   #2 /usr/sbin/nmbd(push_ascii+0xca) [0x80b8624]
   #3 /usr/sbin/nmbd [0x8073c63]
   #4 /usr/sbin/nmbd [0x8073e2a]
   #5 /usr/sbin/nmbd(announce_my_server_names+0xbc) [0x8074167]
   #6 /usr/sbin/nmbd(main+0x4ec) [0x8062b7d]
   #7 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xd2) [0xb7d40ea2]
   #8 /usr/sbin/nmbd [0x80614a1]

--------------------------------------------------------------------------------

/etc/samba/smb.conf (comments removed):

[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   dns proxy = no
   interfaces = 127.0.0.0/8 eth0
   bind interfaces only = true
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   security = user
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   invalid users = root
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
   load printers = yes
   printing = cups
   printcap name = cups
   socket options = TCP_NODELAY
[printers]
   comment = All Printers
   browseable = yes
   path = /tmp
   printable = yes
   public = yes
   writable = no
   create mode = 0700
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = yes

--------------------------------------------------------------------------------