Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2001 06:31:11 -0800 (PST)
From:      colle@krtkg1.rug.ac.be
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/25543: pkg_info dumps core
Message-ID:  <200103051431.f25EVBS24379@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         25543
>Category:       bin
>Synopsis:       pkg_info dumps core
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 05 06:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Christophe Colle
>Release:        FreeBSD 5.0-20010302-CURR
>Organization:
>Environment:
FreeBSD portie.pandora.be 5.0-20010302-CURRENT FreeBSD 5.0-20010302-CURRENT #0: Fri Mar  2 16:09:41 GMT 2001     root@usw2.freebsd.org:/usr/src/sys/compile/GENERIC  i386

>Description:
adding a package (with /stand/sysinstall or pkg_add) fails because
the subprocess pkg_info dumps core.

The stacktrace is:
bash-2.04# gdb /usr/sbin/pkg_info.bad  /var/tmp/instmp.9kfRWV/pkg_info.bad.core 
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
Core was generated by `pkg_info.bad'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libfetch.so.2...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libmd.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...
done.
#0  0x280f60fe in __vfprintf () from /usr/lib/libc.so.5
(gdb) $b
Undefined command: "".  Try "help".
(gdb) ba
#0  0x280f60fe in __vfprintf () from /usr/lib/libc.so.5
#1  0x280f04e7 in snprintf () from /usr/lib/libc.so.5
#2  0x8049a70 in free ()
#3  0x80499e6 in free ()
#4  0x8049699 in free ()

The command to generate the core is:
bash-2.04# ktrace -i pkg_add -v ~colle/mod_php4-4.0.4pl1.tgz 
Requested space: 1480852 bytes, free space: 17775616 bytes in /var/tmp/instmp.9kfRWV
Package `mod_php4-4.0.4pl1' depends on `mysql-client-3.23.33'.
Segmentation fault - core dumped
pkg_add: could not find package mysql-client-3.23.33 !
Package `mod_php4-4.0.4pl1' depends on `apache-1.3.17_1'.
Segmentation fault - core dumped
pkg_add: could not find package apache-1.3.17_1 !


>How-To-Repeat:
pkg_add mod_php4-4.0.4pl1.tgz
>Fix:
temp fix:
replace pkg_info with pkg_info from FBSD4.
and fbsd 5 flies again
>Release-Note:
>Audit-Trail:
>Unformatted:
 ENT

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103051431.f25EVBS24379>