[Bug 939867] Re: apt-get crashed with SIGSEGV in Name()

Torsten Spindler torsten at canonical.com
Tue Mar 6 06:20:24 UTC 2012


In dpkgpm.cc the crash happens in a loop over a list. Each list item
ought to have a Pkg associated with it, but if that's not the case, this
crash might happen. It would be best to check if (*I).Pkg is of the
right type, the attached patch only checks for NULL.

** Patch added: "apt_apport-nullcheck.patch"
   https://bugs.launchpad.net/ubuntu/+source/apt/+bug/939867/+attachment/2820917/+files/apt_apport-nullcheck.patch

** Changed in: apt (Ubuntu)
       Status: New => Triaged

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

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

Status in “apt” package in Ubuntu:
  Triaged

Bug description:
  Apport

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: apt 0.8.16~exp12ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
  Uname: Linux 3.2.0-17-generic x86_64
  ApportVersion: 1.92-0ubuntu1
  Architecture: amd64
  CasperVersion: 1.304
  Date: Thu Feb 23 16:21:35 2012
  ExecutablePath: /usr/bin/apt-get
  LiveMediaBuild: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120220)
  ProcCmdline: apt-get dist-upgrade
  ProcEnviron:
   TERM=screen
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SegvAnalysis:
   Segfault happened at: 0x7f9da2a1d680 <_ZN9pkgDPkgPM17WriteApportReportEPKcS1_+4992>:	mov    (%rax),%eax
   PC (0x7f9da2a1d680) ok
   source "(%rax)" (0x00000000) not located in a known VMA region (needed readable region)!
   destination "%eax" ok
  SegvReason: reading NULL VMA
  Signal: 11
  SourcePackage: apt
  StacktraceTop:
   pkgDPkgPM::WriteApportReport(char const*, char const*) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
   pkgDPkgPM::ProcessDpkgStatusLine(int, char*) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
   pkgDPkgPM::DoDpkgStatusFd(int, int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
   pkgDPkgPM::Go(int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
   pkgPackageManager::DoInstallPostFork(int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
  Title: apt-get crashed with SIGSEGV in pkgDPkgPM::WriteApportReport()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

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




More information about the foundations-bugs mailing list