Public bug reported:
I have some simple apt_pkg code that runs properly with 0.6.19-ubuntu5
and python2.4, but causes invalid free messages from glibc or
segmentation faults when run with 2.5. The attached code reliably
triggers the problem for me. It is:
import apt_pkg
apt_pkg.init()
cache = apt_pkg.GetCache()
installed = {}
for pkg in cache.Packages:
if pkg.CurrentVer:
installed[pkg.Name] = pkg.CurrentVer.VerStr
Here are the output from this script, run on edgy with python2.4 and
python2.5, respectively.
[0:40] python2.4 /tmp/apt.py
Reading package lists... Done
Building dependency tree
Reading state information... Done
[0:41] python2.5 /tmp/apt.py
Reading package lists... Done
Building dependency tree
Reading state information... Done
*** glibc detected *** python2.5: free(): invalid pointer: 0xb7d9f308 ***
In the python2.5 run, the program goes into a bad state, and requires a
kill -9 to kill it.
** Affects: python-apt (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
SEGV in python-apt with python2.5
https://launchpad.net/bugs/63226
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs