Subject: pkg_delete dumps core
To: pkgsrc <tech-pkg@NetBSD.ORG>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: tech-pkg
Date: 10/03/2001 10:39:58
Using pkgsrc from Sep-01 on NetBSD 1.5W, I'm unable to delete some
packages installed from an earlier version of pkgsrc:

root@lintu x11/gnome # pkg_delete -f imlib-1.9.8.1
pkg_delete: file `/usr/X11R6/bin/imlib_config' doesn't really exist
Segmentation fault (core dumped)

in gdb:

pkg_delete: file `/usr/X11R6/bin/imlib_config' doesn't really exist
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x480df35b in __bt_cmp ()
(gdb) bt
#0  0x480df35b in __bt_cmp ()
#1  0x480deee1 in __bt_search ()
#2  0x480dd017 in __bt_delete ()
#3  0x480dcb69 in __bt_delete ()
#4  0x804bd05 in dladdr ()
#5  0x804b918 in dladdr ()
#6  0x804aed4 in dladdr ()
#7  0x804b0a4 in dladdr ()
#8  0x8049eb2 in dladdr ()
#9  0x80497fd in free ()

I haven't seen this on other machines, so I guess something must be wrong
with the pkgsrc database (I said "I guess!" :) but I don't know how to
fix things - do I "rm -rf /usr/pkg /var/db/pkg" or...?

  -jm