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

Bug#401263: apt segfaults when reading package lists



Package: apt
Version: 0.6.46.2
Severity: grave
Justification: renders package unusable

Whenever I do something with apt-get, it segfaults. Specifically, it seems that it crashes when reading package lists. For example, 'update' fetches all files and displays the 'Fetched...' line and it also displays 'Reading lists: 0%' or something like that and then the beginning of that
line is overwritten so it reads 'Segmentation faultsts... 0%'.

I have an uptodate testing here. And yesterday I also updated, so there are not too many packages
that could cause this.
The packages that got updated today are: gpgv, gnupg, apt-listchanges, libexif12, wine, libwine-gl, wine-utils, libwine, libxslt1.1, linux-image-2.6-686, ppp and xsltproc.

I would guess that apt-listchanges is somewhat related. Uninstalling that did not fix it.

I have tarred the package lists; available on request.

Here's what GDB thinks about it:

lappie:~# gdb /usr/bin/apt-get core
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "i486-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libapt-pkg-libc6.3-6.so.3.11...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libapt-pkg-libc6.3-6.so.3.11
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/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/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
(no debugging symbols found)
Core was generated by `apt-get update'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7cfa2f3 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7cfa2f3 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7e7d316 in std::string::compare () from /usr/lib/libstdc++.so.6
#2 0xb7f799d1 in debPackagesIndex::FindInCache () from /usr/lib/libapt-pkg-libc6.3-6.so.3.11
#3  0xbfaf04b8 in ?? ()
#4  0x00000000 in ?? ()



-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Archives "";
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::Default-Release "testing";
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::sourceparts "sources.list.d";
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/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";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi";
Acquire "";
Acquire::http "";
Acquire::http::Proxy "false";

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


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

#


deb http://suzy2:9999/debian/ etch main contrib
deb http://suzy2:9999/security/ etch/updates main contrib
deb http://suzy2:9999/debian/ sid main contrib

#deb http://ftp.de.debian.org/debian/ etch main contrib
#deb http://ftp.de.debian.org/debian/ sid main contrib

#deb http://security.debian.org/ etch/updates main contrib

-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages apt depends on:
ii debian-archive-keyring 2006.11.22 GnuPG archive keys of the Debian a
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libgcc1                      1:4.1.1-19  GCC support library
ii  libstdc++6                   4.1.1-19    The GNU Standard C++ Library v3

apt recommends no packages.

-- no debconf information




Reply to: