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

Bug#270147: apt: segfault in package removal

Package: apt
Version: 0.5.27
Severity: normal

  # apt-get --purge remove doodle
  Reading Package Lists... Done
  Segmentation faulty Tree... 50%
  # gdb apt-get
  GNU gdb 6.1-debian
  Copyright 2004 Free Software Foundation, Inc.
  GDB is free software, covered by the GNU General Public License, and you
  welcome to change it and/or distribute copies of it under certain
  Type "show copying" to see the conditions.
  There is absolutely no warranty for GDB.  Type "show warranty" for
  This GDB was configured as "i386-linux"...(no debugging symbols
  found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".
  (gdb) r --purge remove doodle
  Starting program: /usr/bin/apt-get --purge remove doodle
  (no debugging symbols found)...(no debugging symbols found)...(no
  debugging symbols found)...(no debugging symbols found)...(no debugging
  symbols found)...(noReading Package Lists... Doneno debugging symbols
  Building Dependency Tree... 50%
  Program received signal SIGSEGV, Segmentation fault.
  0x4005f416 in pkgDepCache::CheckDep ()
     from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  (gdb) bt
  #0  0x4005f416 in pkgDepCache::CheckDep ()
     from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #1  0x40060189 in pkgDepCache::DependencyState ()
     from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #2  0x400605c7 in pkgDepCache::Update ()
     from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #3  0x4005f25f in pkgDepCache::Init ()
     from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #4  0x40081014 in pkgCacheFile::Open ()
     from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #5  0x0805e277 in std::vector<pkgSrcRecords::Parser::BuildDepRec,
  std::allocator<pkgSrcRecords::Parser::BuildDepRec> >::_M_insert_aux ()
  #6  0x080553cf in ?? ()
  #7  0x40053f3c in CommandLine::DispatchArg ()
     from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #8  0x0805d706 in ?? ()
  #9  0x401b27f8 in __libc_start_main () from /lib/tls/libc.so.6
  #10 0x402d4edc in ?? () from /lib/tls/libc.so.6

Other apt bug reports reported success in moving aside
/var/cache/apt/*.bin so I did that and was able to remove the package
without a segfault. I still have the *.bin files if someone needs them.

-- Package-specific info:

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-1-686-smp

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

-- no debconf information

Reply to: