NetBSD Problem Report #45292

From jdbaker@mylinuxisp.com  Wed Aug 24 20:28:08 2011
Return-Path: <jdbaker@mylinuxisp.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 2722A63BAC3
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 24 Aug 2011 20:28:08 +0000 (UTC)
Message-Id: <201108242028.p7OKS0QM000977@david.technoskunk.fur>
Date: Wed, 24 Aug 2011 15:28:00 -0500 (CDT)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@gnats.NetBSD.org
Subject: net/samba35 smbd crashes on sparc w/SIGSEGV
X-Send-Pr-Version: 3.95

>Number:         45292
>Category:       pkg
>Synopsis:       net/samba35 smbd crashes on sparc w/SIGSEGV
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 24 20:30:00 +0000 2011
>Last-Modified:  Wed Jul 25 07:45:00 +0000 2012
>Originator:     John D. Baker
>Release:        NetBSD 5.1_STABLE, pkgsrc-2011Q2, net/samba35 from HEAD
>Organization:
>Environment:
System: NetBSD david.technoskunk.fur 5.1_STABLE NetBSD 5.1_STABLE (DAVID) #0: Tue Aug 23 21:02:50 CDT 2011 sysop@verthandi.technoskunk.fur:/d0/build/netbsd-5/obj/sparc/sys/arch/sparc/compile/DAVID sparc

Architecture: sparc
Machine: sparc
>Description:
The 'smbd' daemon from net/samba35 (3.5.11 from HEAD of pkgsrc) crashes
on startup on sparc platform (SPARCstation 5, 85MHz 256MB RAM).  The
following is recorded in "/var/log/samba/log.smbd":

[2011/08/24 15:02:22.741517,  1] smbd/files.c:193(file_init)
  file_init: Information only: requested 16384 open files, 936 are available.
[2011/08/24 15:02:23.001294,  0] lib/fault.c:46(fault_report)
  ===============================================================
[2011/08/24 15:02:23.008754,  0] lib/fault.c:47(fault_report)
  INTERNAL ERROR: Signal 11 in pid 681 (3.5.11)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2011/08/24 15:02:23.019340,  0] lib/fault.c:49(fault_report)

  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2011/08/24 15:02:23.029493,  0] lib/fault.c:50(fault_report)
  ===============================================================
[2011/08/24 15:02:23.037207,  0] lib/util.c:1468(smb_panic)
  PANIC (pid 681): internal error
[2011/08/24 15:02:23.044313,  0] lib/util.c:1622(log_stack_trace)
  unable to produce a stack trace on this platform
[2011/08/24 15:02:23.052137,  0] lib/fault.c:326(dump_core)
  dumping core in /var/log/cores/smbd


Contrary to the logfile's claim, no core dump is written anywhere.

Attempting to run smbd via 'gdb' produces an unresponsive terminal session.
The output of "ps ax" shows zombie processes for 'uname' and 'tr' as a
result of starting 'smbd'.  The gdb process otherwise responds to signals.

>How-To-Repeat:
Start with pkgsrc-2011Q2, update net/samba35 to HEAD.
Set PKG_OPTIONS.samba=-cups -ldap -ads -winbind
Build net/samba35 on/for sparc.

Install and attempt to run resulting 'smbd' from net/samba35 on sparc.

>Fix:


>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45292: net/samba35 smbd crashes on sparc w/SIGSEGV
Date: Thu, 19 Jul 2012 13:06:15 -0500 (CDT)

 As of 19 July 2012, NetBSD-6.0_BETA2, and pkgsrc-2012Q2, a problem
 similar to that originally reported occurs with samba-3.6.5.

 Updated configuration information:

 NetBSD david.technoskunk.fur 6.0_BETA2 NetBSD 6.0_BETA2 (DAVID) #14: Tue Jul 17
 11:03:47 CDT 2012  sysop@verthandi.technoskunk.fur:/d0/build/netbsd-6/obj/sparc/
 sys/arch/sparc/compile/DAVID sparc


 Messages upon attempting to start:

 $ sudo /usr/pkg/share/examples/rc.d/samba start
 Starting nmbd.
 [1]   Segmentation fault (core dumped) /usr/pkg/sbin/nm...
 Starting smbd.
 [1]   Segmentation fault (core dumped) /usr/pkg/sbin/sm...


 GDB output (sorry, no symbols until I can recompile with "-g"):

 $ sudo gdb nmbd /var/tmp/cores/nmbd.core
 [...]
 Reading symbols from /usr/pkg/sbin/nmbd...(no debugging symbols found)...done.
 [New process 1]
 Core was generated by `nmbd'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x91be911c in ?? ()
 (gdb) bt
 #0  0x91be911c in ?? ()
 #1  0x0028ff84 in ?? ()
 Backtrace stopped: previous frame identical to this frame (corrupt stack?)
 (gdb)


 $ sudo gdb smbd /var/tmp/cores/smbd.core
 [...]
 Reading symbols from /usr/pkg/sbin/smbd...(no debugging symbols found)...done.
 [New process 1]
 Core was generated by `smbd'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x92088bc4 in ?? ()
 (gdb) bt
 #0  0x92088bc4 in ?? ()
 #1  0x0072fa2c in ?? ()
 Backtrace stopped: previous frame identical to this frame (corrupt stack?)
 (gdb)




 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45292: net/samba35 smbd crashes on sparc w/SIGSEGV
Date: Tue, 24 Jul 2012 20:34:58 -0500 (CDT)

 On Thu, 19 Jul 2012, John D. Baker wrote:

 > $ sudo gdb nmbd /var/tmp/cores/nmbd.core
 [...]
 > $ sudo gdb smbd /var/tmp/cores/smbd.core
 [...]

 Before digging into how to get the package to compile with debugging
 symbols, I went back and built each of net/samba{,3{5,3,0}} versions
 in pkgsrc-2012Q2 to see if it was something version-dependent.

 They all fail identically with the same messages upon trying to obtain
 a backtrace from 'gdb'.

 This would seem to indicate a systemic problem, or one influenced by
 ideosyncracies of the target architecture.

 I'll focus on the front-line samba (3.6.5) (and maybe 4.x in wip) and
 try to get something with symbols to look at.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: Uwe Klaus <uklaus@hgb-leipzig.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org,
        jdbaker@mylinuxisp.com
Subject: Re: pkg/45292: net/samba35 smbd crashes on sparc w/SIGSEGV
Date: Wed, 25 Jul 2012 09:43:48 +0200 (CEST)

 On Wed, 25 Jul 2012, John D. Baker wrote:

 I'm using net/samba30 on sparc/solaris10 for ages.
 One/two years ago I had similar trouble after updating net/samba30, even 
 simple commands like "net user" didn't work anymore.
 In my case, it was related to a compiler update (SolarisStudio12.1 -> 
 OracleStudio12.2). Now I'm compiling net/samba30 with lang/gcc44.

 Regards,
 U. Klaus

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.