[Bug 803688] [NEW] 'apt-get update' segfaults

Martin-Éric Racine 803688 at bugs.launchpad.net
Wed Jun 29 22:56:35 UTC 2011


Public bug reported:

Since today, APT segfaults systematically when trying to update the
available list:

Ign http://archive.ubuntu.com oneiric/restricted Translation-en
Ign http://archive.ubuntu.com oneiric/universe Translation-en
Reading package lists... Done
Merging available information
/usr/lib/dpkg/methods/apt/update: line 42:  4053 Segmentation fault      $APTCACHE dumpavail > $CACHEDIR/available

dselect: warning: subprocess update available list script returned error exit status 139
Press <enter> to continue.


$ gdb apt-cache
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/apt-cache...(no debugging symbols found)...done.
(gdb) run dumpavail > /tmp/Packages
Starting program: /usr/bin/apt-cache dumpavail > /tmp/Packages

Program received signal SIGSEGV, Segmentation fault.
0x002ce003 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x002ce003 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#1  0x002cfab8 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#2  0x001a6126 in pkgPolicy::CreatePin(pkgVersionMatch::MatchType, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, short) () from /usr/lib/libapt-pkg.so.4.10
#3  0x001a6df2 in ReadPinFile(pkgPolicy&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) () from /usr/lib/libapt-pkg.so.4.10
#4  0x001a35e4 in pkgCacheFile::BuildPolicy(OpProgress*) () from /usr/lib/libapt-pkg.so.4.10
#5  0x0804fe62 in ?? ()
#6  0x0015f3ee in CommandLine::DispatchArg(CommandLine::Dispatch*, bool) () from /usr/lib/libapt-pkg.so.4.10
#7  0x0804d6d3 in ?? ()
#8  0x00358da7 in __libc_start_main (main=0x804d3c0, argc=2, ubp_av=0xbffff484, init=0x8059f50, fini=0x8059fb0, rtld_fini=0x11ea10, stack_end=0xbffff47c)
    at libc-start.c:226
#9  0x0804d791 in ?? ()
(gdb) q


ii  apt                               0.8.15ubuntu1                     Advanced front-end for dpkg
ii  dpkg                              1.16.0.3ubuntu3                   Debian package management system
ii  libstdc++6                        4.6.0-14ubuntu1                   GNU Standard C++ Library v3

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  'apt-get update' segfaults

Status in “apt” package in Ubuntu:
  New

Bug description:
  Since today, APT segfaults systematically when trying to update the
  available list:

  Ign http://archive.ubuntu.com oneiric/restricted Translation-en
  Ign http://archive.ubuntu.com oneiric/universe Translation-en
  Reading package lists... Done
  Merging available information
  /usr/lib/dpkg/methods/apt/update: line 42:  4053 Segmentation fault      $APTCACHE dumpavail > $CACHEDIR/available

  dselect: warning: subprocess update available list script returned error exit status 139
  Press <enter> to continue.

  
  $ gdb apt-cache
  GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
  Copyright (C) 2010 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "i686-linux-gnu".
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>...
  Reading symbols from /usr/bin/apt-cache...(no debugging symbols found)...done.
  (gdb) run dumpavail > /tmp/Packages
  Starting program: /usr/bin/apt-cache dumpavail > /tmp/Packages

  Program received signal SIGSEGV, Segmentation fault.
  0x002ce003 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
  (gdb) bt
  #0  0x002ce003 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
  #1  0x002cfab8 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
  #2  0x001a6126 in pkgPolicy::CreatePin(pkgVersionMatch::MatchType, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, short) () from /usr/lib/libapt-pkg.so.4.10
  #3  0x001a6df2 in ReadPinFile(pkgPolicy&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) () from /usr/lib/libapt-pkg.so.4.10
  #4  0x001a35e4 in pkgCacheFile::BuildPolicy(OpProgress*) () from /usr/lib/libapt-pkg.so.4.10
  #5  0x0804fe62 in ?? ()
  #6  0x0015f3ee in CommandLine::DispatchArg(CommandLine::Dispatch*, bool) () from /usr/lib/libapt-pkg.so.4.10
  #7  0x0804d6d3 in ?? ()
  #8  0x00358da7 in __libc_start_main (main=0x804d3c0, argc=2, ubp_av=0xbffff484, init=0x8059f50, fini=0x8059fb0, rtld_fini=0x11ea10, stack_end=0xbffff47c)
      at libc-start.c:226
  #9  0x0804d791 in ?? ()
  (gdb) q

  
  ii  apt                               0.8.15ubuntu1                     Advanced front-end for dpkg
  ii  dpkg                              1.16.0.3ubuntu3                   Debian package management system
  ii  libstdc++6                        4.6.0-14ubuntu1                   GNU Standard C++ Library v3

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




More information about the foundations-bugs mailing list