NetBSD Problem Report #42734
From www@NetBSD.org Wed Feb 3 19:14:44 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id DFF8B63B9FC
for <gnats-bugs@gnats.NetBSD.org>; Wed, 3 Feb 2010 19:14:44 +0000 (UTC)
Message-Id: <20100203191444.B3A9563B886@www.NetBSD.org>
Date: Wed, 3 Feb 2010 19:14:44 +0000 (UTC)
From: tnn@NetBSD.org
Reply-To: tnn@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: pkg_add-20100203 crash when installing gnupg2
X-Send-Pr-Version: www-1.0
>Number: 42734
>Category: pkg
>Synopsis: pkg_add-20100203 crash when installing gnupg2
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 03 19:15:01 +0000 2010
>Closed-Date: Wed Feb 03 20:24:46 +0000 2010
>Last-Modified: Wed Feb 03 20:24:46 +0000 2010
>Originator: Tobias Nygren
>Release: 5.99.24
>Organization:
>Environment:
>Description:
pkg_add-20100203 crashes when installing gnupg2.
pkg_add-20100130 does not have the problem.
>How-To-Repeat:
cd pkgsrc/security/gnupg2
make clean
make USE_DESTDIR=yes package
pkg_delete gnupg2
gdb --args /usr/pkg/sbin/pkg_add /tmp/packages/All/gnupg2-2.0.14nb2.tgz
Program received signal SIGSEGV, Segmentation fault.
0x00000000004082d5 in check_dependencies (pkg=0x7f7ffdb0b140) at perform.c:1123
1123 pkg->dependencies[pkg->dep_length++] = best_installed;
(gdb) bt
#0 0x00000000004082d5 in check_dependencies (pkg=0x7f7ffdb0b140)
at perform.c:1123
#1 0x0000000000408fbd in pkg_do (
pkgpath=0x7f7ffdb03050 "/tmp/packages/All/gnupg2-2.0.14nb2.tgz",
mark_automatic=0, top_level=1) at perform.c:1458
#2 0x0000000000409290 in pkg_perform (pkgs=0x7f7fffffdb90) at perform.c:1542
#3 0x0000000000406030 in main (argc=0, argv=0x7f7fffffdc00) at main.c:204
(gdb)
>Fix:
cvs update -dPD 20100201
>Release-Note:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42734 CVS commit: src/external/bsd/pkg_install/dist/lib
Date: Wed, 3 Feb 2010 19:27:01 +0000
Module Name: src
Committed By: joerg
Date: Wed Feb 3 19:27:01 UTC 2010
Modified Files:
src/external/bsd/pkg_install/dist/lib: lib.h version.h
Log Message:
Fix enum to prevent crash (PR 42734)
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.11 -r1.2 src/external/bsd/pkg_install/dist/lib/lib.h
cvs rdiff -u -r1.1.1.25 -r1.2 src/external/bsd/pkg_install/dist/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42734 CVS commit: pkgsrc/pkgtools/pkg_install/files/lib
Date: Wed, 3 Feb 2010 19:28:30 +0000
Module Name: pkgsrc
Committed By: joerg
Date: Wed Feb 3 19:28:30 UTC 2010
Modified Files:
pkgsrc/pkgtools/pkg_install/files/lib: lib.h version.h
Log Message:
pkg_install-20100204:
Fix an enum to prevent crashes later (PR 42734)
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 pkgsrc/pkgtools/pkg_install/files/lib/lib.h
cvs rdiff -u -r1.149 -r1.150 pkgsrc/pkgtools/pkg_install/files/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Wed, 03 Feb 2010 20:24:46 +0000
State-Changed-Why:
closing as fixed
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.