NetBSD Problem Report #30292

From rhialto@falu.nl  Fri May 20 16:05:47 2005
Return-Path: <rhialto@falu.nl>
Received: from smtp.falu.nl (azenomei.xs4all.nl [213.84.74.36])
	by narn.netbsd.org (Postfix) with ESMTP id F416F63B104
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 20 May 2005 16:05:45 +0000 (UTC)
Message-Id: <200505201605.j4KG5bus020179@azenomei.falu.nl>
Date: Fri, 20 May 2005 18:05:37 +0200 (CEST)
From: Rhialto <rhialto@falu.nl>
Reply-To: rhialto@falu.nl
To: gnats-bugs@netbsd.org
Subject: pkg_add -u dumps core
X-Send-Pr-Version: 3.95

>Number:         30292
>Category:       pkg
>Synopsis:       pkg_add -u dumps core
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 20 16:06:00 +0000 2005
>Closed-Date:    Fri Dec 29 19:20:10 +0000 2006
>Last-Modified:  Fri Dec 29 19:20:10 +0000 2006
>Originator:     Rhialto
>Release:        NetBSD 2.0
>Organization:

>Environment:


System: NetBSD azenomei.falu.nl 2.0 NetBSD 2.0 (AZENOMEI2.0) #1: Tue Jan 11 00:02:19 CET 2005 rhialto@azenomei.falu.nl:/usr/src/sys/arch/alpha/compile/AZENOMEI2.0 alpha
Architecture: alpha
Machine: alpha
>Description:
	pkg_add dumps core (apparently after extracting the binary
	archive). The core file ends up in /var/tmp/instmp.*.
	I'm using pkgsrc-2005Q1. The binary package was just created
	from the same pkgsrc tree.

>How-To-Repeat:
	$ sudo pkg_add -u /scratch2/packages/All/gnutls-1.2.3.tgz 
	 72.2%
	Segmentation fault (core dumped)

	azenomei:/var/tmp/instmp.13210a# gdb /usr/sbin/pkg_add pkg_add.core 
	GNU gdb 5.3nb1
	Copyright 2002 Free Software Foundation, Inc.
	[...bla...]
	This GDB was configured as "alpha--netbsd"...(no debugging symbols found)...
	Core was generated by `pkg_add'.
	Program terminated with signal 11, Segmentation fault.
	Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
	done.
	Loaded symbols for /usr/libexec/ld.elf_so
	Reading symbols from /usr/lib/libtermcap.so.0...(no debugging symbols found)...
	done.
	Loaded symbols for /usr/lib/libtermcap.so.0
	Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
	Loaded symbols for /usr/lib/libc.so.12
	#0  0x000000012000c71c in add_plist ()
	(gdb) bt
	#0  0x000000012000c71c in add_plist ()
	#1  0x0000000160100dbc in __sfp () from /usr/lib/libc.so.12
	#2  0x0000000120004c88 in pkg_do ()
	#3  0x000000016012776c in fgets () from /usr/lib/libc.so.12
	warning: Hit heuristic-fence-post without finding
	warning: enclosing function for address 0x1fffff3e8
	This warning occurs if you are debugging a function without any symbols
	(for example, in a stripped executable).  In that case, you may wish to
	increase the size of the search with the `set heuristic-fence-post' command.

	Otherwise, you told GDB there was a function where there isn't one, or
	(more likely) you have encountered a bug in GDB.
	(gdb) 

>Fix:
	None known yet.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            --  rhialto/at/falu.nl
\X/ Hi! I'm a signature virus! Copy me to your .signature to help me spread!

>Release-Note:

>Audit-Trail:
From: Andreas Gustafsson <gson@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/30292 CVS commit: src/usr.sbin/pkg_install/add
Date: Thu, 20 Jul 2006 08:34:33 +0000 (UTC)

 Module Name:	src
 Committed By:	gson
 Date:		Thu Jul 20 08:34:32 UTC 2006

 Modified Files:
 	src/usr.sbin/pkg_install/add: perform.c

 Log Message:
 Fix uninitialized variable which was causing pkg_add -u to randomly
 dump core.  This may fix PR pkg/30292.


 To generate a diff of this commit:
 cvs rdiff -r1.120 -r1.121 src/usr.sbin/pkg_install/add/perform.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Andreas Gustafsson <gson@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/30292 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Thu, 20 Jul 2006 11:29:49 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	gson
 Date:		Thu Jul 20 11:29:49 UTC 2006

 Modified Files:
 	pkgsrc/pkgtools/pkg_install/files/add: perform.c
 	pkgsrc/pkgtools/pkg_install/files/lib: version.h

 Log Message:
 Import the following change to add/perform.c from src to pkgsrc:

  Fix uninitialized variable which was causing pkg_add -u to randomly
  dump core.  This may fix PR pkg/30292.

 Also bump the pkgsrc PKGTOOLS_VERSION to 20060720.


 To generate a diff of this commit:
 cvs rdiff -r1.42 -r1.43 pkgsrc/pkgtools/pkg_install/files/add/perform.c
 cvs rdiff -r1.60 -r1.61 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.

From: Ben Collver <collver@peak.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/30292
Date: Thu, 20 Jul 2006 06:41:57 -0700

 Looks like this bug happened here:

 http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/pkg_install/add/perform.c.diff?r1=1.77&r2=1.78

State-Changed-From-To: open->feedback
State-Changed-By: wiz@netbsd.org
State-Changed-When: Fri, 21 Jul 2006 16:16:19 +0000
State-Changed-Why:
Please upgrade to pkg_install-20060720 and check if the
problem is still there. Thanks.


State-Changed-From-To: feedback->closed
State-Changed-By: wiz@netbsd.org
State-Changed-When: Fri, 29 Dec 2006 19:20:10 +0000
State-Changed-Why:
Feedback timeout.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.