Package: libapt-pkg-perl
Version: 0.1.13
Severity: normal

I've found a segfault which happens during object destruction,
in XS_AptPkg___pkg_records_DESTROY.  Sorry but I haven't had time to
whittle this down to a small test case, but attached is some code which
reproduces it here.  I will try to get a smaller test case, but I figured
this was better than nothing.  If you can't reproduce it let me know.

Script started on Tue 05 Jul 2005 05:29:05 PM EDT
$ perl -Ilib ./debget-madison nethack
   nethack | 3.4.0-3.0woody3 |     oldstable | source
   nethack | 3.4.0-3.0woody4 |     oldstable | all
   nethack |    3.4.3-6 |        stable | source, all
   nethack |    3.4.3-7 |       testing | source, all
   nethack |    3.4.3-7 |      unstable | source, all
Segmentation fault (core dumped)
$ gdb perl core
GNU gdb 6.3-debian
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 "i386-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(no debugging symbols found)
Core was generated by `perl -Ilib ./debget-madison nethack'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /lib/tls/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libpthread.so.0...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libcrypt.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libcrypt.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/perl/5.8.4/auto/List/Util/Util.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/perl/5.8/auto/List/Util/Util.so
Reading symbols from /usr/lib/perl/5.8.4/auto/POSIX/POSIX.so...(no debugging 
symbols found)...done.
Loaded symbols for /usr/lib/perl/5.8/auto/POSIX/POSIX.so
Reading symbols from /usr/lib/perl/5.8.4/auto/IO/IO.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/perl/5.8/auto/IO/IO.so
Reading symbols from /usr/lib/perl/5.8.4/auto/Socket/Socket.so...(no debugging 
symbols found)...done.
Loaded symbols for /usr/lib/perl/5.8/auto/Socket/Socket.so
Reading symbols from /lib/libnss_db.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_db.so.2
Reading symbols from /lib/tls/libnss_files.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/libnss_files.so.2
Reading symbols from /usr/lib/libdb3.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdb3.so.3
Reading symbols from /lib/tls/libnss_dns.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/libnss_dns.so.2
Reading symbols from /lib/tls/libresolv.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libresolv.so.2
Reading symbols from /usr/lib/perl5/auto/Compress/Zlib/Zlib.so...(no debugging 
symbols found)...done.
Loaded symbols for /usr/lib/perl5/auto/Compress/Zlib/Zlib.so
Reading symbols from /usr/lib/libz.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/perl5/auto/HTML/Parser/Parser.so...(no debugging 
symbols found)...done.
Loaded symbols for /usr/lib/perl5/auto/HTML/Parser/Parser.so
Reading symbols from /usr/lib/perl5/auto/AptPkg/AptPkg.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/perl5/auto/AptPkg/AptPkg.so
Reading symbols from /usr/lib/libapt-pkg-libc6.3-5.so.3.3...(no debugging 
symbols found)...done.
Loaded symbols for /usr/lib/libapt-pkg-libc6.3-5.so.3.3
Reading symbols from /usr/lib/libstdc++.so.5...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1

#0  0xb7c2a8d1 in pkgRecords::~pkgRecords ()
   from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
(gdb) where
#0  0xb7c2a8d1 in pkgRecords::~pkgRecords ()
   from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#1  0xb7c9336e in XS_AptPkg___pkg_records_DESTROY ()
   from /usr/lib/perl5/auto/AptPkg/AptPkg.so
#2  0x080c32d6 in Perl_pp_entersub ()
#3  0x080640ec in Perl_call_sv ()
#4  0x08063ec1 in Perl_call_sv ()
#5  0x080cbad5 in Perl_sv_clear ()
#6  0x080cc2a0 in Perl_sv_free ()
#7  0x080c4542 in Perl_sv_add_arena ()
#8  0x080c46b4 in Perl_sv_clean_objs ()
#9  0x08061d6f in perl_destruct ()
#10 0x0805fb49 in main ()
(gdb) q
$ 
Script done on Tue 05 Jul 2005 05:29:16 PM EDT

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (700, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-jones.1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages libapt-pkg-perl depends on:
ii  apt [libapt-pkg-libc6.3-5-3 0.5.28.6     Advanced front-end for dpkg
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.4.3-12   GCC support library
ii  libstdc++5                  1:3.3.5-12   The GNU Standard C++ Library v3
ii  perl-base [perlapi-5.8.4]   5.8.4-8      The Pathologically Eclectic Rubbis

-- no debconf information

-- 
Roderick Schertler
[EMAIL PROTECTED]

Attachment: code.tar.gz
Description: Binary data

Reply via email to