I haven't seen a crash myself, just "garbage" results (mostly apt trying
to use Translation-rowf%&$ files), but in all likelihood this is the
result of gcc5 changing to a c++11-compatible std::string implementation
– which the previous copy-on-write implementation isn't. apt was
depending on this behavior to store for which language the Translation
is aka the result of a X.c_str() call in a char* where X runs out of
scope shortly after – but X was just a copy of a globally stored
std::string (in that case in the deeps of _config). strlen on such a
wild pointer has at least a chance of segfaulting…

See also #1486061.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1497534

Title:
  apt-get crashed with SIGSEGV in strlen()

Status in apt package in Ubuntu:
  Incomplete
Status in apt source package in Wily:
  Incomplete

Bug description:
  ubuntu 15.10 new upgrade

  ProblemType: Crash
  DistroRelease: Ubuntu 15.10
  Package: apt 1.0.9.10ubuntu6
  ProcVersionSignature: Ubuntu 4.2.0-10.11-generic 4.2.0
  Uname: Linux 4.2.0-10-generic x86_64
  ApportVersion: 2.18.1-0ubuntu1
  Architecture: amd64
  Date: Sat Sep 19 12:26:47 2015
  ExecutablePath: /usr/bin/apt-get
  InstallationDate: Installed on 2014-12-30 (262 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
  ProcCmdline: apt-get --yes autoremove
  ProcEnviron:
   PATH=(custom, no user)
   LANG=it_IT.UTF-8
   LANGUAGE=it_IT
   SHELL=/bin/bash
   TERM=unknown
  SegvAnalysis:
   Segfault happened at: 0x7f73ded537fa <strlen+298>:   movdqa (%rax),%xmm8
   PC (0x7f73ded537fa) ok
   source "(%rax)" (0x5622126b7000) not located in a known VMA region (needed 
readable region)!
   destination "%xmm8" ok
  SegvReason: reading unknown VMA
  Signal: 11
  SourcePackage: apt
  StacktraceTop:
   strlen () at ../sysdeps/x86_64/strlen.S:214
   debTranslationsIndex::IndexURI[abi:cxx11](char const*) const () from 
/usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.16
   debTranslationsIndex::Exists() const () from 
/usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.16
   ?? () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.16
   pkgCacheGenerator::MakeStatusCache(pkgSourceList&, OpProgress*, MMap**, 
bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.16
  Title: apt-get crashed with SIGSEGV in strlen()
  UpgradeStatus: Upgraded to wily on 2015-09-19 (0 days ago)
  UserGroups:

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to