[Apt-Rpm] apt-rpm 0.5.15lorg3.94a causes kynaptic to crash while installing packages

Panu Matilainen pmatilai at laiskiainen.org
Sun Apr 20 00:16:13 PDT 2008


On Thu, 13 Mar 2008, Bernhard Rosenkränzer wrote:

> Hi,
> after upgrading to 0.5.15lorg3.94a, kynaptic still displays package lists etc.
> correctly -- but trying to actually install a package results in a fairly
> weird backtrace:
>
> #6  OpProgress::OverallProgress (this=0x7470612f, Current=0, Total=1, Size=1,
>    Op=
>        {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> =
> {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
> _M_p = 0xbfed0478 "ÄÇA\b"}}) at contrib/progress.cc:58
> #7  0xb7ea9ffd in pkgRPMLibPM::Process (this=0x83b7f48, install=@0xbfed0548,
>    upgrade=@0xbfed053c, uninstall=@0xbfed0530) at rpm/rpmpm.cc:902
> #8  0xb7eab125 in pkgRPMPM::Go (this=0x83b7f48) at rpm/rpmpm.cc:353
> #9  0x0806d531 in ?? ()
> #10 0x083b7f48 in ?? ()
> #11 0x00000002 in ?? ()
> #12 0xbfed05e0 in ?? ()
> #13 0xb7eb2c4c in rpmSystem::UnLock (this=0xb7f42f08, NoErrors=false)
>    at rpm/rpmsystem.cc:120
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
>
>
> I don't have a lot of time to look into this right now, any ideas?

Synaptic needs a small patch to work with the new progress interface in 
latest apt-rpm devel releases. Kynaptic almost certainly has the same icky 
hacks as Synaptic does, this patch should help:
http://apt-rpm.org/patches/synaptic-0.57.2-progressapi-hack.patch

API users aren't supposed to require modifications for the new progress 
stuff, but Synaptic does dirty things to get access to packagemanager 
internals, at which point all bets are of course off. From 
[ks]ynaptic/common/rpackagemanager.h:

#define protected public
#include <apt-pkg/packagemanager.h>
#undef protected

 	- Panu -



More information about the Apt-Rpm mailing list