pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44476: pkg_info core dump under Solaris



>Number:         44476
>Category:       pkg
>Synopsis:       pkg_info core dump under Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 28 09:40:00 +0000 2011
>Originator:     Uwe Klaus
>Release:        
>Organization:
>Environment:
SunOS l55 5.10 Generic_144488-07 sun4u sparc SUNW,SPARC-Enterprise
>Description:
After installing lang/ruby18-base or lang/ruby19-base 
bmake wrapper for any ruby depended package gives
Memory fault (core dumped)

The core dump analyze directs to pkg_info

# pstack /opt/pkg/core 
core '/opt/pkg/core' of 17366:  /opt/pkg/sbin/pkg_info -K /var/db/pkg -f 
ruby19-base-1.9.2pl136
 ff132370 strlen   (56b9c, ffbff37c, ffbfe9f9, 0, 0, 0) + 50
 ff1a0680 printf   (56b90, 6fb60, 0, 6fb7e, ff2303d8, 12) + f4
 00019bfc show_plist (18, 199b0, ffffffff, 0, 6cf9c, 163c48) + 204
 000191d8 pkg_do   (4, 6cc00, ffbff3f8, 71930, 56800, 4) + 478
 00019820 pkg_perform (6fb50, 10000, 801, 700c8, 4, 6cc00) + 230
 000186b4 main     (6cc00, 0, 0, 6fb50, ffbff950, ffffffff) + 718
 00017a20 _start   (0, 0, 0, 0, 0, 0) + 108

# /opt/pkg/sbin/pkg_info -K /var/db/pkg -f ruby19-base-1.9.2pl136
Information for ruby19-base-1.9.2pl136:

Packing list:
        CWD to: /opt/pkg
        Package name: ruby19-base-1.9.2pl136
        Package depends exactly on: db4-4.8.30
        Package depends on: db4>=4.8.30
        Package depends exactly on: libiconv-1.13.1
        Package depends on: libiconv>=1.9.1nb4
        Package depends exactly on: openssl-0.9.8q
        Package depends on: openssl>=0.9.8knb1
        Package depends exactly on: digest-20080510
        Package depends exactly on: tnftp-20070806
        Package depends exactly on: nbpatch-20100124
        Package depends exactly on: pax-20080110
        Package depends exactly on: shlock-20080529
        Package depends exactly on: bison-2.4.3
        Comment: $NetBSD: PLIST,v 1.3 2010/11/17 14:27:10 taca Exp $
....
        File: lib/libruby19-static.a
        Comment: MD5:7b558d773b0ecebc2581a1ad5535cdea
        File: lib/libruby19.so
        Comment: Symlink:libruby19.so.1
Segmentation Fault (core dumped)

Looking into /var/db/pkg/ruby19-base-1.9.2pl136/+CONTENTS
there is a suspicious line containing only @comment.

lib/libruby19-static.a
@comment MD5:7b558d773b0ecebc2581a1ad5535cdea
lib/libruby19.so
@comment Symlink:libruby19.so.1
@comment
lib/libruby19.so.1.9.1
@comment Symlink:libruby19.so.1

After deleting this single line the pkg_info command succeeds.

>How-To-Repeat:
Install lang/ruby19-base and run 
/opt/pkg/sbin/pkg_info -K /var/db/pkg -f ruby19-base-1.9.2pl136
>Fix:



Home | Main Index | Thread Index | Old Index