Samba panics; samba-dbg package not found

Bug #1773679 reported by Anatoly Borodin on 2018-05-27
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba
Fix Released
Unknown
samba (Ubuntu)
Low
Andreas Hasenack

Bug Description

Ubuntu 18.04 Bionic Beaver

Linux 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

From time to time I get emails like the one below. I don't use samba actively, it's installed as a dependency with default settings.

The emails tells to install samba-dbg, but I don't see such a package with apt search.

========================================================

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

This means there was a problem with the program, such as a segfault.
Below is a backtrace for this process generated with gdb, which shows
the state of the program at the time the error occurred. The Samba log
files may contain additional information about the problem.

If the problem persists, you are encouraged to first install the
samba-dbg package, which contains the debugging symbols for the Samba
binaries. Then submit the provided information as a bug report to
Ubuntu by visiting this link:
https://launchpad.net/ubuntu/+source/samba/+filebug

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f1c3e576687 in __GI___waitpid (pid=17862, stat_loc=stat_loc@entry=0x7fffdc22f228, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#0 0x00007f1c3e576687 in __GI___waitpid (pid=17862, stat_loc=stat_loc@entry=0x7fffdc22f228, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1 0x00007f1c3e4e1067 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2 0x00007f1c41823af1 in smb_panic_s3 () from /usr/lib/x86_64-linux-gnu/libsmbconf.so.0
#3 0x00007f1c413245af in smb_panic () from /usr/lib/x86_64-linux-gnu/libsamba-util.so.0
#4 0x00007f1c413247c6 in ?? () from /usr/lib/x86_64-linux-gnu/libsamba-util.so.0
#5 <signal handler called>
#6 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:120
#7 0x00007f1c3e4ef4d3 in _IO_vfprintf_internal (s=s@entry=0x7fffdc22fee0, format=format@entry=0x7f1c3f7009d9 "%s(%s)\n", ap=ap@entry=0x7fffdc230060) at vfprintf.c:1643
#8 0x00007f1c3e5c4169 in ___vsnprintf_chk (s=0x7fffdc230231 "", maxlen=<optimized out>, flags=1, slen=<optimized out>, format=0x7f1c3f7009d9 "%s(%s)\n", args=args@entry=0x7fffdc230060) at vsnprintf_chk.c:63
#9 0x00007f1c3e5c4095 in ___snprintf_chk (s=<optimized out>, maxlen=<optimized out>, flags=<optimized out>, slen=<optimized out>, format=<optimized out>) at snprintf_chk.c:34
#10 0x00007f1c3f6ffee4 in dbghdrclass () from /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0
#11 0x00007f1c3f9140ec in send_packet () from /usr/lib/x86_64-linux-gnu/samba/libgse.so.0
#12 0x000055fcd2e74d78 in send_mailslot ()
#13 0x000055fcd2e76aae in ?? ()
#14 0x000055fcd2e76b77 in ?? ()
#15 0x000055fcd2e7723e in announce_my_server_names ()
#16 0x000055fcd2e6331f in main ()
A debugging session is active.

        Inferior 1 [process 2020] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]

Related branches

ii libsmbclient:amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 shared library for communication with SMB/CIFS servers
ii libwbclient0:amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 Samba winbind client library
ii python-samba 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 Python bindings for Samba
ii samba 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 SMB/CIFS file, print, and login server for Unix
ii samba-common 2:4.7.6+dfsg~ubuntu-0ubuntu2 all common files used by both the Samba server and client
ii samba-common-bin 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 Samba common files used by both the server and the client
ii samba-dsdb-modules 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 Samba Directory Services Database
ii samba-libs:amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 Samba core libraries
ii samba-vfs-modules 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 Samba Virtual FileSystem plugins
ii smbclient 2:4.7.6+dfsg~ubuntu-0ubuntu2 amd64 command-line SMB/CIFS clients for Unix

The script /usr/share/samba/panic-action contains lines:

echo "If the problem persists, you are encouraged to first install the"
echo "samba-dbg package, which contains the debugging symbols for the Samba"
echo "binaries. Then submit the provided information as a bug report to"

But since the 4.4.5+dfsg-3 version (see https://salsa.debian.org/samba-team/samba/commit/f9bf7cd633a68d7c2e881801e90aa2af43fd72b7) the package samba-dbg has been dropped and replaced with samba.dbgsym (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819776). The message printed by the script became misleading.

1. The debug package name should be updated.
2. Installing a -dbgsym package requires enabling of the additional ddeb repository, which is not trivial and requires some googling. Adding some links to https://wiki.debian.org/AutomaticDebugPackages and/or https://wiki.ubuntu.com/Debug%20Symbol%20Packages could be helpful.

PS I propose to limit the scope of this bug to the panic-action script and ignore the panic itself (it needs a separate bug report).

Changed in samba:
status: Unknown → New
Andreas Hasenack (ahasenack) wrote :

Yes, please file a separate bug about the panic itself. If it's still happening, and you have a crash file in /var/crash, please attach that to the bug as well. Thanks

Changed in samba (Ubuntu):
importance: Undecided → Low
status: New → Triaged
tags: added: bitesize
Changed in samba:
status: New → Fix Committed
Andreas Hasenack (ahasenack) wrote :

Debian's fix: https://salsa.debian.org/samba-team/samba/commit/47a6fe2ea22551c1b8d11a17332244ebdd0f94fb

We should get it the next time we sync/merge with them.

Changed in samba:
status: Fix Committed → Fix Released
Changed in samba (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
status: Triaged → In Progress
Andreas Hasenack (ahasenack) wrote :

This is fixed in 4.8.4 which just landed in cosmic.

Changed in samba (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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