python-renpy crashes in rw_close_th when the scene changes

Bug #1086231 reported by Gregor Riepl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
renpy (Ubuntu)
New
Undecided
Unassigned

Bug Description

I tried running the Ren'Py game "Analogue - A Hate Story" (the Steam version in my case) with the renpy build from Ubuntu 12.10 (6.13.12-1build1).
After the intro, the game does not switch over to the main menu, but crashes in rw_close_th.

I couldn't find debug symbols for the the python-renpy package, so I apt-get source'd renpy and disabled the dh_strip stage, then built and reinstalled it. A resulting gdb stack trace is attached.

As I don't understand Python/C very well, I just took a wild guess at why the crash is happening. Based on the assumption that PyObject_GetAttrString does not increase the reference count, I added Py_INCREF() calls to fetch_object_methods(). If this is incorrect, I can see another bug here: if the PyCallable_Check() call returns false, the references are never decremented. With the reference count increase, the crash vanishes, but I can't tell if this instead creates a memory leak. It would be great if a Python guru could provide some insight.

Upstream versions were not tested.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: python-renpy 6.13.12-1build1
ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
Uname: Linux 3.5.0-19-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Tue Dec 4 04:18:23 2012
InstallationDate: Installed on 2012-10-17 (47 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120822.4)
MarkForUpload: True
SourcePackage: renpy
UpgradeStatus: Upgraded to quantal on 2012-11-30 (3 days ago)

Revision history for this message
Gregor Riepl (onitake) wrote :
Revision history for this message
Gregor Riepl (onitake) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch that increases the reference count on the python method references" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
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.