Your message dated Thu, 4 May 2006 01:18:46 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#365798: Segfault in Samba
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: samba
Version: 3.0.22-1
Severity: important

I know that similar bugs have been reported, but I have not found a
way to solve this. I kept getting emails with subject "Segfault in
Samba" and have installed samba-dbg as requested. I even upgraded all
the packages in my unstable box.

I'll provide the panic email, /var/log/samba/log.smbd, and
/etc/samba/smb.conf below. If you need extra information, please let
me know. Thanks.

-------------------------
This is one of the panic emails I got after installing samba-dbg.

To: root
Subject: Segfault in Samba
From: root
Date: Tue, 02 May 2006 21:41:52 -0400

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

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

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1213561152 (LWP 16445)]
0xb7ca8abe in waitpid () from /lib/tls/libc.so.6
#0  0xb7ca8abe in waitpid () from /lib/tls/libc.so.6
#1  0xb7c4ddd9 in strtold_l () from /lib/tls/libc.so.6
#2  0x0821efc7 in smb_panic2 (
   why=0xfffffe00 <Address 0xfffffe00 out of bounds>, decrement_pid_count=1)
   at lib/util.c:1545
#3  0x0821f0fa in smb_panic (why=0xfffffe00 <Address 0xfffffe00 out of bounds>)
   at lib/util.c:1506
#4  0x082b500e in main (argc=-512, argv=0xbfc0f8a4) at smbd/server.c:433
-------------------------

Below is the related part of /var/log/samba/log.smbd :

[2006/05/02 21:41:25, 0] tdb/tdbutil.c:tdb_log(772)
 tdb(/var/run/samba/gencache.tdb): tdb_reopen: open failed (No such
file or directory)
[2006/05/02 21:41:25, 0] smbd/server.c:open_sockets_smbd(432)
 tdb_reopen_all failed.
[2006/05/02 21:41:25, 0] lib/util.c:smb_panic2(1544)
 smb_panic(): calling panic action [/usr/share/samba/panic-action 16430]
[2006/05/02 21:41:36, 0] lib/util.c:smb_panic2(1552)
 smb_panic(): action returned status 0
[2006/05/02 21:41:36, 0] lib/util.c:smb_panic2(1554)
 PANIC: tdb_reopen_all failed.
[2006/05/02 21:41:36, 0] lib/util.c:smb_panic2(1562)
 BACKTRACE: 5 stack frames:
  #0 /usr/sbin/smbd(smb_panic2+0x7c) [0x821eedc]
  #1 /usr/sbin/smbd(smb_panic+0x1a) [0x821f0fa]
  #2 /usr/sbin/smbd(main+0xd7e) [0x82b500e]
  #3 /lib/tls/libc.so.6(__libc_start_main+0xd0) [0xb7c2beb0]
  #4 /usr/sbin/smbd [0x807eb21]
[2006/05/02 21:41:46, 0] tdb/tdbutil.c:tdb_log(772)
 tdb(/var/run/samba/gencache.tdb): tdb_reopen: open failed (No such
file or directory)
[2006/05/02 21:41:46, 0] smbd/server.c:open_sockets_smbd(432)
 tdb_reopen_all failed.
[2006/05/02 21:41:46, 0] lib/util.c:smb_panic2(1544)
 smb_panic(): calling panic action [/usr/share/samba/panic-action 16445]
[2006/05/02 21:41:53, 0] lib/util.c:smb_panic2(1552)
 smb_panic(): action returned status 0
[2006/05/02 21:41:53, 0] lib/util.c:smb_panic2(1554)
 PANIC: tdb_reopen_all failed.
[2006/05/02 21:41:53, 0] lib/util.c:smb_panic2(1562)
 BACKTRACE: 5 stack frames:
  #0 /usr/sbin/smbd(smb_panic2+0x7c) [0x821eedc]
  #1 /usr/sbin/smbd(smb_panic+0x1a) [0x821f0fa]
  #2 /usr/sbin/smbd(main+0xd7e) [0x82b500e]
  #3 /lib/tls/libc.so.6(__libc_start_main+0xd0) [0xb7c2beb0]
  #4 /usr/sbin/smbd [0x807eb21]

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

# grep -v "^[;#]" /etc/samba/smb.conf

[global]
dos charset = cp936
unix charset = cp936
display charset = cp936

workgroup = MSHOME
server string = server
dns proxy = no
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
smb passwd file = /etc/samba/smbpasswd
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully*
.
socket options = TCP_NODELAY
domain master = yes

[data]
comment = data
path = /data/data
valid users = icrazy
public = no
writeable = yes
printable = no

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

-- System Information:
Debian Release: testing/unstable
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages samba depends on:
ii  debconf [debc 1.5.0                      Debian configuration management sy
ii  libacl1       2.2.36-1                   Access control list shared library
ii  libattr1      2.4.32-1                   Extended attribute shared library
ii  libc6         2.3.6-7                    GNU C Library: Shared libraries
ii  libcomerr2    1.38+1.39-WIP-2006.04.09-1 common error description library
ii  libcupsys2    1.1.23-15                  Common UNIX Printing System(tm) -
ii  libkrb53      1.4.3-7                    MIT Kerberos runtime libraries
ii  libldap2      2.1.30-13                  OpenLDAP libraries
ii  libpam-module 0.79-3.1                   Pluggable Authentication Modules f
ii  libpam-runtim 0.79-3.1                   Runtime support for the PAM librar
ii  libpam0g      0.79-3.1                   Pluggable Authentication Modules l
ii  libpopt0      1.7-5                      lib for parsing cmdline parameters
ii  logrotate     3.7.1-3                    Log rotation utility
ii  lsb-base      3.1-5                      Linux Standard Base 3.1 init scrip
ii  netbase       4.25                       Basic TCP/IP networking system
ii  samba-common  3.0.22-1                   Samba common files used by both th

Versions of packages samba recommends:
pn  smbldap-tools                 <none>     (no description available)

-- debconf information:
 samba/nmbd_from_inetd:
* samba/run_mode: daemons
 samba/log_files_moved:
 samba/tdbsam: false
* samba/generate_smbpasswd: true

--
Best regards,

James He


--- End Message ---
--- Begin Message ---
On Wed, May 03, 2006 at 03:09:08AM -0400, James He wrote:
> On 5/3/06, James He <[EMAIL PROTECTED]> wrote:
> >On 5/3/06, Steve Langasek <[EMAIL PROTECTED]> wrote:
> >Things are getting a little bit complex now:
> [...]
> >(3) Then I tried to do another reinstall of the samba package, while
> >unexpected errors happen:
> ># aptitude update
> ># aptitude reinstall samba
> [...]
> >Starting Samba daemons: nmbd smbd failed!
> >invoke-rc.d: initscript samba, action "start" failed.
> >dpkg: error processing samba (--configure):
> > subprocess post-installation script returned error exit status 1

> I really don't know how to say this, but I tried another 'aptitude
> reinstall samba' a couple of minutes later and it went well this time.
> (Before I posted my last email, I tried several times, without any
> luck.)

> After 'dpkg-reconfigure samba' and '/etc/init.d/samba start',
> everything seems all right now.

> Thanks for your help, Steve .

Well, unfortunately, the only theories I have to explain this are either
incorrect removal of files from /var/run/samba plus a wedged smbd process
that didn't actually die before when you tried to kill it (not something we
can check for very successfully now), or very bad kernel filesystem problems
that were preventing you from creating new files under /var/run/samba...
Neither is particularly debuggable as a samba problem, and your own problem
seems to be resolved now, so I think I'm going to go ahead and close this
bug report.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to