Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2008 06:48:40 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Jona Joachim <jaj@hcl-club.lu>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: pkg_delete core dump when removing linux-tiff
Message-ID:  <20080610134840.GA44581@eos.sc1.parodius.com>
In-Reply-To: <20080610132629.GA15963@nirvana.my.domain>
References:  <slrng4nn24.han.jaj@nirvana.my.domain> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080610134840.GA44581>