pkg_delete core dump when removing linux-tiff
Jeremy Chadwick
koitsu at FreeBSD.org
Tue Jun 10 13:48:41 UTC 2008
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 |
More information about the freebsd-stable
mailing list