[Bug 1773679] Re: Samba panics; samba-dbg package not found

Anatoly Borodin 1773679 at bugs.launchpad.net
Sun May 27 22:31:16 UTC 2018


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

** Bug watch added: Debian Bug tracker #819776
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819776

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1773679

Title:
  Samba panics; samba-dbg package not found

Status in samba:
  Unknown
Status in samba package in Ubuntu:
  New

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 at entry=0x7fffdc22f228, options=options at entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
  #0  0x00007f1c3e576687 in __GI___waitpid (pid=17862, stat_loc=stat_loc at entry=0x7fffdc22f228, options=options at 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 at entry=0x7fffdc22fee0, format=format at entry=0x7f1c3f7009d9 "%s(%s)\n", ap=ap at 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 at 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]

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1773679/+subscriptions



More information about the foundations-bugs mailing list