aptitude changelog <package without candidates> segfaults.

Bug #41767 reported by Gary Coady
20
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

$aptitude show xine
No candidate version found for xine
Package: xine
State: not a real package

$ aptitude changelog xine
No candidate version found for xine
Segmentation fault

#0 cmdline_do_download (m=0x0) at cmdline_util.cc:168
#1 0x081077e2 in do_cmdline_changelog (packages=@0xbfe3f2c8)
    at cmdline_changelog.cc:257
#2 0x08108520 in cmdline_changelog (argc=2, argv=0xbfe3f578)
    at cmdline_changelog.cc:342
#3 0x08054085 in main (argc=2, argv=0xbfe3f574) at main.cc:489

Revision history for this message
Gary Coady (garycoady) wrote : Check if changelog download failed

Check if a changelog was returned, before showing it (prevents a NULL dereference).

Changed in aptitude:
status: Unconfirmed → Confirmed
Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

Subscribed the listed maintainer to hopefully get this patch added.

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

Sorry that this came to my attention so late :/

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

I'm afraid it is too late for this now for dapper, I'll upload it as soon as edgy opens.

Revision history for this message
Daniel Burrows (dburrows) wrote : Re: [Bug 41767] Re: aptitude changelog <package without candidates> segfaults.

On Mon, May 22, 2006 at 04:56:32AM -0000, Yuriy Kozlov <email address hidden> was heard to say:
> Subscribed the listed maintainer to hopefully get this patch added.

  This bug has been fixed in Debian for ages (since last year); the
Ubuntu packages are the responsibility of the Ubuntu maintainer.

  Daniel

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

Daniel, sorry for this. Feel free to unsubscribe from the report. I'll update the packages immediately once edgy is available.

Revision history for this message
Daniel Burrows (dburrows) wrote :

On Thu, May 25, 2006 at 10:31:53AM -0000, Michael Vogt <email address hidden> was heard to say:
> Daniel, sorry for this. Feel free to unsubscribe from the report. I'll
> update the packages immediately once edgy is available.

  And I apologize if my last mail sounded a bit "short" (in both senses)
-- I've been writing to conserve time because I don't have regular network
access. That should be fixed next week when my Internet service is finally
hooked up, though :-)

  Daniel

Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

This hasn't been fixed in edgy.

Revision history for this message
Matti Lindell (mlind) wrote :

This should be fixed now on Edgy, aptitude 0.4.1-1.1ubuntu5.

Michael Vogt (mvo)
Changed in aptitude:
assignee: nobody → mvo
status: Confirmed → Fix Released
Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

I still (or again?) get a segfault when checking a changelog for a package without candidates with aptitude. Both in Edgy and in Feisty with latest updates.

Changed in aptitude:
status: Fix Released → Unconfirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

I am unable to reproduce this on the final version of Feisty Fawn with aptitude version 0.4.4-1ubuntu3. Is this still an issue for you Yuriy?

Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

Looks fixed.

Changed in aptitude:
status: New → Fix Released
Revision history for this message
Zorael (zorael) wrote :

Still happens in Hardy, on a 64-bit installation. Regression?

     $ aptitude changelog gibberish
     Segmentation fault

     $ apt-cache policy aptitude
     aptitude:
       Installed: 0.4.9-2ubuntu5
       Candidate: 0.4.9-2ubuntu5
       Version table:
      *** 0.4.9-2ubuntu5 0
             500 http://se.archive.ubuntu.com hardy/main Packages
             100 /var/lib/dpkg/status

Revision history for this message
Brian Murray (brian-murray) wrote :

I've been unable to recreate this crash using aptitude version 0.4.9-2ubuntu5 from Hardy Heron. I receive the following output:

flash:[...trees/python-launchpad-bugs] aptitude changelog gibberish
E: Couldn't find a changelog for gibberish

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.