Your message dated Tue, 19 Jun 2012 11:14:10 +0200 with message-id <20120619111214.GA11669@debian.org> and subject line Re: Bug#658361: accessing priority of package causes a segmentation fault has caused the Debian Bug report #658361, regarding accessing priority of package causes a segmentation fault to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 658361: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658361 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---Package: python-apt
- To: submit@bugs.debian.org
- Subject: accessing priority of package causes a segmentation fault
- From: sita krishnakumar <sita.krishnakumar@gmail.com>
- Date: Thu, 2 Feb 2012 18:03:29 +0530
- Message-id: <CAJumZuG11qZ0Q+18YTSWJrDM=i=rFfNjBV_r-44Lf+pb65A8Sw@mail.gmail.com>
version: 0.7.7.1+nmu1
I get a seg fault on a Debian 5 machine when i access a package's priority. My python version is 2.5.2.Here is a simple python script to test out the same.
import apt
cache = apt.Cache()
cache.update()
cache.open(None)
cache.upgrade()for pkg in cache:
print pkg.name
print pkg.priority
This happened all on a sudden since today feb 2, 2012. I have been running it w/o any issues for past few months. initially i thought it was due to lack of no updates available, but further digging proved it to be due to accessing of priorities. And now it consistently happens. Not sure if the repository against which apt checks has been handed over to a new machine, for it used to list updates earlier. Without my upgrading, now there are 0 updates available. How is this possible?
I am running debian 5 as a VM on my laptop. I have tried it out on other standalone machines also and the problem persists.
Please contact me if you would like further information.
Thanks,
Sita
--
Sita S. Krishnakumar, PhD
+91-9003070867
--- End Message ---
--- Begin Message ---
- To: sita krishnakumar <sita.krishnakumar@gmail.com>, 658361-done@bugs.debian.org
- Subject: Re: Bug#658361: accessing priority of package causes a segmentation fault
- From: Julian Andres Klode <jak@debian.org>
- Date: Tue, 19 Jun 2012 11:14:10 +0200
- Message-id: <20120619111214.GA11669@debian.org>
- In-reply-to: <CAJumZuG11qZ0Q+18YTSWJrDM=i=rFfNjBV_r-44Lf+pb65A8Sw@mail.gmail.com>
- References: <CAJumZuG11qZ0Q+18YTSWJrDM=i=rFfNjBV_r-44Lf+pb65A8Sw@mail.gmail.com>
Source: python-apt Source-Version: 0.7.8 On Thu, Feb 02, 2012 at 06:03:29PM +0530, sita krishnakumar wrote: > Package: python-apt > version: 0.7.7.1+nmu1 > > I get a seg fault on a Debian 5 machine when i access a package's priority. > My python version is 2.5.2. > > Here is a simple python script to test out the same. > > import apt > > cache = apt.Cache() > cache.update() > cache.open(None) > cache.upgrade() > > for pkg in cache: > print pkg.name > print pkg.priority > > This happened all on a sudden since today feb 2, 2012. I have been running > it w/o any issues for past few months. initially i thought it was due to > lack of no updates available, but further digging proved it to be due to > accessing of priorities. And now it consistently happens. Not sure if the > repository against which apt checks has been handed over to a new machine, > for it used to list updates earlier. Without my upgrading, now there are 0 > updates available. How is this possible? This was fixed 2008 in unstable with version 0.7.8. You probably had an invalid package somewhere in the sources. Excerpt from the changelog: python-apt (0.7.8) unstable; urgency=low [ Michael Vogt ] * python/cache.cc: - fix crash if Ver.PriorityType() returns NULL -- Michael Vogt <mvo@debian.org> Mon, 24 Nov 2008 10:24:30 +0200 -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.Attachment: pgpDVBYef1Rng.pgp
Description: PGP signature
--- End Message ---