From owner-freebsd-stable@FreeBSD.ORG Tue Jun 10 15:10:37 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 B430B1065677; Tue, 10 Jun 2008 15:10:37 +0000 (UTC) (envelope-from jaj@hcl-club.lu) Received: from 0b10111.de (hcl-club.lu [62.75.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 4F8228FC13; Tue, 10 Jun 2008 15:10:37 +0000 (UTC) (envelope-from jaj@hcl-club.lu) Received: from nirvana.my.domain (4be54-4-82-234-154-189.fbx.proxad.net [82.234.154.189]) by 0b10111.de (Postfix) with ESMTPS id 16FEBBFB0032; Tue, 10 Jun 2008 15:10:36 +0000 (UTC) Received: by nirvana.my.domain (Postfix, from userid 1000) id C18A27DD1; Tue, 10 Jun 2008 17:10:34 +0200 (CEST) Date: Tue, 10 Jun 2008 17:10:34 +0200 From: Jona Joachim To: Jeremy Chadwick Message-ID: <20080610151033.GA1415@nirvana.my.domain> 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> <20080610134840.GA44581@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080610134840.GA44581@eos.sc1.parodius.com> X-PGP-Key: http://www.hcl-club.lu/~jaj/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) 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 15:10:37 -0000 On Tue, Jun 10, 2008 at 06:48:40AM -0700, Jeremy Chadwick wrote: > 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). You can find it all in there: http://www.hcl-club.lu/~jaj/stuff/pkg_delete-segv.tar.gz > Have you had any filesystem problems as of late? dmesg -a show any > filesystem issues or disk issues? No, I didn't have any disk issues I'm aware of. dmesg -a doesn't show anything suspect. > > 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)) { The last line of +CONTENTS has an @comment line with no MD5 following. On Jun 8 (timestamp of +CONTENTS) I was doing a portupgrade -a. > 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. My sources are pretty much up to date. I have the latest changes flz@ checked in one week ago into pkg_install.