From owner-freebsd-stable@FreeBSD.ORG Tue Jan 12 17:56:49 2010 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 34FF210656A8 for ; Tue, 12 Jan 2010 17:56:49 +0000 (UTC) (envelope-from andy@athame.co.uk) Received: from hex.athame.co.uk (salama58.adsl.netsonic.fi [81.17.207.58]) by mx1.freebsd.org (Postfix) with ESMTP id DC0508FC08 for ; Tue, 12 Jan 2010 17:56:48 +0000 (UTC) Received: from igor.local ([192.168.10.15] helo=igor.localnet) by hex.athame.co.uk with esmtp (Exim 4.69) (envelope-from ) id 1NUkO8-0002sU-Lf; Tue, 12 Jan 2010 19:18:40 +0200 From: Andy Fawcett To: freebsd-stable@freebsd.org Date: Tue, 12 Jan 2010 19:18:39 +0200 User-Agent: KMail/1.12.4 (Linux/2.6.31-18-generic; KDE/4.3.4; i686; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001121918.40054.andy@athame.co.uk> Cc: Damian Weber Subject: Re: strange abort with kcheckpass 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: Tue, 12 Jan 2010 17:56:49 -0000 On Tuesday 12 January 2010 17:49:25 Damian Weber wrote: > Hi, all, > > I've got a strange SIGABRT issue with kcheckpass. > Of course, kcheckpass is not contained in the base > system, yet I write to this list since the base system > could be able to help with tracking this down. > (kcheckpass is called from a screen locker which fails > to operate properly as a consequence of the SIGABRT.) > > Normal behaviour: > (for example with wrong password) > $ kcheckpass > Password: > Authentication failure > > Strange behaviour here (called mybox below): > $ kcheckpass > Abort trap: 6 > > I've recompiled the kcheckpass part of the kdebase3 > port with option -g. > Starting with debugger even doesn't let me reach a > breakpoint at main(), because the SIGABRT happens > earlier. > > # pwd > /usr/ports/x11/kdebase3/work/kdebase-3.5.10/kcheckpass > > # ldd ./kcheckpass > ./kcheckpass: > libkdefakes.so.6 => /usr/local/lib/libkdefakes.so.6 (0x68193000) > libpam.so.4 => /usr/lib/libpam.so.4 (0x68195000) > libjpeg.so.10 => /usr/local/lib/libjpeg.so.10 (0x6819c000) > libthr.so.3 => /lib/libthr.so.3 (0x681d0000) > libc.so.7 => /lib/libc.so.7 (0x68080000) > > # gdb ./kcheckpass > 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) b main > Breakpoint 1 at 0x1470: file kcheckpass.c, line 297. > (gdb) r > Starting program: > /usr/ports/x11/kdebase3/work/kdebase-3.5.10/kcheckpass/kcheckpass > > Program terminated with signal SIGABRT, Aborted. > The program no longer exists. > You can't do that without a process to debug. > (gdb) q > > $ uname -a > FreeBSD mybox 7.2-STABLE FreeBSD 7.2-STABLE #18: Mon Dec 14 00:39:13 CET > 2009 mybox i386 $ ls -ld /var/db/pkg/kdebase* > drwxr-xr-x 2 root wheel 512 Jan 11 18:35 /var/db/pkg/kdebase-3.5.10_4/ > drwxr-xr-x 2 root wheel 512 Jan 11 18:35 > /var/db/pkg/kdebase-kompmgr-3.5.10_1/ > > Any ideas what's the cause or what I should try next to see where this > abort comes from? > > Thanks, > > Damian try debugging kcheckpass --nofork, as it will prevent the process forking off into the background. A.