[apport] apt-check crashed with SIGSEGV in pkgDepCache::CheckDep()

Bug #94590 reported by miked
72
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: update-notifier

appeared after fresh install before updates installed

ProblemType: Crash
Architecture: i386
Date: Wed Mar 21 08:49:33 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/lib/update-notifier/apt-check
InterpreterPath: /usr/bin/python2.5
Package: update-notifier 0.56
PackageArchitecture: i386
ProcCmdline: python /usr/lib/update-notifier/apt-check
ProcCwd: /root
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: update-notifier
StacktraceTop:
 pkgDepCache::CheckDep ()
 pkgDepCache::DependencyState ()
 pkgDepCache::Update ()
 pkgDepCache::Init ()
 pkgCacheFile::Open ()
Uname: Linux miked-desktop 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse plugdev scanner tape

Revision history for this message
miked (miked11) wrote :
Revision history for this message
miked (miked11) wrote :
Michael Vogt (mvo)
Changed in update-notifier:
status: Unconfirmed → Confirmed
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:pkgDepCache::DependencyState (this=0x826cd60, D=@0xbfae8924) at ../build/include/apt-pkg/depcache.h:308
pkgDepCache::Update (this=0x826cd60, Prog=0xbfae8a4c) at depcache.cc:606
pkgDepCache::Init (this=0x826cd60, Prog=0xbfae8a4c) at depcache.cc:136
pkgCacheFile::Open (this=0x826b890, Progress=@0xbfae8a4c, WithLock=false) at cachefile.cc:105

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in update-notifier:
importance: Undecided → Medium
Revision history for this message
miked (miked11) wrote :

I have moved to Gusty Gibbon Final 7.10 via fresh install from Live CD.
So I guess you can close the bug as it relates to me, for now, and I will file if it happens again.
thanks

Revision history for this message
pirx67 (pirx67) wrote :

My apt-get crashed also in CheckDep. See the attached gdb backtrace.

But the main problem is that the package cache handling code seems not to be very robust. There are dozens of crashes related to problems with the package cache files filed here in Launchpad. Like this bug: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/16467

Well after some fiddling around I tried first to regenerate the package caches with "apt-get gencaches". But surprise, surprise this command did nothing on my existing package cache files. Therefore it also didn't crash. Only the workaround (delete the cache files) mentioned in bug #16467 made it possible for me to regenerate the package cache files with "apt-get gencaches" and become operational again.

No need to mention that first the update-manager applet crashed. Then I tried synaptic to see whats going on but this crashed also immediately. After that I fell back to using apt-get which also was unhappy.

What I mean is that in my opinion it is not acceptable that a core library like libapt-pkg is so crash prone and less robust according to malformed input data.

One related bug is bug https://bugs.launchpad.net/ubuntu/+source/apt/+bug/119707 which has more than two dozens of duplicates. Can anybody start fixing this damn library?

Revision history for this message
pirx67 (pirx67) wrote :

Forgot to mention that I'm using Hardy and that the used file system for the /var partition is ext3.
No power failures or any interrupted updates done that may give a hint why the cache files were
corrupted.

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

Invalid cache file, closing.

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.