aptitude crashes when trying to install lintian

Bug #55900 reported by Vassilis Pandis
28
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

This happens with aptitude 0.4.1-1.1ubuntu2, on Edgy. Installing other packages is fine, but trying lintian crashes. This shouldn't be a problem in lintian, since it never gets to download it it and furthermore, it installs fine through apt-get.

pandis@pandis-laptop:~/tmp$ sudo aptitude install lintian
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Segmentation fault
pandis@pandis-laptop:~/tmp$

Attached you will find a debug backtrace. Thanks.

Revision history for this message
Vassilis Pandis (pandisv) wrote :
Revision history for this message
Vassilis Pandis (pandisv) wrote :

After installing lintian with apt-get, and without removing lintian, 'sudo aptitude install lintian' no longer crashes and works as expected (i.e. does nothing). Then I do 'sudo apt-get remove lintian' and 'sudo aptitude install lintian' and again, no crash. Afterwards, 'sudo aptitude purge lintian' and 'sudo aptitude install lintian' are also working fine...

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

I config the same bug when trying to install bugzilla package.
I attach the backtrace.

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

I attach the output from Valgrind too, since it might be helpful.

Changed in aptitude:
status: Unconfirmed → Confirmed
Revision history for this message
Vassilis Pandis (pandisv) wrote :

Installing sketch also causes aptitude to crash ...

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

Thanks for your bugreport.

Could you please check if a rebuild of aptitude helps to fix the issue? Please run:
$ sudo apt-get build-dep aptitude
$ sudo apt-get source -b aptitude
and install the build packages.

Thanks,
 Michael

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

Unfortunately, rebuilding doesn't fix the issue.

Revision history for this message
Vassilis Pandis (pandisv) wrote :

It doesn't - I had to rebuild to get the debug version of aptitude (out of curiosity: how is rebuilding supposed to solve the issue - I know it sometimes does, but why?)

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Same result with 'dia'.

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

Thanks, I can reproduce this problem here with apt-get as well, it looks like a problem with in libapt :
$ sudo apt-get install --reinstall-recommends dia
segfaults as well.

Changed in aptitude:
assignee: nobody → mvo
importance: Untriaged → High
Revision history for this message
Michael Vogt (mvo) wrote :

The attached patch should fix the problem. I commited it to my bzr tree and it will be part of the next upload. If you could confirm that it fixes the segfault for you, that would be ncie.

About your questions why a rebuild often helps: in C++ its easy to break a public interface in a way that makes older applications that are linked to the libarary break in subtle ways. The fix is of course to change the c++ library .so name to avoid breakage. But sometimes (by accident) this is not done by the maintainer. A simple rebuild solve this kind of problem because all that is required is a relinking against the new library.

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

The last patch does not apply to the current edgy tree, sorry for this. Find attached a updated version.

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

The update fixed the issue for me.

Revision history for this message
Vassilis Pandis (pandisv) wrote :

(It didn't apply cleanly for some reason so I applied it manually) It seems to be fixed. I installed 'dia' and 'sketch' without problems. Consider the problem solved and if it happens again I'll follow up on this bug report. Thanks.

Michael Vogt (mvo)
Changed in apt:
status: Confirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :
Changed in apt:
status: Fix Committed → Fix Released
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.