[PyQt] Crash in sip_api_is_py_method() with PyQt 4.6

Phil Thompson phil at riverbankcomputing.com
Tue Oct 13 21:02:24 BST 2009


On Tue, 13 Oct 2009 21:25:34 +0200, Victor Stinner
<victor.stinner at haypocalc.com> wrote:
> Hi,
> 
> I'm using Debian Sid, and my program crash since the last upgrade. The
last
> 
> upgrade installed PyQt 4.6 with SIP 4.9.
> 
> The crash is in sip_api_is_py_method(): if cls is not a PyTypeObject*,
the 
> dict value is a pointer to something is the memory, but not to a 
> PyDictObject*. Attached patch fixes the crash.

Thanks.

> But the new PyQt/SIP introduces a regression: I replaced contextMenu and 
> mousePressEvent for some objects, and it doesn't work anymore. I don't
know
> if 
> this issue (sip_api_is_py_method() crash) is related.

Should already be fixed.

Test with tonight's snapshots to see if you have any outstanding problems -
there will be new releases in the next couple of days.

Phil


More information about the PyQt mailing list