Bug#674951: [libapt-pkg4.12] aptitude crashes while updating packages list
I had a similar segfault issue in version 1.0.9.5, though in a
different place:
#0 0xb7f604e7 in debStatusIndex::Merge(pkgCacheGenerator&,
OpProgress*) const () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
#1 0xb7ebddb4 in ?? () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
#2 0xb7ec135d in pkgCacheGenerator::MakeStatusCache(pkgSourceList&,
OpProgress*, MMap**, bool) () from
/usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
#3 0xb7ec2036 in pkgMakeStatusCache(pkgSourceList&, OpProgress&,
MMap**, bool) () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
#4 0x801c4ffb in ?? ()
#5 0x801cf96b in ?? ()
#6 0x80177cc0 in ?? ()
#7 0x80174319 in ?? ()
#8 0x80037870 in main ()
This happened whenever I tried to run any aptitude or apt-get command
(update, search, etc.). Deleting the cache files
(/var/cache/apt/*.bin*) did not help, though the next run took longer
before crashing, apparently recreating the cache first (successfully,
because further commands crashed immediately again). This was 100%
reproducible, also after reboot.
The other solution suggested in this bug worked, however: "apt-get
update -o APT::Cache-Start=100000000" did not crash, and since having
run that, everything works normally again (i.e. I don't specify the
Cache-Start option and it still works).
So the issue is fixed for me, I'm just reporting this experience in
case it somehow helps tracking down the bug.
Ulrich
Reply to: