Bug#221706: apt: same (?) segfault here
Package: apt
Version: 0.5.23
Severity: normal
Followup-For: Bug #221706
Got a similar segfault today:
~% sudo apt-get update
Hit http://192.168.0.2 unstable/main Packages
Hit http://192.168.0.2 unstable/main Release
Hit http://192.168.0.2 unstable/non-free Packages
Hit http://192.168.0.2 unstable/non-free Release
Hit http://192.168.0.2 unstable/contrib Packages
Hit http://debian.jones.dk sid/misc Packages
Hit http://debian.jones.dk sid/misc Release
Hit http://192.168.0.2 unstable/contrib Release
Hit http://192.168.0.2 unstable/main Sources
Hit http://192.168.0.2 unstable/main Release
Hit http://192.168.0.2 unstable/non-free Sources
Hit http://192.168.0.2 unstable/non-free Release
Hit http://192.168.0.2 unstable/contrib Sources
Hit http://192.168.0.2 unstable/contrib Release
Hit http://192.168.0.2 unstable/non-US/main Packages
Hit http://192.168.0.2 unstable/non-US/main Release
Hit http://192.168.0.2 unstable/non-US/contrib Packages
Hit http://192.168.0.2 unstable/non-US/contrib Release
Hit http://192.168.0.2 unstable/non-US/non-free Packages
Hit http://192.168.0.2 unstable/non-US/non-free Release
Hit http://192.168.0.2 unstable/non-US/main Sources
Hit http://192.168.0.2 unstable/non-US/main Release
Hit http://192.168.0.2 unstable/non-US/contrib Sources
Hit http://192.168.0.2 unstable/non-US/contrib Release
Hit http://192.168.0.2 unstable/non-US/non-free Sources
Hit http://192.168.0.2 unstable/non-US/non-free Release
Hit http://192.168.0.2 experimental/main Packages
Hit http://192.168.0.2 experimental/main Release
Hit http://192.168.0.2 experimental/non-free Packages
Hit http://192.168.0.2 experimental/non-free Release
Hit http://192.168.0.2 experimental/contrib Packages
Hit http://192.168.0.2 experimental/contrib Release
Hit http://192.168.0.2 experimental/main Sources
Hit http://192.168.0.2 experimental/main Release
Hit http://192.168.0.2 experimental/non-free Sources
Hit http://192.168.0.2 experimental/non-free Release
Hit http://192.168.0.2 experimental/contrib Sources
Hit http://192.168.0.2 experimental/contrib Release
Hit http://192.168.0.2 stable/updates/main Packages
Hit http://192.168.0.2 stable/updates/main Release
Hit http://192.168.0.2 stable/updates/contrib Packages
Hit http://192.168.0.2 stable/updates/contrib Release
Hit http://192.168.0.2 stable/updates/non-free Packages
Hit http://192.168.0.2 stable/updates/non-free Release
zsh: 4902 segmentation fault (core dumped) sudo apt-get update
~% sudo chown laz: core
~% gdb =apt-get core
GNU gdb 6.0
Copyright 2003 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 "powerpc-linux"...(no debugging symbols found)...
Core was generated by `apt-get update'.
Program terminated with signal 11, Segmentation fault.
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/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/ld.so.1
#0 0x0ffb0294 in pkgCacheGenerator::ListParser::NewDepends(pkgCache::VerIterator, std::string, std::string, unsigned, unsigned) ()
from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
(gdb) bt
#0 0x0ffb0294 in pkgCacheGenerator::ListParser::NewDepends(pkgCache::VerIterator, std::string, std::string, unsigned, unsigned) ()
from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#1 0x0ffb0250 in pkgCacheGenerator::ListParser::NewDepends(pkgCache::VerIterator, std::string, std::string, unsigned, unsigned) ()
from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#2 0x0ffbc500 in debListParser::NewVersion(pkgCache::VerIterator) ()
from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#3 0x0ffaef74 in pkgCacheGenerator::MergeList(pkgCacheGenerator::ListParser&, pkgCache::VerIterator*) () from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#4 0x0ffc9de8 in debPackagesIndex::Merge(pkgCacheGenerator&, OpProgress&) const () from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#5 0x0ffb1a84 in pkgCacheGenerator::WriteUniqString(char const*, unsigned) ()
from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#6 0x0ffb1ee8 in pkgMakeStatusCache(pkgSourceList&, OpProgress&, MMap**, bool)
() from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#7 0x0ffa7ee8 in pkgCacheFile::BuildCaches(OpProgress&, bool) ()
from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#8 0x1000d32c in ?? ()
(gdb)
I've put the contents of /var/lib/dpkg/status,
/var/backup/dpkg.status.0, and the corefile (probably /home/laz/core) up
at http://adam.lazur.org/tmp/221706.tar.gz
Moving /var/cache/apt/{src,}pkgcache.bin out of the way didn't make it
happen, and I'm able to "reliably" reproduce the segfault ATM.
Let me know if you want me to poke at other stuff or how I can aid in
debugging things.
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "powerpc";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Get "";
APT::Get::Show-Upgraded "true";
APT::Cache-Limit "8388608";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "if dpkg -s apt-listbugs | grep -q '^Status: .* ok installed'; then /usr/sbin/apt-listbugs apt || ( test $? -ne 10 || exit 10; echo 'Warning: apt-listbugs exited abnormally, hit any key to continue.' 1>&2 ; read a < /dev/tty ); fi";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
-- /etc/apt/preferences --
Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 300
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 300
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 900
Package: *
Pin: release o=Debian
Pin-Priority: -1
-- /etc/apt/sources.list --
# stable
#deb http://http.us.debian.org/debian stable main non-free contrib
#deb-src http://http.us.debian.org/debian stable main non-free contrib
#deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
# testing
#deb http://debian.uchicago.edu/debian/ testing main non-free contrib
#deb-src http://debian.uchicago.edu/debian/ testing main non-free contrib
#deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
# unstable
deb http://192.168.0.2/apt-cacher/debian.uchicago.edu/debian/ unstable main non-free contrib
deb-src http://192.168.0.2/apt-cacher/debian.uchicago.edu/debian/ unstable main non-free contrib
deb http://192.168.0.2/apt-cacher/non-us.debian.org/debian-non-US unstable/non-US main contrib non-free
deb-src http://192.168.0.2/apt-cacher/non-us.debian.org/debian-non-US unstable/non-US main contrib non-free
deb http://192.168.0.2/apt-cacher/debian.uchicago.edu/debian/ experimental main non-free contrib
deb-src http://192.168.0.2/apt-cacher/debian.uchicago.edu/debian/ experimental main non-free contrib
deb http://192.168.0.2/apt-cacher/security.debian.org/ stable/updates main contrib non-free
# daenzer's dri x stuff
#deb http://people.debian.org/~daenzer/dri-trunk-sid/ ./
# mplayer sources
#deb-src http://marillat.free.fr unstable main
deb http://debian.jones.dk sid misc
# lame
#deb ftp://ftp.mowgli.ch/pub/debian ./
#deb-src ftp://ftp.mowgli.ch/pub/debian ./
# blackdown java
#deb ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/debian unstable main non-free
# bluez
#deb http://bluez.sourceforge.net/download/debian/ ./
#deb-src http://bluez.sourceforge.net/download/debian/ ./
#deb http://fnord.hemmet.chalmers.se/giftcurs unstable main
#deb-src http://fnord.hemmet.chalmers.se/giftcurs unstable main
# multisync
#deb-src http://www.mikan.net/~mikan/debian/unstable ./
#deb http://adam.lazur.org/debian screen/
#deb-src http://adam.lazur.org/debian screen/
# whale
#deb http://www.structbench.com/debian ./
#deb-src http://www.structbench.com/debian ./
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (900, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.1-ben1
Locale: LANG=C, LC_CTYPE=C
Versions of packages apt depends on:
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii libgcc1 1:3.3.3-2 GCC support library
ii libstdc++5 1:3.3.3-2 The GNU Standard C++ Library v3
-- no debconf information
Reply to: