[Bug 1066445] Re: apt-get crashed with SIGSEGV in pkgCacheGenerator::ListParser::NewProvides()

LaMont Jones lamont.jones at canonical.com
Sun Oct 14 18:07:02 UTC 2012


< skaet> lamont, jibel saw the failure on hardware and VM,  fresh installation,  all amd64.  hggdh hasn't been able to see it though.   what are the specifics of the system you saw 1066445 on?
< lamont> skaet: I'd have to dig a bit, but I'm pretty sure this was an install from this year, call it precise, amd64, real hw.  do-release-upgraded to quantal at beta(1?), and dist-upgraded pretty much daily since then.  has quantal{,-{security,updates}} {main,universe,multiverse} (no restricted), as well as a ppa or 2 and a local archive
< lamont> the mirror I hit is synced from us.archive at :50 each hour
< skaet> thanks lamont, can you add that to the bug, so we see if we can get the pattern figured out?

In my debugging, I commented out all the deb lines in all of
sources.list and sources.list.d/* and got it down to failure with
quantal main and universe, but not either one separately.

here are more package versions than I think you want to know.

# dpkg -l | grep -e apt -e dpkg
ii  apt                                         0.9.7.5ubuntu3                              amd64        commandline package manager
ii  apt-doc                                     0.9.7.5ubuntu3                              all          documentation for APT
ii  apt-listchanges                             2.85.8ubuntu2                               all          package change history notification tool
ii  apt-transport-https                         0.9.7.5ubuntu3                              amd64        https download transport for APT
ii  apt-utils                                   0.9.7.5ubuntu3                              amd64        package managment related utility programs
ii  apt-xapian-index                            0.44ubuntu7                                 all          maintenance and search tools for a Xapian index of Debian packages
ii  aptdaemon                                   0.45+bzr861-0ubuntu9                        all          transaction based package management service
ii  aptdaemon-data                              0.45+bzr861-0ubuntu9                        all          data files for clients
ii  aptitude                                    0.6.8.1-2ubuntu1                            amd64        terminal-based package manager
ii  aptitude-common                             0.6.8.1-2ubuntu1                            all          architecture indepedent files for the aptitude package manager
ii  apturl-common                               0.5.1ubuntu6                                amd64        install packages using the apt protocol - common data
ii  dpkg                                        1.16.7ubuntu6                               amd64        Debian package management system
ii  dpkg-dev                                    1.16.7ubuntu6                               all          Debian package development tools
ii  dpkg-repack                                 1.37                                        all          puts an unpacked .deb file back together
...
ii  libapt-inst1.3                              0.8.16~exp5ubuntu14.2                       amd64        APT's deb package format runtime library
rc  libapt-inst1.4:amd64                        0.8.16~exp12ubuntu10.2                      amd64        deb package format runtime library
ii  libapt-inst1.5:amd64                        0.9.7.5ubuntu3                              amd64        deb package format runtime library
ii  libapt-pkg-perl                             0.1.26                                      amd64        Perl interface to libapt-pkg
ii  libapt-pkg4.11                              0.8.16~exp5ubuntu14.2                       amd64        APT's package managment runtime library
ii  libapt-pkg4.12:amd64                        0.9.7.5ubuntu3                              amd64        package managment runtime library
ii  libatk-adaptor:amd64                        2.6.0-0ubuntu1                              amd64        AT-SPI 2 toolkit bridge
ii  libdpkg-perl                                1.16.7ubuntu6                               all          Dpkg perl modules
...
ii  python-apt                                  0.8.7ubuntu4                                amd64        Python interface to libapt-pkg
ii  python-apt-common                           0.8.7ubuntu4                                all          Python interface to libapt-pkg (locales)
ii  python-aptdaemon                            0.45+bzr861-0ubuntu9                        all          Python 2 module for the server and client of aptdaemon
ii  python-aptdaemon-gtk                        0.45+bzr861-0ubuntu9                        all          Transitional dummy package
ii  python-aptdaemon.gtk3widgets                0.45+bzr861-0ubuntu9                        all          Python 2 GTK+ 3 widgets to run an aptdaemon client
ii  python-aptdaemon.gtkwidgets                 0.45+bzr861-0ubuntu9                        all          Python GTK+ 2 widgets to run an aptdaemon client
ii  python3-apt                                 0.8.7ubuntu4                                amd64        Python 3 interface to libapt-pkg
ii  python3-aptdaemon                           0.45+bzr861-0ubuntu9                        all          Python 3 module for the server and client of aptdaemon
ii  python3-aptdaemon.gtk3widgets               0.45+bzr861-0ubuntu9                        all          Python 3 GTK+ 3 widgets to run an aptdaemon client
ii  radeontool                                  1.6.2-1.1build1                             amd64        utility to control ATI Radeon backlight functions on laptops
ii  software-center-aptdaemon-plugins           0.1.5                                       all          The aptdaemon plugins for software-center
ii  toshset                                     1.76-4                                      amd64        Access much of the Toshiba laptop hardware interface
ii  update-manager                              1:0.174.3                                   all          GNOME application that manages apt updates
...

-- 
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/1066445

Title:
  apt-get crashed with SIGSEGV in
  pkgCacheGenerator::ListParser::NewProvides()

Status in “apt” package in Ubuntu:
  Confirmed
Status in “apt” source package in Quantal:
  Confirmed

Bug description:
  Starting today, most apt operations started crashing to the extent
  that I can't even run ubuntu-bug apt. rm -f /var/lib/apt/* does not
  help either, or switching from a mirror to main archive. The crash
  happens in apt-get update when reading package lists after they have
  been downloaded.

  StacktraceTop:
   pkgCacheGenerator::ListParser::NewProvides (this=0x7ffffeba7910, Ver=..., PkgName=..., PkgArch=..., Version=...) at pkgcachegen.cc:920
   debListParser::NewProvidesAllArch (this=this at entry=0x7ffffeba7910, Ver=..., Package=..., Version=...) at deb/deblistparser.cc:722
   debListParser::ParseProvides (this=this at entry=0x7ffffeba7910, Ver=...) at deb/deblistparser.cc:711
   debListParser::NewVersion (this=0x7ffffeba7910, Ver=...) at deb/deblistparser.cc:171
   pkgCacheGenerator::MergeListVersion (this=this at entry=0x7ffffeba84a0, List=..., Pkg=..., Version=..., OutVer=@0x7ffffeba75e8: 0x0) at pkgcachegen.cc:388

  ===

  gdb apt-get upgrade gives (and update crash at package list reading
  looks identical):

  #0  0x00007ffff7b4dd20 in pkgCacheGenerator::ListParser::NewProvides(pkgCache::VerIterator&, std::string const&, std::string const&, std::string const&) ()
     from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #1  0x00007ffff7b864d1 in debListParser::NewProvidesAllArch(pkgCache::VerIterator&, std::string const&, std::string const&) ()
     from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #2  0x00007ffff7b883e3 in debListParser::ParseProvides(pkgCache::VerIterator&)
      () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #3  0x00007ffff7b8902c in debListParser::NewVersion(pkgCache::VerIterator&) ()
     from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #4  0x00007ffff7b4c458 in pkgCacheGenerator::MergeListVersion(pkgCacheGenerator::ListParser&, pkgCache::PkgIterator&, std::string const&, pkgCache::VerIterator*&) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #5  0x00007ffff7b4d6a3 in pkgCacheGenerator::MergeList(pkgCacheGenerator::ListParser&, pkgCache::VerIterator*) ()
     from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #6  0x00007ffff7ba173a in debPackagesIndex::Merge(pkgCacheGenerator&, OpProgress*) const () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #7  0x00007ffff7b46632 in ?? ()
     from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #8  0x00007ffff7b49409 in pkgCacheGenerator::MakeStatusCache(pkgSourceList&, OpProgress*, MMap**, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #9  0x00007ffff7b400c1 in pkgCacheFile::BuildCaches(OpProgress*, bool) ()
     from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #10 0x00007ffff7b4045c in pkgCacheFile::Open(OpProgress*, bool) ()
     from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #11 0x000000000042113c in ?? ()
  #12 0x00000000004160a3 in ?? ()
  #13 0x00007ffff7afa562 in CommandLine::DispatchArg(CommandLine::Dispatch*, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  #14 0x000000000040a2ac in ?? ()
  #15 0x00007ffff720276d in __libc_start_main (main=0x40a070, argc=2,
      ubp_av=0x7fffffffe328, init=<optimized out>, fini=<optimized out>,
      rtld_fini=<optimized out>, stack_end=0x7fffffffe318) at libc-start.c:226
  #16 0x000000000040a591 in ?? ()
  #17 0x00007fffffffe318 in ?? ()
  #18 0x000000000000001c in ?? ()
  #19 0x0000000000000002 in ?? ()
  #20 0x00007fffffffe60c in ?? ()
  #21 0x00007fffffffe61d in ?? ()
  #22 0x0000000000000000 in ?? ()

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




More information about the foundations-bugs mailing list