misc/138017: pkg_delete starts segfaulting during upgrading of ports

Mats Andreassen matsa at pvv.ntnu.no
Fri Aug 21 07:30:01 UTC 2009

>Number:         138017
>Category:       misc
>Synopsis:       pkg_delete starts segfaulting during upgrading of ports
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 21 07:30:00 UTC 2009
>Originator:     Mats Andreassen
>Release:        7.2 i386
FreeBSD xxx 7.2-RELEASE FreeBSD 7.2-RELEASE #0: root at xxx:/usr/obj/sys/GENERIC i386
During a furious upgrading of ports 'pkg_delete' suddenly starts segfaulting.
fsck did not reveal any obvious disc corruption.

#0  0x33d63846 in strcmp () from /lib/libc.so.7
#1  0x0804b51c in isinstalledpkg (name=0x0) at /usr/src/usr.sbin/pkg_install/lib/match.c:374
#2  0x0804add5 in requiredby (pkgname=0x0, list=0xbfbfe1a8, strict=0, filter=0) at /usr/src/usr.sbin/pkg_install/lib/deps.c:202
#3  0x08049c24 in undepend (p=0x0, pkgname=0x33e09160 "kdelibs-4.2.3") at /usr/src/usr.sbin/pkg_install/delete/perform.c:385
#4  0x0804a779 in pkg_do (pkg=0x33e09160 "kdelibs-4.2.3") at /usr/src/usr.sbin/pkg_install/delete/perform.c:286
#5  0x0804a991 in pkg_perform (pkgs=0x33e0e058) at /usr/src/usr.sbin/pkg_install/delete/perform.c:112
#6  0x08049b3a in real_main (argc=3, argv=0xbfbfeb64)
at /usr/src/usr.sbin/pkg_install/delete/main.c:163
#7  0x0804ab68 in main (argc=3, argv=0xbfbfeb64) at /usr/src/usr.sbin/pkg_install/lib/pkgwrap.c:88
I have no idea why this started manifesting itself, but the error now occurs whenever I try to remove a package.


More information about the freebsd-bugs mailing list