Date: Mon, 1 Jun 2009 13:22:51 +0200 (CEST) From: matthias.andree@gmx.de To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/135159: pkg_delete segfaults on empty @pkgdep lines Message-ID: <20090601112252.0A5B533C09@rho.emma.line.org> Resent-Message-ID: <200906011600.n51G06HP047273@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090601112252.0A5B533C09>