From owner-freebsd-stable@FreeBSD.ORG Wed Oct 7 18:53:06 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCDC3106566B for ; Wed, 7 Oct 2009 18:53:06 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id 442DD8FC15 for ; Wed, 7 Oct 2009 18:53:05 +0000 (UTC) Received: by fxm22 with SMTP id 22so5072271fxm.36 for ; Wed, 07 Oct 2009 11:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=b1eCaUO4G3Rdm+aF6E3/0NYliXDXJL9RlapxUB/DTcI=; b=QasCJYC4SU4bJE02iKjVtbauPkve8AhhVuC45Ipn/DL/NtFT7vfH3LJtpJodRB8Nvp D+dTon3t5KrrHSGcDHPg2uBfqq9h9NteXEnM57evPxjQFx+3HscAkOheq7jpfwyMKtbX 2TSF8iFDFn+sZR4+kmR8zbBTYPjbpb1xaETcY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=qJpa6JNZ2yT0SEjRBTzEfDRhunLlHkMDn983XBLluDgXYyf3tzzqspa76ecR9JIn4g cdS04SAPRQGREEewnnhXUCMgalDbgT8iwNHlehrNUqc18T6GzWW1O3h+CG/28L2oKU2m EZjce5UGtDQqtkicoH/0XKoXfvTYjf3Tl1wmU= Received: by 10.86.12.35 with SMTP id 35mr281781fgl.20.1254941585161; Wed, 07 Oct 2009 11:53:05 -0700 (PDT) Received: from dimension.5p.local (adsl-99-19-46-114.dsl.klmzmi.sbcglobal.net [99.19.46.114]) by mx.google.com with ESMTPS id 3sm157254fge.11.2009.10.07.11.53.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 07 Oct 2009 11:53:04 -0700 (PDT) Sender: "J. Hellenthal" Date: Wed, 7 Oct 2009 14:52:54 -0400 From: jhell To: Oliver Lehmann In-Reply-To: <20091007200959.3c93904f.lehmann@ans-netz.de> Message-ID: References: <20091007200959.3c93904f.lehmann@ans-netz.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "freebsd-stable@freebsd.org" Subject: Re: samba - SIGABRT X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2009 18:53:06 -0000 On Wed, 7 Oct 2009 20:09 +0200, lehmann@ wrote: > Hi, > > I wonder what may have caused this and how should I debug it to find the > source? I Installed samba 3.3.7 on a clean 8.0-RC1 and I upgraded then my > system to the latest RELENG_8. > Since I've not the time searching much longer for the error I'll just go > to upgrade to 3.3.8 (recompile it...) tomorrow but I'm curious what it > may have caused and how I would have been able to find the cause.... > > > root@nudel samba33> /usr/local/sbin/smbd > Abort > Exit 134 > > > root@nudel samba33> gdb > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-marcel-freebsd". > (gdb) exec /usr/local/sbin/smbd > (gdb) run > Starting program: /usr/local/sbin/smbd > > Program terminated with signal SIGABRT, Aborted. > The program no longer exists. > You can't do that without a process to debug. > (gdb) q > root@nudel samba33> ktrace /usr/local/sbin/smbd > Abort > Exit 134 > root@nudel samba33> kdump > 2605 ktrace RET ktrace 0 > 2605 ktrace CALL execve(0xbfbfed83,0xbfbfec50,0xbfbfec58) > 2605 ktrace NAMI "/usr/local/sbin/smbd" > root@nudel samba33> mount -t procfs /dev/null /proc > root@nudel samba33> truss -fad /usr/local/sbin/smbd > truss: can not get etype: No such process > Exit 2 > root@nudel samba33> dmesg | tail -1 > fxp0: Microcode loaded, int_delay: 1000 usec bundle_max: 6 > root@nudel samba33> ldd /usr/local/sbin/smbd > /usr/local/sbin/smbd: > libcrypt.so.5 => /lib/libcrypt.so.5 (0x281aa000) > libpam.so.5 => /usr/lib/libpam.so.5 (0x281c3000) > libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x281cb000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x288d2000) > libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0x281d6000) > libc.so.7 => /lib/libc.so.7 (0x28091000) > libm.so.5 => /lib/libm.so.5 (0x281df000) > libintl.so.8 => /usr/local/lib/libintl.so.8 (0x289d1000) > root@nudel samba33> ls -l /lib/libcrypt.so.5 /usr/lib/libpam.so.5 /usr/local/lib/libexecinfo.so.1 /usr/local/lib/libiconv.so.3 /usr/local/lib/libpopt.so.0 /lib/libc.so.7 /lib/libm.so.5 /usr/local/lib/libintl.so.8 > -r--r--r-- 1 root wheel 1144500 Oct 5 16:40 /lib/libc.so.7 > -r--r--r-- 1 root wheel 32060 Oct 5 16:41 /lib/libcrypt.so.5 > -r--r--r-- 1 root wheel 119372 Oct 5 16:41 /lib/libm.so.5 > -r--r--r-- 1 root wheel 28424 Oct 5 16:42 /usr/lib/libpam.so.5 > -r--r--r-- 1 root wheel 40636 Oct 4 19:59 /usr/local/lib/libexecinfo.so.1 > -r--r--r-- 1 root wheel 1050349 Oct 4 19:41 /usr/local/lib/libiconv.so.3 > -r--r--r-- 1 root wheel 39876 Oct 4 19:52 /usr/local/lib/libintl.so.8 > -rwxr-xr-x 1 root wheel 39623 Oct 4 20:00 /usr/local/lib/libpopt.so.0* > root@nudel samba33> ls -l /usr/local/sbin/smbd > -rwxr-xr-x 1 root wheel 6698391 Oct 4 20:30 /usr/local/sbin/smbd* > root@nudel samba33> file /usr/local/sbin/smbd > /usr/local/sbin/smbd: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107), not stripped > root@nudel samba33> > You need to compile with the following: CONFIGURE_ARGS+= --disable-pie This was caused by your setting of the following: security.bsd.map_at_zero=0 You can reset that value to 1 and you should be alright to operate like normal otherwise you will have to compile samba over again with the above mentioned configure options. Best regards. -- ;; dataix.net!jhell 2048R/89D8547E 2009-09-30 ;; BSD since FreeBSD 4.2 Linux since Slackware 2.1 ;; 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E