[Pkg-samba-maint] Bug#439882: samba: Panic or segfault in Samba, and (unable to) core dump

Paolo oopla at users.sf.net
Tue Aug 28 08:17:25 UTC 2007

Package: samba
Version: 3.0.24-6etch4
Severity: important


I'm trying to export usb card-reader volumes via smbfs, so I setup a config
stanza that export such dir and {pre,post}exec the needed usb-mount commands.

All seems well as long as I try to smb[u]mount from a remote host: usb disks
get mounted, smbfs vol get mounted, ls(1) shows the usb-mem contents.

Problems start as soon as I try to access (read) any file (*.jpg in this, 
case) remote app hangs (xli(1) in this case) while the samba server start 
firing /usr/share/samba/panic-action; here's an excerpt from log.smbd:

[2007/08/28 09:54:06, 1] smbd/service.c:make_connection_snum(950)
  utec ( connect to service usb-utec initially as user utec (uid=1004, gid=1004) (pid 3469)
[2007/08/28 09:54:06, 0] tdb/tdbutil.c:tdb_log(783)
  tdb(/var/run/samba/locking.tdb): expand_file write of 1024 failed (Success)
[2007/08/28 09:54:06, 0] lib/util.c:smb_panic(1599)
  PANIC (pid 3469): Could not store share mode entry
[2007/08/28 09:54:06, 0] lib/util.c:log_stack_trace(1706)
  BACKTRACE: 11 stack frames:
   #0 smbd(log_stack_trace+0x23) [0x822c293]
   #1 smbd(smb_panic+0x46) [0x822c386]
   #2 smbd [0x81dd58e]
   #3 smbd(talloc_free+0xcb) [0x82326db]
   #4 smbd(open_file_ntcreate+0x856) [0x80d7e26]
   #5 smbd(reply_open+0x212) [0x80bd812]
   #6 smbd [0x80ea5b4]
   #7 smbd(smbd_process+0x6f8) [0x80eb778]
   #8 smbd(main+0x10df) [0x82c372f]
   #9 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7b5cea8]
   #10 smbd [0x8082b11]
[2007/08/28 09:54:06, 0] lib/util.c:smb_panic(1607)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 3469]
[2007/08/28 09:54:06, 0] lib/util.c:smb_panic(1615)
  smb_panic(): action returned status 0
[2007/08/28 09:54:06, 0] lib/fault.c:dump_core(168)
  unable to change to /var/log/samba/cores/smbdrefusing to dump core
[2007/08/28 09:54:06, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.

and that log chunk gets repeated (seems that as smbd restarts it re-exec 
the preexec cmd).

So there seems to be a few problems here: seems that smbd segfaults for some
resons, there's no such /var/log/samba/cores/smbdrefusing and no core are
actually dumped.

The hw seems fine, as I can locally read/write to the mounted usb-mem 
volumes with no problems.


More information about the Pkg-samba-maint mailing list