bin/135159: pkg_delete segfaults on empty @pkgdep lines

matthias.andree at matthias.andree at
Mon Jun 1 16:00:07 UTC 2009

>Number:         135159
>Category:       bin
>Synopsis:       pkg_delete segfaults on empty @pkgdep lines
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 01 16:00:05 UTC 2009
>Originator:     Bourne-again Superuser
>Release:        FreeBSD 7.2-RELEASE i386
System: FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Mon Jun 1 01:31:01 CEST 2009 toor at rho:/usr/src/sys/i386/compile/GENERIC i386

pkg_delete segfaults when deinstalling packages with a certain kind of
corruption in the +CONTENTS file. I am not sure where this problem originated,
(probably either portmaster or portupgrade),
but for sure pkg_delete should not segfault on any kind of corruption.

The segfault happens with and without -f option.

This happens in 7_STABLE as of 2009-06-01 as well as 7.2-RELEASE.
(replace foobar by a package to be deleted)

echo '@pkgdep' >>/var/db/pkg/foobar/+CONTENTS
pkg_delete -f foobar




More information about the freebsd-bugs mailing list