bin/135159: pkg_delete segfaults on empty @pkgdep lines

matthias.andree at gmx.de matthias.andree at gmx.de
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 01 16:00:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Bourne-again Superuser
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD rho.emma.line.org 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


	
>Description:
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.
	
>How-To-Repeat:
(replace foobar by a package to be deleted)

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

	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list