From owner-freebsd-stable@FreeBSD.ORG Tue Jan 12 18:10:45 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 3C75C10656BC for ; Tue, 12 Jan 2010 18:10:45 +0000 (UTC) (envelope-from dweber@htw-saarland.de) Received: from triton.rz.uni-saarland.de (triton.rz.uni-saarland.de [134.96.7.25]) by mx1.freebsd.org (Postfix) with ESMTP id BF0E08FC2B for ; Tue, 12 Jan 2010 18:10:44 +0000 (UTC) Received: from zdve-mailx.htw-saarland.de (zdve-mailx.htw-saarland.de [134.96.208.108]) by triton.rz.uni-saarland.de (8.14.1/8.14.0) with ESMTP id o0CIAhnw006381 for ; Tue, 12 Jan 2010 19:10:43 +0100 Received: from magritte.htw-saarland.de (magritte.htw-saarland.de [134.96.216.98]) by zdve-mailx.htw-saarland.de (8.13.8/8.13.8) with ESMTP id o0CIAhoJ025458 for ; Tue, 12 Jan 2010 19:10:43 +0100 (CET) Date: Tue, 12 Jan 2010 19:10:38 +0100 (CET) From: Damian Weber To: freebsd-stable@freebsd.org In-Reply-To: <201001121918.40054.andy@athame.co.uk> Message-ID: References: <201001121918.40054.andy@athame.co.uk> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: clamav-milter 0.95.2 at zdve-mailx X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (triton.rz.uni-saarland.de [134.96.7.25]); Tue, 12 Jan 2010 19:10:43 +0100 (CET) X-AntiVirus: checked by AntiVir MailGate (version: 2.1.2-14; AVE: 7.9.1.134; VDF: 7.10.2.175; host: AntiVir3) 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 18:10:45 -0000 On Tue, 12 Jan 2010, Andy Fawcett wrote: > Date: Tue, 12 Jan 2010 19:18:39 +0200 > From: Andy Fawcett > To: freebsd-stable@freebsd.org > Cc: Damian Weber > Subject: Re: strange abort with kcheckpass > > 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. no luck: # 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) run --nofork Starting program: /usr/ports/x11/kdebase3/work/kdebase-3.5.10/kcheckpass/kcheckpass --nofork Program terminated with signal SIGABRT, Aborted. The program no longer exists. You can't do that without a process to debug.