pkgadd segfaults

Alan Mizrahi alan-crux at mizrahi.com.ve
Wed Mar 8 21:56:11 UTC 2006


Hello list,

I run into a segfault whenever I run pkgadd (pkgutils 5.20).

Am I the only one in the list with this problem?

Now that Per retired from the Crux project, who is going to support this 
programs?

This is the main server in the company I work for, and the hardware is running 
fine (I don't believe this is a hardware problem).  This machine has an 
uptime of 116 days and counting, with all services running flawless since day 
1.

I compiled pkgadd with --gdb and disabling the NDEBUG define, and then run it 
with gdb, and this is what I get:

[root at centauris pkgutils-5.20]# gdb ./pkgadd
GNU gdb 6.3
Copyright 2004 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 "i686-pc-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

(gdb) run -u /usr/ports/pkgs/libgmp#4.1.4-3.pkg.tar.gz
Starting program: /tmp/pkgutils-5.20/pkgadd 
-u /usr/ports/pkgs/libgmp#4.1.4-3.pkg.tar.gz
145 packages found in database
Configuration:
        ^etc/.*$        0
        ^var/log/.*$    0
        ^etc/mail/cf/.*$        1
        ^etc/ports/drivers/.*$  1
        ^etc/X11/.*$    1
        ^etc/rc.*$      1
        ^etc/rc\.local$ 0
        ^etc/rc\.modules$       0
        ^etc/rc\.conf$  0
        ^etc/rc\.d/net$ 0

Conflicts phase 1 (conflicts in database):
usr/
usr/include/
usr/lib/

Conflicts phase 2 (conflicts in filesystem added):
usr/
usr/include/
usr/include/gmp.h
usr/include/gmpxx.h
usr/lib/
usr/lib/libgmp.a
usr/lib/libgmp.la
usr/lib/libgmp.so
usr/lib/libgmp.so.3
usr/lib/libgmp.so.3.3.3
usr/lib/libgmpxx.a
usr/lib/libgmpxx.la
usr/lib/libgmpxx.so
usr/lib/libgmpxx.so.3
usr/lib/libgmpxx.so.3.0.5

Conflicts phase 3 (directories excluded):
usr/include/gmp.h
usr/include/gmpxx.h
usr/lib/libgmp.a
usr/lib/libgmp.la
usr/lib/libgmp.so
usr/lib/libgmp.so.3
usr/lib/libgmp.so.3.3.3
usr/lib/libgmpxx.a
usr/lib/libgmpxx.la
usr/lib/libgmpxx.so
usr/lib/libgmpxx.so.3
usr/lib/libgmpxx.so.3.0.5

Conflicts phase 4 (files already owned by this package excluded):

Keep list:

Removing package phase 1 (all files in package):
usr/
usr/include/
usr/include/gmp.h
usr/include/gmpxx.h
usr/lib/
usr/lib/libgmp.a
usr/lib/libgmp.la
usr/lib/libgmp.so
usr/lib/libgmp.so.3
usr/lib/libgmp.so.3.3.3
usr/lib/libgmpxx.a
usr/lib/libgmpxx.la
usr/lib/libgmpxx.so
usr/lib/libgmpxx.so.3
usr/lib/libgmpxx.so.3.0.5

Removing package phase 2 (files that is in the keep list excluded):
usr/
usr/include/
usr/include/gmp.h
usr/include/gmpxx.h
usr/lib/
usr/lib/libgmp.a
usr/lib/libgmp.la
usr/lib/libgmp.so
usr/lib/libgmp.so.3
usr/lib/libgmp.so.3.3.3
usr/lib/libgmpxx.a
usr/lib/libgmpxx.la
usr/lib/libgmpxx.so
usr/lib/libgmpxx.so.3
usr/lib/libgmpxx.so.3.0.5

Removing package phase 3 (files that still have references excluded):
usr/include/gmp.h
usr/include/gmpxx.h
usr/lib/libgmp.a
usr/lib/libgmp.la
usr/lib/libgmp.so
usr/lib/libgmp.so.3
usr/lib/libgmp.so.3.3.3
usr/lib/libgmpxx.a
usr/lib/libgmpxx.la
usr/lib/libgmpxx.so
usr/lib/libgmpxx.so.3
usr/lib/libgmpxx.so.3.0.5

145 packages written to database

Program received signal SIGSEGV, Segmentation fault.
0x080d58d0 in _IO_un_link ()
(gdb) bt
#0  0x080d58d0 in _IO_un_link ()
#1  0x080cf24f in fclose ()
#2  0x0805e0b8 in destroy ()
#3  0x0805c1fa in tar_close (t=0x818cc30) at handle.c:118
#4  0x0804dd0e in pkgutil::pkg_install (this=0x816cb00, filename=@0xbfb49f50, 
keep_list=@0xbfb49e70) at pkgutil.cc:425
#5  0x080568d6 in pkgadd::run (this=0x816cb00, argc=-1078681936, 
argv=0xbfb4a2c4) at pkgadd.cc:104
#6  0x08048687 in main (argc=3, argv=0xbfb4a2c4) at memory:285

Can anybody help me figure this out?

Regards,
--
Alan Mizrahi



More information about the CRUX mailing list