Public bug reported: Python 2.5 segfaults in some circumstances when examining the property apt.package.Package.installedPriority. The following interactive Python session reliably reproduces the crash (I'm running Hardy):
============================== Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from apt.cache import Cache /usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet warnings.warn("apt API not stable yet", FutureWarning) >>> installed_packages = [i for i in Cache() if i.isInstalled] >>> non_optional_packages = [i for i in installed_packages if >>> i.installedPriority != 'optional'] Segmentation fault ============================= I'm attaching a test script that exercises this bug further. The comments document several different ways of using the script to produce different output. Because it's possible that installedPriority doesn't like one or more of my installed packages, I'm also attaching a list of the packages installed on my system. ** Affects: python-apt (Ubuntu) Importance: Undecided Status: New -- Segfault caused by apt.package.Package.installedPriority https://bugs.launchpad.net/bugs/282942 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs