pkg_delete core dump when removing linux-tiff
Jona Joachim
jaj at hcl-club.lu
Tue Jun 10 15:10:37 UTC 2008
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.
More information about the freebsd-stable
mailing list