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

Bug#221706: segfault when reading package lists



Subject: /usr/lib/libapt-pkg-libc6.3-5.so.3.3: segfault when reading package lists
Package: apt
Version: 0.5.14
Severity: normal
File: /usr/lib/libapt-pkg-libc6.3-5.so.3.3

*** Please type your report below this line ***

After an upgrade to the latest libc6, I get the following behavior when
doing an `apt-get update`:

# gdb apt-get
GNU gdb 6.0-debian
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)...
(gdb) run update
Starting program: /usr/bin/apt-get update
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols foundGet:1 http://172.16.0.1 sarge/main Packages [2522kB]
Get:2 http://172.16.0.1 sarge/main Release [84B]
Get:3 http://172.16.0.1 sarge/contrib Packages [51.1kB]
Get:4 http://172.16.0.1 sarge/contrib Release [87B]
Get:5 http://172.16.0.1 sarge/non-free Packages [47.0kB]
Get:6 http://172.16.0.1 sarge/non-free Release [88B]
Hit http://172.16.0.1 sarge/non-US/main Packages
Hit http://172.16.0.1 sarge/non-US/main Release
Hit http://172.16.0.1 sarge/non-US/contrib Packages
Hit http://172.16.0.1 sarge/non-US/contrib Release
Hit http://172.16.0.1 sarge/non-US/non-free Packages
Hit http://172.16.0.1 sarge/non-US/non-free Release
Hit http://172.16.0.1 binary/ Packages
Ign http://172.16.0.1 binary/ Release
Fetched 2621kB in 1m59s (21.9kB/s)
Reading Package Lists... 1%
Program received signal SIGSEGV, Segmentation fault.
0x0ffb0094 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  0x0ffb0094 in pkgCacheGenerator::ListParser::NewDepends(pkgCache::VerIterator, std::string, std::string, unsigned, unsigned) () from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#1  0x0ffb0054 in pkgCacheGenerator::ListParser::NewDepends(pkgCache::VerIterator, std::string, std::string, unsigned, unsigned) () from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#2  0x0ffbc2b0 in debListParser::NewVersion(pkgCache::VerIterator) ()
  from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#3  0x0ffaed78 in pkgCacheGenerator::MergeList(pkgCacheGenerator::ListParser&, pkgCache::VerIterator*) () from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#4  0x0ffc9a4c in debPackagesIndex::Merge(pkgCacheGenerator&, OpProgress&) const ()
  from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#5  0x0ffb188c in pkgCacheGenerator::WriteUniqString(char const*, unsigned) ()
  from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#6  0x0ffb1cf8 in pkgMakeStatusCache(pkgSourceList&, OpProgress&, MMap**, bool) ()
  from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#7  0x0ffa7cec in pkgCacheFile::BuildCaches(OpProgress&, bool) ()
  from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
#8  0x1000d2fc in ?? ()
(gdb)

This happened after an update to the following packages (dump from
apt-get -u):

base-config base-files console-common debconf debconf-i18n diff
findutils iptables libc6 login modutils nano passwd ppp procps
proftpd proftpd-common proftpd-doc pump wget wwwconfig-common

I unfortunately do not know which version of libc6 I was running prior
to this update.

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "powerpc";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
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:: "/usr/sbin/dpkg-preconfigure --apt || true";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

deb http://172.16.0.1/debian sarge main contrib non-free
deb http://172.16.0.1/debian-non-US sarge/non-US main contrib non-free
deb http://172.16.0.1/debian-wc binary/

#deb http://security.debian.org/ sarge/updates main contrib non-free

#deb http://ftp.us.debian.org/debian sid main contrib non-free
#deb http://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free

-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux bremerton 2.4.20 #1 Fri Oct 24 00:02:45 PDT 2003 ppc
Locale: LANG=C, LC_CTYPE=C

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.3.2-1    GCC support library
ii  libstdc++5                  1:3.3.2-1    The GNU Standard C++ Library v3

-- no debconf information


--
Ken Treis
Miriam Technologies, Inc.





Reply to: