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

Bug#383223: apt-get update segfault



Package: apt
Version: 0.6.45
Severity: important


apt-get update Segfault:

babar:~ # apt-get update
Get:1 http://debian.soft testing Release.gpg [189B]
Hit http://debian.soft testing Release
Hit http://debian.soft testing/main Packages/DiffIndex
Hit http://debian.soft testing/contrib Packages/DiffIndex
Hit http://debian.soft testing/non-free Packages/DiffIndex
Fetched 189B in 0s (200B/s)
Segmentation faultsts... 0%

Workaround:
I delete /var/cache/apt/pkgcache.bin and /var/cache/apt/srcpkgcache.bin and I could run again.


Here is the gdb log and backtrace:

(gdb) set args update
(gdb) run
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 found)
(no debugging symbols found)
(no debugging symbols found)
Get:1 http://debian.soft testing Release.gpg [189B]
Hit http://debian.soft testing Release
Hit http://debian.soft testing/main Packages/DiffIndex
Hit http://debian.soft testing/contrib Packages/DiffIndex
Hit http://debian.soft testing/non-free Packages/DiffIndex
Fetched 189B in 0s (203B/s)
Reading package lists... 0%
Program received signal SIGSEGV, Segmentation fault.
0xb7c97c7b in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7c97c7b in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7e21236 in std::string::compare () from /usr/lib/libstdc++.so.6
#2  0xb7ef9ba5 in debPackagesIndex::FindInCache () from /usr/lib/libapt-pkg-libc6.3-6.so.3.11
#3  0xb7ecacce in pkgCacheGenerator::SelectFile () from /usr/lib/libapt-pkg-libc6.3-6.so.3.11
#4  0xb7ecb93a in pkgMakeStatusCache () from /usr/lib/libapt-pkg-libc6.3-6.so.3.11
#5  0xb7ec259f in pkgCacheFile::BuildCaches () from /usr/lib/libapt-pkg-libc6.3-6.so.3.11
#6  0x0804ec1c in ?? ()
#7  0xb7e98060 in CommandLine::DispatchArg () from /usr/lib/libapt-pkg-libc6.3-6.so.3.11
#8  0x0805f84c in ?? ()
#9  0xb7c3eeb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#10 0x0804c871 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y


Thanks

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
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:: "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 enter 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";
Acquire "";
Acquire::http "";
Acquire::http::Pipeline-Depth "0";

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


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt depends on:
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libgcc1                       1:4.1.1-5  GCC support library
ii  libstdc++6                    4.1.1-5    The GNU Standard C++ Library v3

Versions of packages apt recommends:
ii  debian-archive-keyring        2006.01.18 GnuPG archive keys of the Debian a

-- no debconf information



Reply to: