[Bug 812862] Re: aptd crashed with SIGSEGV in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare() -- __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:32

Michael Vogt michael.vogt at ubuntu.com
Mon Aug 1 10:34:38 UTC 2011


In my testcase (with synaptic) it happens in for:
(gdb) print PkgName
$4 = {static npos = <optimized out>, 
  _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x16a02b8 "gromit"}}

And the cache is remamped:
...
Do we have write-access to the cache files? YES
sources.list is newer than the cache
pkgcache.bin is NOT valid
Open filebased MMap
sources.list is newer than the cache
srcpkgcache.bin is NOT valid - rebuild
Remaping from 0x7fffe98cc000 to 0x7fffe7017000
Remaping from 0x7fffe7017000 to 0x7fffe96cc000
Remaping from 0x7fffe96cc000 to 0x7fffe6e17000
Remaping from 0x7fffe6e17000 to 0x7fffe94cc000
Remaping from 0x7fffe94cc000 to 0x7fffe6c17000
Remaping from 0x7fffe6c17000 to 0x7fffe92cc000
Remaping from 0x7fffe92cc000 to 0x7fffe6a17000
Remaping from 0x7fffe6a17000 to 0x7fffe90cc000

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

Title:
  aptd crashed with SIGSEGV in std::basic_string<char,
  std::char_traits<char>, std::allocator<char> >::compare() --
  __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:32

Status in “apt” package in Ubuntu:
  Triaged

Bug description:
  After doing a daily upgrade, update-manager crashes. The upgrade itself seems to have gone fine.
  After the crash (it has been happening before), I noticed there seem to be temporary files left in /var/cache/apt:

  albert at saturnus:~$ ls -la /var/cache/apt/
  total 334264
  drwxr-xr-x  4 root root     4096 2011-07-19 13:51 .
  drwxr-xr-x 19 root root     4096 2011-07-09 00:00 ..
  drwxr-xr-x  2 root root     4096 2010-05-27 12:28 apt-file
  drwxr-xr-x  3 root root   253952 2011-07-19 13:51 archives
  -rw-r--r--  1 root root 39573952 2011-07-19 13:51 pkgcache.bin
  -rw-r--r--  1 root root 38797312 2011-07-19 13:51 pkgcache.bin.7mO3jw
  -rw-r--r--  1 root root 38797312 2011-07-09 00:49 pkgcache.bin.FG1qwN
  -rw-r--r--  1 root root 38797312 2011-07-13 11:29 pkgcache.bin.Km58oV
  -rw-r--r--  1 root root 38797312 2011-07-17 15:25 pkgcache.bin.KPvCey
  -rw-r--r--  1 root root 38797312 2011-07-15 18:47 pkgcache.bin.PxOREy
  -rw-r--r--  1 root root 39845888 2011-07-12 17:32 pkgcache.bin.R455IS
  -rw-r--r--  1 root root 38797312 2011-07-08 18:47 pkgcache.bin.ucU3js
  -rw-r--r--  1 root root 37445119 2011-07-19 13:48 srcpkgcache.bin

  If it matters, I have multi-arch enabled, with foreign-architecture
  i386 in /etc/dpkg/dpkg.cfg

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: aptdaemon 0.43+bzr662-0ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-5.6-generic 3.0.0-rc7
  Uname: Linux 3.0.0-5-generic x86_64
  Architecture: amd64
  CrashCounter: 1
  Date: Tue Jul 19 13:51:34 2011
  ExecutablePath: /usr/sbin/aptd
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/sbin/aptd
  ProcEnviron:
   
  SegvAnalysis:
   Segfault happened at: 0x7f07af9f17bf:	pcmpeqb (%rdi),%xmm1
   PC (0x7f07af9f17bf) ok
   source "(%rdi)" (0x7f07a88905f0) not located in a known VMA region (needed readable region)!
   destination "%xmm1" ok
  SegvReason: reading unknown VMA
  Signal: 11
  SourcePackage: aptdaemon
  StacktraceTop:
   ?? () from /lib/x86_64-linux-gnu/libc.so.6
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
   pkgCacheGenerator::FinishCache(OpProgress*) () from /usr/lib/libapt-pkg.so.4.10
   pkgCacheGenerator::MakeStatusCache(pkgSourceList&, OpProgress*, MMap**, bool) () from /usr/lib/libapt-pkg.so.4.10
   pkgCacheFile::BuildCaches(OpProgress*, bool) () from /usr/lib/libapt-pkg.so.4.10
  Title: aptd crashed with SIGSEGV in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare()
  UpgradeStatus: Upgraded to oneiric on 2011-06-02 (46 days ago)
  UserGroups:

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




More information about the foundations-bugs mailing list