[PyQt] sip segfault in disconnectNotify
phil at riverbankcomputing.com
Thu Sep 9 09:06:47 BST 2010
On Thu, 09 Sep 2010 09:40:43 +0200, Erik Janssens
<Erik.Janssens at conceptive.be> wrote:
> Hello Phil,
> I'm experiencing a segmentation fault in sip.
> I have build the latest released versions of sip and
> pyqt on ubuntu, to be able to have a decent stack trace.
> The issue only arises when objects are garbage collected,
> so I'm unsure on how to build a simple test case for it ?
> When I turn the python garbage collector of (gc.disable()),
> the segfault never appears.
> If there are things I can test to acquire more information,
> or if somebody has ideas on how to build test cases involving
> the garbage collector, please let me know.
> Please find attached the stacktrace.
There isn't a lot I can do without a test case. It is quite possible to
write Python code that causes a segfault - you can't assume that it's a
SIP, PyQt or Qt bug.
The fact that disabling the garbage collector changes the behaviour
suggests that you might not be keeping an explicit reference to something
you need to.
More information about the PyQt