crash in gtk.RecentInfo.get_application_info()

Bug #386035 reported by Markus Korn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyGTK
Fix Released
Medium
pygtk (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

The following code crashes for me reproducible:

###
import gtk

recent = gtk.recent_manager_get_default()
for info in recent.get_items():
 last_application = info.last_application()
 application_info = info.get_application_info(last_application)
###

With something like
*** glibc detected *** python: double free or corruption (!prev): 0x00000000024c4e20 ***

please see the attachment for the complete backtrace.

I'm not sure which further information are needed, but I'm happy to provide any information to debug this further.

Markus

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: python-gtk2 2.14.1-1ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: pygtk
Uname: Linux 2.6.28-11-generic x86_64

Related branches

Revision history for this message
Markus Korn (thekorn) wrote :
Revision history for this message
Markus Korn (thekorn) wrote :

adding code to the description does not seem to be a good idea, so here is the reproducer as an attachment

Revision history for this message
Markus Korn (thekorn) wrote :

log of a valgrind run.
markus@thekorn .../zeitgeist/zeitgeist.datasource.recent % G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind -v --tool=memcheck --leak-check=full --num-callers=40 --log-file=valgrind.log python reproducer.py

Changed in pygtk:
status: Unknown → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug has been fixed upstream now

Changed in pygtk (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Siegfried Gevatter (rainct) wrote :
Revision history for this message
Siegfried Gevatter (rainct) wrote :

I'm attaching a debdiff which applies the patch to the PyGTK package in Karmic. I'm interested in getting this fixed because Zeitgeist needs this function. Can we get the fix included?

Thanks!

Revision history for this message
Martin Pitt (pitti) wrote :

I'll sponsor this with converting into a proper debian/patches/ patch.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pygtk - 2.15.1-0ubuntu2

---------------
pygtk (2.15.1-0ubuntu2) karmic; urgency=low

  * Add 02_fix_get_application_info_crash.patch: Fix crash in
    gtk.RecentInfo.get_application_info(). Taken from upstream git, thanks to
    Siegfried Gevatter for digging it out. (LP: #386035)

 -- Martin Pitt <email address hidden> Mon, 15 Jun 2009 11:40:22 +0200

Changed in pygtk (Ubuntu):
status: Fix Committed → Fix Released
Changed in pygtk:
status: New → Fix Released
Changed in pygtk:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.