apt-get crashed with SIGSEGV in pkgCache::ReMap()

Bug #983062 reported by Stephen G
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

This error occurred in the croned apt-get update check

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: apt 0.8.16~exp12ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu3
Architecture: amd64
Date: Mon Apr 16 07:35:36 2012
ExecutablePath: /usr/bin/apt-get
InstallationMedia: This
ProcCmdline: apt-get check -f -qq
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 SHELL=/bin/sh
SegvAnalysis:
 Segfault happened at: 0x7f6c30329ae4 <_ZN8pkgCache5ReMapERKb+116>: cmp %rcx,(%rdi)
 PC (0x7f6c30329ae4) ok
 source "%rcx" ok
 destination "(%rdi)" (0xffffffffffffffff) not located in a known VMA region (needed writable region)!
SegvReason: writing unknown VMA
Signal: 11
SourcePackage: apt
StacktraceTop:
 pkgCache::ReMap(bool const&) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
 pkgCache::pkgCache(MMap*, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
 ?? () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
 pkgCacheGenerator::MakeStatusCache(pkgSourceList&, OpProgress*, MMap**, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
 pkgCacheFile::BuildCaches(OpProgress*, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
Title: apt-get crashed with SIGSEGV in pkgCache::ReMap()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Stephen G (stephengroat) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 pkgCache::ReMap(bool const&) () from /tmp/tmpaR041k/usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
 pkgCache::pkgCache(MMap*, bool) () from /tmp/tmpaR041k/usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
 ?? () from /tmp/tmpaR041k/usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
 pkgCacheGenerator::MakeStatusCache(pkgSourceList&, OpProgress*, MMap**, bool) () from /tmp/tmpaR041k/usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
 pkgCacheFile::BuildCaches(OpProgress*, bool) () from /tmp/tmpaR041k/usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in apt (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Stephen G (stephengroat)
visibility: private → public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Christopher Forster (christopherforster) wrote :

sudo apt-get update
apt-get: error while loading shared libraries: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: file too short

sudo update-manager
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 33, in <module>
    from UpdateManager.UpdateManager import UpdateManager
  File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 39, in <module>
    import apt_pkg
ImportError: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: fil för kort
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 64, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 20, in <module>
    import apport.fileutils
  File "/usr/lib/python2.7/dist-packages/apport/fileutils.py", line 22, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 20, in <module>
    import apt
  File "/usr/lib/python2.7/dist-packages/apt/__init__.py", line 21, in <module>
    import apt_pkg
ImportError: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: fil för kort

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 33, in <module>
    from UpdateManager.UpdateManager import UpdateManager
  File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 39, in <module>
    import apt_pkg
ImportError: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: fil för kort

Revision history for this message
Julian Andres Klode (juliank) wrote :

Thanks for your bug report. The generator code has changed a lot in the mean time. I am thus closing the bug, as it may be a bug we likely fixed in the meantime.

Changed in apt (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.