From owner-freebsd-stable@FreeBSD.ORG Tue Jun 10 13:48:40 2008 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 ED91A1065690 for ; Tue, 10 Jun 2008 13:48:40 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id E2B828FC30 for ; Tue, 10 Jun 2008 13:48:40 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 4B6C11CC038; Tue, 10 Jun 2008 06:48:40 -0700 (PDT) Date: Tue, 10 Jun 2008 06:48:40 -0700 From: Jeremy Chadwick To: Jona Joachim Message-ID: <20080610134840.GA44581@eos.sc1.parodius.com> References: <484BE563.90102@FreeBSD.org> <20080610003222.GA3822@nirvana.my.domain> <484DD565.2010700@FreeBSD.org> <20080610120240.GA2964@nirvana.my.domain> <20080610124245.GA42745@eos.sc1.parodius.com> <20080610132629.GA15963@nirvana.my.domain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080610132629.GA15963@nirvana.my.domain> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org Subject: Re: pkg_delete core dump when removing linux-tiff 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, 10 Jun 2008 13:48:41 -0000 On Tue, Jun 10, 2008 at 03:26:30PM +0200, Jona Joachim wrote: > On Tue, Jun 10, 2008 at 05:42:45AM -0700, Jeremy Chadwick wrote: > > On Tue, Jun 10, 2008 at 02:02:40PM +0200, Jona Joachim wrote: > > > On Tue, Jun 10, 2008 at 03:14:13AM +0200, Kris Kennaway wrote: > > > > Jona Joachim wrote: > > > > > On Sun, Jun 08, 2008 at 03:57:55PM +0200, Kris Kennaway wrote: > > > > >> Jona Joachim wrote: > > > > >>> Hi! > > > > >>> > > > > >>> pkg_delete core dumps on me when it tries to remove linux-tiff. > > > > >>> I can reproduce this reliably. > > > > >>> FWIW you can find the core dump here: > > > > >>> http://www.hcl-club.lu/~jaj/stuff/pkg_delete.core > > > > >> You need to obtain the backtrace, see the developers handbook. > > > > > > > > > > I built pkg_delete with -g but gdb says 'no debugging symbols found'. > > > > > Is the following information sufficient or do I need to rebuild everything with debugging information turned on? > > > > > > > > It was probably stripped at install, I think you can set STRIP= (i.e. > > > > empty value) but doesn't it also explain this in the handbook? > > > > (snip bt) > > > > How about 'bt full' ? > > Here you go. > > linux-tiff depends on graphics/linux-jpeg, which isn't installed however. > Something must have gone wrong there, I didn't pkg_delete -f linux-jpeg. Thanks. A couple things: 1) Can you perform the same pkg_delete but with the -v flag? This should cause quite a bit more output, but will help track this down. 2) Output from cat /var/db/pkg/linux-tiff-3.7.1/+CONTENTS 3) Can you put the below files up someplace on the web, preferrably in a tarball? I'd ask for them, but the mailing list strips attachments. I'm wondering if there's some binary data in one of the files (e.g. interested in why +CONTENTS has a newer mtime than +COMMENT and +DESC). Have you had any filesystem problems as of late? dmesg -a show any filesystem issues or disk issues? > Oh and here is the content of /var/db/pkg/linux-tiff-3.7.1: > > total 40 > -rw-r--r-- 1 root wheel 32 Mar 17 2007 +COMMENT > -rw-r--r-- 1 root wheel 4098 Jun 8 14:21 +CONTENTS > -rw-r--r-- 1 root wheel 229 Mar 17 2007 +DESC > drwxr-xr-x 2 root wheel 512 Jun 9 11:05 . > drwxr-xr-x 700 root wheel 27648 Jun 9 22:29 .. The code in usr.sbin/pkg_install/lib/plist.c which is causing the segfault: 462 if (p->next && p->next->type == PLIST_COMMENT && !strncmp(p->next->name, "MD5:", 4)) { 4) What date are your system sources (specifically src/usr.sbin/pkg_install)? The reason I ask is that there were some recent speed optimisations applied to the pkg_* tools, and I'm curious what "version" of the sources you have. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |