[Bug 16467] Re: [MASTER] aptitude/apt-get segmentation fault on corrupted cache

Launchpad Bug Tracker 16467 at bugs.launchpad.net
Mon Aug 8 13:25:23 UTC 2011


This bug was fixed in the package apt - 0.8.16~exp5ubuntu1

---------------
apt (0.8.16~exp5ubuntu1) oneiric; urgency=low

  * merged new version from debian/experimental, this includes
    a ABI break and two new library packages

apt (0.8.16~exp5) UNRELEASED; urgency=low

  * apt-pkg/makefile:
    - install sha256.h compat header
  * apt-pkg/pkgcachegen.{cc,h}:
    - use ref-to-ptr semantic in NewDepends() to ensure that the
      libapt does not segfault if the cache is remapped in between
      (LP: #812862)

apt (0.8.16~exp4) experimental; urgency=low

  [ Julian Andres Klode ]
  * apt-pkg/pkgcache.h:
    - [ABI break] Add pkgCache::Header::CacheFileSize, storing the cache size
  * apt-pkg/pkgcachegen.cc:
    - Write the file size to the cache
  * apt-pkg/pkgcache.cc:
    - Check that cache is at least CacheFileSize bytes large (LP: #16467)

  [ Michael Vogt ]
  * merged latest fixes from debian-sid
  * apt-pkg/cdrom.{cc,h}:
    - cleanup old ABI break avoidance hacks
  * [ABI break] apt-pkg/acquire-item.{cc,h}:
    - cleanup around OptionalIndexTarget and SubIndexTarget
  * [ABI break] merged patch from Jonathan Thomas to have a new
    RecordField() function in the pkgRecorder parser. Many thanks
    Thomas
  * [ABI break] merge patch from Jonathan Thomas to speed up the
    depcache by caching the install-recommends and install-suggests
    values
  * apt-pkg/contrib/fileutl.{cc,h}:
    - add GetModificationTime() helper
  * apt-pkg/pkgcachegen.cc:
    - regenerate the cache if the sources.list changes to ensure
      that changes in the ordering there will be honored by apt
  * apt-pkg/sourcelist.{cc,h}:
    - add pkgSourceList::GetLastModifiedTime() helper

apt (0.8.16~exp3) experimental; urgency=low

  [ David Kalnischkies ]
  * apt-pkg/pkgcache.h:
    - readd All{Foreign,Allowed} as suggested by Julian to
      remain strictly API compatible
  * apt-pkg/acquire*.{cc,h}:
    - try even harder to support really big files in the fetcher by
      converting (hopefully) everything to 'long long' (Closes: #632271)
  * ftparchive/writer.cc:
    - generate all checksums in one run over the file for Release
  * cmdline/apt-get.cc:
    - add an --assume-no option for testing to say 'no' to everything
  * apt-pkg/deb/debmetaindex.cc:
    - add trusted=yes option to mark unsigned (local) repository as trusted
      based on a patch from Ansgar Burchardt, thanks a lot! (Closes: #596498)

  [ Michael Vogt ]
  * merge fixes from the debian/unstable upload
  * merge lp:~mvo/apt/sha512-template to get fixes for the
    sha1/md5 verifiation (closes: #632520)

apt (0.8.16~exp2) experimental; urgency=low

  [ David Kalnischkies ]
  * [ABI-Break] Implement EDSP in libapt-pkg so that all front-ends which
    use the internal resolver can now be used also with external
    ones as the usage is hidden in between the old API
  * provide two edsp solvers in apt-utils:
    - 'dump' to quickly output a complete scenario and
    - 'apt' to use the internal as an external resolver
  * apt-pkg/pkgcache.h:
    - clean up mess with the "all" handling in MultiArch to
      fix LP: #733741 cleanly for everyone now
  * apt-pkg/depcache.cc:
    - use a boolean instead of an int for Add/Remove in AddStates
      similar to how it works with AddSizes
    - let the Mark methods return if their marking was successful
    - if a Breaks can't be upgraded, remove it. If it or a Conflict
      can't be removed the installation of the breaker fails.
  * cmdline/apt-get.cc:
    - do not discard the error messages from the resolver and instead
      only show the general 'Broken packages' message if nothing else

  [ Stefano Zacchiroli ]
  * doc/external-dependency-solver-protocol.txt:
    - describe EDSP and the configuration interface around it

  [ Michael Vogt ]
  * [ABI-Break] merge lp:~mvo/apt/sha512-template to add support for sha512
  * [ABI-Break] merge lp:~mvo/apt/dpointer to support easier extending
    without breaking the ABI
  * increase ABI version and update package names

apt (0.8.16~exp1) experimental; urgency=low

  * merged with the debian/unstable upload
 -- Michael Vogt <michael.vogt at ubuntu.com>   Mon, 08 Aug 2011 14:30:07 +0200

** Changed in: apt (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/16467

Title:
  [MASTER] aptitude/apt-get segmentation fault on corrupted cache

Status in “apt” package in Ubuntu:
  Fix Released
Status in “apt” package in Debian:
  Incomplete

Bug description:
  I cannot install/update nothing. I always get a segmentation fault.

  # 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 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 "i386-linux"...(no debugging symbols found)...Using
  host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

  (gdb) run dist-upgrade
  Starting program: /usr/bin/apt-get dist-upgrade
  (no debugging symbols found)...(no debugging symbols found)...(no debugging
  symbols found)...(no debugging symbols found)...(nS'està llegint la llista de
  paquets... Acabatmbols found)...(no debugging symbols found)...(no debugging
  symbols found)...
  S'està construint l'arbre de dependències... 0%
  Program received signal SIGSEGV, Segmentation fault.
  0x429c440e in pkgDepCache::StateCache::Update () from
  /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  (gdb) bt
  #0  0x429c440e in pkgDepCache::StateCache::Update () from
  /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #1  0x429c1cf4 in pkgDepCache::Init () from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #2  0x429e1f71 in pkgCacheFile::Open () from /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #3  0x0805e03f in std::vector<pkgSrcRecords::Parser::BuildDepRec,
  std::allocator<pkgSrcRecords::Parser::BuildDepRec> >::_M_insert_aux ()
  #4  0x0805760d in ?? ()
  #5  0x429b7871 in CommandLine::DispatchArg () from
  /usr/lib/libapt-pkg-libc6.3-5.so.3.3
  #6  0x0805d55e in ?? ()
  #7  0x4102d7b6 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
  #8  0x41147edc in ?? () from /lib/tls/i686/cmov/libc.so.6
  #9  0x41015020 in ?? () from /lib/ld-linux.so.2
  #10 0x0805f58c in
  std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<pkgSrcRecords::Parser::BuildDepRec*,
  std::vector<pkgSrcRecords::Parser::BuildDepRec,
  std::allocator<pkgSrcRecords::Parser::BuildDepRec> > >,
  __gnu_cxx::__normal_iterator<pkgSrcRecords::Parser::BuildDepRec*,
  std::vector<pkgSrcRecords::Parser::BuildDepRec,
  std::allocator<pkgSrcRecords::Parser::BuildDepRec> > > > ()
  Previous frame inner to this frame (corrupt stack?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/16467/+subscriptions




More information about the foundations-bugs mailing list