Apt constantly sigsevs on edgy

Bug #75273 reported by Ryan Kavanagh
42
Affects Status Importance Assigned to Milestone
apt (Debian)
Fix Released
Unknown
apt (Ubuntu)
Fix Released
High
Michael Vogt
Edgy
Won't Fix
High
Michael Vogt

Bug Description

Binary package hint: apt

Under certain circumstance apt segfaults on every operation until the cache is rebuild or deleted. This includes all tools that are build on top of libapt.

It turns out the bug can be fixed by checking for a NULL value in the filename string. The attached (one-liner) patch adresses the issue.

Please accept this as a StableReleaseUpdate.

TEST CASE:
I have not found a way to reliable trigger the bug, so I would suggest we test it indirectly
1. install the apt from -proposed
2. run apt-get update
3. run apt-get dist-upgrade
4. run apt-cache search apt
5. run apt-get install --reinstall synaptic

verify that all of the above commands work as expected and do not segfault or misbehave.

Related branches

Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

This file is the GDB backtrace of apt-cache show kubuntu-desktop, before I had cleared /var/lib/apt/lists/* .

Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

This file is the strace log of apt-get source hello, after I had cleared /var/lib/apt/lists/*

Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

This file is the strace log of apt-get source hello, before I had cleared /var/lib/apt/lists/*

Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

This file is the strace log of apt-cache show kubuntu-desktop, before I had cleared /var/lib/apt/lists/*

Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

This file is the strace log of aptitude, to demonstrate that this problem affects all (that I've tried) package managers on my system.

Revision history for this message
John Vivirito (gnomefreak) wrote :

Ryan if you sudo rm /var/cache/apt/*.bin does it than work again? for atleast a little while?

Changed in apt:
assignee: nobody → gnomefreak
status: Unconfirmed → Needs Info
Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

Suprisingly, yes!
Thanks!

Changed in apt:
status: Needs Info → Unconfirmed
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

If you still (or again) can reproduce this problem, can you please test the attached fix? It should fix the problem properly.

Cheers,
 Michael

Changed in apt:
assignee: gnomefreak → mvo
importance: Undecided → High
status: Unconfirmed → Needs Info
Michael Vogt (mvo)
Changed in apt:
status: Needs Info → Confirmed
Changed in apt:
status: Unknown → Fix Released
Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

Thanks for the patch Michael,
but how would I apply it?
Download the sources and stick the patch in debian/patches/, then pbuild it?
or do I apply the patch to my /usr?

Thanks,
Ryan

Michael Vogt (mvo)
description: updated
Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
mauri (mrzfbb) wrote : Re: [Bug 75273] Re: Apt constantly sigsevs on edgy

Thanks for the patch Michael,
but how would I apply debdiff into my system? (Ubuntu Edgy amd64)

thank you and
Merry Christmas & Happy New Year

bye
Maurizio

Il giorno lun, 18/12/2006 alle 19.18 +0000, Michael Vogt ha scritto:
> ** Attachment added: "Updated debdiff (no po files changes)"
> http://librarian.launchpad.net/5445248/apt_0.6.45ubuntu14.1.debdiff
>

Revision history for this message
John Vivirito (gnomefreak) wrote :

AFAIK you have to build it in. I think Michael's reason for attaching it is to look at it to see what he changed to make it correct so if you were so inclined you can fix it yourself. I suggest waiting for the update to be uploaded after Michael rebuilds it. Atleast that is how i remember it.

Revision history for this message
mauri (mrzfbb) wrote :

thanks
Merry Christmas & Happy New Year

bye
Maurizio

Il giorno mar, 19/12/2006 alle 21.05 +0000, John Vivirito ha scritto:
> AFAIK you have to build it in. I think Michael's reason for attaching it
> is to look at it to see what he changed to make it correct so if you
> were so inclined you can fix it yourself. I suggest waiting for the
> update to be uploaded after Michael rebuilds it. Atleast that is how i
> remember it.
>

Revision history for this message
Colin Watson (cjwatson) wrote :
Changed in apt:
status: Unconfirmed → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks Colin!

Uploaded to edgy-proposed and subscribed the ubuntu-archive team.

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Accepted into edgy-updates.

Changed in apt:
status: In Progress → Fix Committed
Simon Law (sfllaw)
Changed in apt:
importance: Undecided → High
Michael Vogt (mvo)
Changed in apt:
status: Confirmed → Fix Released
assignee: nobody → mvo
Revision history for this message
Michael Vogt (mvo) wrote :

7 days are over, we only need verification from QA now.

Revision history for this message
Martin Pitt (pitti) wrote :

There is no apt in either edgy-{proposed,updates}. Is this still relevant? Does it need an SRU?

Changed in apt:
status: Fix Committed → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

Seems this got superseded in bug 85207, and then removed because that bug was deemed obsolete.

Revision history for this message
Michael Vogt (mvo) wrote :

Its still worthwhile to have this fix in edgy-updates, the fix is trivial, please publish it in -updates.

Thanks,
 Michael

Michael Vogt (mvo)
Changed in apt:
status: Incomplete → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

I (re)upload apt_0.6.45ubuntu14.1 into edgy-proposed now. I have no idea why it got lost, I got a Accepted mail from the archive. I think we should still wait for a couple of days before moving it into -updates.

Cheers,
 Michael

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into edgy-proposed, please test.

Changed in apt:
status: In Progress → Fix Committed
Michael Vogt (mvo)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Edgy goes EOL in two days, and nobody tested this. I removed the -proposed package.

Changed in apt:
milestone: edgy-updates → none
status: Fix Committed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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