[Aptitude-devel] Bug#723821: aptitude: aptitude changelog <source-package> segfaults

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Tue Jan 28 21:50:16 UTC 2014


Control: tags -1 + pending

Hi,

If it was working in squeeze, the commit which likely introduced the
problem is this one:
http://anonscm.debian.org/gitweb/?p=aptitude/aptitude.git;a=commitdiff;h=7065dcc0bf2393ca0407e863d656da67102dd396

I commited a fix which seems to solve the issue, it's simple but it
took quite a while to track it down and figure out.

Basically, the variable pkg.Name() is not valid at this point in the
code for source packages so it segfaults, so I changed to use
"p.get_package()" which is the source package name ("input"  from the
command line argument also works).

http://anonscm.debian.org/gitweb/?p=aptitude/aptitude.git;a=commitdiff;h=f9c69b920ab89861ae681959d8591d2edfc6e624

If there's no problem it will be fixed in the next release with new
"upstream" code.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list