segfault on apt-get upgrade

Bug #70005 reported by Dorneles Tremea
This bug report is a duplicate of:  Bug #75273: Apt constantly sigsevs on edgy. Edit Remove
6
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Confirmed
Undecided
Ubuntu Desktop Bugs

Bug Description

So, here's what I think is the first feisty bug (possibly related to bug #69905)... :-)

After updating my sources.list yesterday (s/edgy/feisty/g) and upgrading to feisty I'm now getting segfaults when trying to do a 'apt-get upgrade' (or 'aptitude upgrade'):

# apt-get upgrade
Segmentation faultsts... 0%

These are the new packages from feisty currently installed here:

binutils 2.17.50.0.6-0ubuntu1
libc6 2.5-0ubuntu1
base-files 3.1.16ubuntu1
gcc-4.1-base 4.1.1-18ubuntu1
linux-libc-dev 2.6.19-4.4
libgcc1 1:4.1.1-18ubuntu1
libc6-dev 2.5-0ubuntu1
binutils-static 2.17.50.0.6-0ubuntu1
libc6-i686 2.5-0ubuntu1
libstdc++6 4.1.1-18ubuntu1
linux-image-2.6.19-4-386 2.6.19-4.4

Running 'apt-get update' works fine. Installing new packages with 'dpkg -i' also works.

I can provide any additional info, if necessary.

Revision history for this message
Dorneles Tremea (dtremea) wrote :

Here's the output from:
# strace apt-get upgrade

Revision history for this message
Mateusz Drożdżyński (matid) wrote :

hanks for your bug report. Could you please try to obtain a
backtrace by following the instructions on
       http://wiki.ubuntu.com/DebuggingProgramCrash.

It would also be appreciable if you attached the output from Valgrind. To generate it, please follow the guidelines:
       http://wiki.ubuntu.com/Valgrind

This will greatly aid us in tracking down your problem.

Changed in apt:
status: Unconfirmed → Needs Info
Revision history for this message
Dorneles Tremea (dtremea) wrote :

Thank you Mateusz, here's the backtrace.

The Valgrind output will come as soon as I finish download those bastard 13.4MB... :-)

description: updated
Revision history for this message
Dorneles Tremea (dtremea) wrote :

...and the Valgrind output.

Let me know if you guys need any additional info.

Thanks in advance!

Revision history for this message
Joe Thackery (jtthackery) wrote :

I also get a segfault, but it extends to apt-get update/upgrade/autoclean/check/autoremove/dist-upgrade. I cannot install valgrind or the yelp package to run a backtrace as I get:
sudo apt-get install valgrind
Segmentation fault (core dumped).

If there is anything I can do, let me know.
Thanks.

Revision history for this message
Joel Stanley (shenki) wrote :

the issue can be worked around by removing/renaming the srcpkgcache.bin and pkgcache.bin files, located in /var/cache/apt.

of possible interest is bug 61708.

Before discovering the workaround, I manually downgraded all feisty packages I thought would affect apt. The segfault still existed.

Also, I believe the .bin files were supposed to be regenerated when they became corrupted - maybe the bug is in the corruption-detection code.

Revision history for this message
Dorneles Tremea (dtremea) wrote :

Thanks Joel, after removing /var/cache/apt/{src,}pkgcache.bin apt is working again.

Changed in apt:
status: Needs Info → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
Gregor Rosenauer (grexe) wrote :

same problem here after a broken Java install using Adept, on a fresh Kubuntu Gutsy 7.10 x86. The solution in comment #6 worked, thanks a lot Joel!

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.