Bug 5775 - panic-action every 5 minutes
panic-action every 5 minutes
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.24
x64 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-19 09:23 UTC by Andreas Matthus
Modified: 2008-09-25 09:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Matthus 2008-09-19 09:23:25 UTC
Hallo,

I using debian etch with samba 3.0.24-6etch10. Every 5 minutes (you can set the clock with this matter) a new smbd-process startet and crashed immediately by sending a email:
---snipp
The Samba 'panic action' script, /usr/share/samba/panic-action,
was called for PID 3618 (/usr/sbin/smbd).

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
Debian.  For information about the procedure for submitting bug reports,
please see http://www.debian.org/Bugs/Reporting or the reportbug(1)
manual page.

Using host libthread_db library "/lib/libthread_db.so.1".
0x00007f3f4a087a55 in ?? ()
#0  0x00007f3f4a087a55 in ?? ()
#1  0x00007fff5484ab2c in ?? ()
#2  0x0000000000000001 in ?? ()
#3  0x00007fff5484aa60 in ?? ()
#4  0x00007f3f4a027e31 in ?? ()
#5  0x0000000000000001 in ?? ()
#6  0x0000000000010000 in ?? ()
---snapp

I watched processes with ps -ef at a error-time and got this output:
root      3618 21306  0 15:57 ?        00:00:00 /usr/sbin/smbd -D
root      3622  3618  0 15:57 ?        00:00:00 /bin/sh /usr/share/samba/panic-action 3618
root      3623  3622  0 15:57 ?        00:00:00 /bin/sh /usr/share/samba/panic-action 3618
root      3626  3623  0 15:57 ?        00:00:00 gdb -x /etc/samba/gdbcommands -batch /usr/sbin/smbd 3618

In crontab I can't find any hint of this phenomenon. All user can work with samba very well, but my mailbox don't like so many messages ;-)

What can I do?

With regards
Andreas Matthus
Comment 1 Andreas Matthus 2008-09-25 09:34:24 UTC
Futhermore I found out to generate a new panic-action:

smbclient -L localhost -U username

The answer is O.K. but I got a email with message smbd has crashed. In log.smbd is something like:

[2008/09/25 11:49:10, 0] lib/fault.c:fault_report(41)
  ===============================================================
[2008/09/25 11:49:10, 0] lib/fault.c:fault_report(42)
  INTERNAL ERROR: Signal 11 in pid 17569 (3.0.24)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2008/09/25 11:49:10, 0] lib/fault.c:fault_report(44)

  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2008/09/25 11:49:10, 0] lib/fault.c:fault_report(45)
  ===============================================================
[2008/09/25 11:49:10, 0] lib/util.c:smb_panic(1599)
  PANIC (pid 17569): internal error
[2008/09/25 11:49:10, 0] lib/util.c:log_stack_trace(1706)
  BACKTRACE: 7 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x1a) [0x5d2e6a]
   #1 /usr/sbin/smbd(smb_panic+0x34) [0x5d2f44]
   #2 /usr/sbin/smbd [0x5c1adb]
   #3 /lib/libpthread.so.0 [0x7f3f4b23fa90]
   #4 /usr/lib/libldap_r.so.2(ldap_free_urllist+0x6) [0x7f3f4c724a26]
   #5 /usr/lib/libldap_r-2.4.so.2 [0x7f3f4791ece3]
   #6 /usr/lib/libldap_r-2.4.so.2 [0x7f3f47904492]
[2008/09/25 11:49:10, 0] lib/util.c:smb_panic(1607)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 17569]
BFD: /usr/lib/libgssapi_krb5.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/libgssapi_krb5.so.2": not in executable format: File format not recognized.
BFD: /usr/lib/libkrb5.so.3: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/libkrb5.so.3": not in executable format: File format not recognized.
BFD: /usr/lib/libk5crypto.so.3: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/libk5crypto.so.3": not in executable format: File format not recognized.
BFD: /usr/lib/libkrb5support.so.0: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/libkrb5support.so.0": not in executable format: File format not recognized.
BFD: /lib/libresolv.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libresolv.so.2": not in executable format: File format not recognized.
BFD: /usr/lib/libz.so.1: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/libz.so.1": not in executable format: File format not recognized.
BFD: /lib/libpthread.so.0: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libpthread.so.0": not in executable format: File format not recognized.
BFD: /lib/libm.so.6: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libm.so.6": not in executable format: File format not recognized.
BFD: /lib/libcrypt.so.1: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libcrypt.so.1": not in executable format: File format not recognized.
BFD: /lib/libpam.so.0: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libpam.so.0": not in executable format: File format not recognized.
BFD: /lib/libattr.so.1: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libattr.so.1": not in executable format: File format not recognized.
BFD: /lib/libnsl.so.1: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libnsl.so.1": not in executable format: File format not recognized.
BFD: /lib/libdl.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libdl.so.2": not in executable format: File format not recognized.
BFD: /lib/libc.so.6: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libc.so.6": not in executable format: File format not recognized.
BFD: /lib/libkeyutils.so.1: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libkeyutils.so.1": not in executable format: File format not recognized.
BFD: /usr/lib/libgcrypt.so.11: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/libgcrypt.so.11": not in executable format: File format not recognized.
BFD: /lib64/ld-linux-x86-64.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib64/ld-linux-x86-64.so.2": not in executable format: File format not recognized.
BFD: /usr/lib/gconv/UTF-16.so: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/gconv/UTF-16.so": not in executable format: File format not recognized.
BFD: /usr/lib/gconv/ISO8859-15.so: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/gconv/ISO8859-15.so": not in executable format: File format not recognized.
BFD: /usr/lib/gconv/IBM850.so: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/gconv/IBM850.so": not in executable format: File format not recognized.
BFD: /lib/libnss_files.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libnss_files.so.2": not in executable format: File format not recognized.
BFD: /lib/libnss_compat.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libnss_compat.so.2": not in executable format: File format not recognized.
BFD: /lib/libnss_nis.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libnss_nis.so.2": not in executable format: File format not recognized.
BFD: /lib/libnss_ldap.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/lib/libnss_ldap.so.2": not in executable format: File format not recognized.
BFD: /usr/lib/libldap_r-2.4.so.2: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
Error while mapping shared library sections:
"/usr/lib/libldap_r-2.4.so.2": not in executable format: File format not recognized.
...

The list of libs with debug errors is:
/lib64/ld-linux-x86-64.so.2
/lib/ld-linux-x86-64.so.2
/lib/libattr.so.1
/lib/libcrypt.so.1
/lib/libc.so.6
/lib/libdl.so.2
/lib/libkeyutils.so.1
/lib/libm.so.6
/lib/libnsl.so.1
/lib/libnss_compat.so.2
/lib/libnss_files.so.2
/lib/libnss_ldap.so.2
/lib/libnss_nis.so.2
/lib/libpam.so.0
/lib/libpthread.so.0
/lib/libresolv.so.2
/usr/lib/gconv/IBM850.so
/usr/lib/gconv/ISO8859-15.so
/usr/lib/gconv/UTF-16.so
/usr/lib/libgcrypt.so.11
/usr/lib/libgnutls.so.26
/usr/lib/libgssapi_krb5.so.2
/usr/lib/libk5crypto.so.3
/usr/lib/libkrb5.so.3
/usr/lib/libkrb5support.so.0
/usr/lib/liblber-2.4.so.2
/usr/lib/libldap_r-2.4.so.2
/usr/lib/libz.so.1

By try to remove the .gnu.cash I got two lines and then a kernel-panic:
myserver:/var/log/samba# grep gnu.hash log.smbd | awk '{print $2}' | sort -u | awk -F ":" '{system("objcopy -R .gnu.hash  " $1)}'
objcopy: unable to copy file '/lib64/ld-linux-x86-64.so.2' reason: Text file busy
objcopy: unable to copy file '/lib/ld-linux-x86-64.so.2' reason: Text file busy