From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 21 07:30:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AC81106568D for ; Fri, 21 Aug 2009 07:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 663CF8FC64 for ; Fri, 21 Aug 2009 07:30:01 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7L7U0CH071754 for ; Fri, 21 Aug 2009 07:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7L7U01p071753; Fri, 21 Aug 2009 07:30:00 GMT (envelope-from gnats) Resent-Date: Fri, 21 Aug 2009 07:30:00 GMT Resent-Message-Id: <200908210730.n7L7U01p071753@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mats Andreassen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F98F106568B for ; Fri, 21 Aug 2009 07:20:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4D9468FC57 for ; Fri, 21 Aug 2009 07:20:49 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7L7Kmta020955 for ; Fri, 21 Aug 2009 07:20:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7L7Kmcb020954; Fri, 21 Aug 2009 07:20:48 GMT (envelope-from nobody) Message-Id: <200908210720.n7L7Kmcb020954@www.freebsd.org> Date: Fri, 21 Aug 2009 07:20:48 GMT From: Mats Andreassen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/138017: pkg_delete starts segfaulting during upgrading of ports X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 07:30:01 -0000 >Number: 138017 >Category: misc >Synopsis: pkg_delete starts segfaulting during upgrading of ports >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 21 07:30:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Mats Andreassen >Release: 7.2 i386 >Organization: None >Environment: FreeBSD xxx 7.2-RELEASE FreeBSD 7.2-RELEASE #0: root@xxx:/usr/obj/sys/GENERIC i386 >Description: During a furious upgrading of ports 'pkg_delete' suddenly starts segfaulting. fsck did not reveal any obvious disc corruption. Backtrace: #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 >How-To-Repeat: I have no idea why this started manifesting itself, but the error now occurs whenever I try to remove a package. >Fix: >Release-Note: >Audit-Trail: >Unformatted: