[PyQt] Fwd: "pydoc3 PyQt4.QtCore" segfaults

Phil Thompson phil at riverbankcomputing.com
Mon Oct 6 15:17:52 BST 2014


On 30/09/2014 7:40 am, Dmitry Shachnev wrote:
> Hi,
> 
> On Tue, Sep 30, 2014 at 9:20 AM, Antony Lee <antony.lee at berkeley.edu> 
> wrote:
>> Hi,
>> I have observed that "pydoc3 PyQt4.QtCore" segfaults.  This is on Arch 
>> Linux
>> with Python 3.4.1 and PyQt4 4.11.2 or 4.10.4 (both fail).
>> Can anyone confirm the issue?  Is it known?
> 
> I can confirm this, with PyQt4 and PyQt5. The segfault seems to happen
> when trying to repr() some object:
> 
> (gdb) bt full
> #0  0x08220c8d in type_qualname (context=0x0, type=0xb78e9e2c) at
> ../Objects/typeobject.c:369
>         et = 0xb78e9e2c
> #1  type_repr.lto_priv () at ../Objects/typeobject.c:819
>         mod = 'PyQt5.QtCore'
>         rtn = <optimized out>
> #2  0x081bca86 in PyObject_Repr (v=<sip.enumtype at remote
> 0xb78e9e2c>) at ../Objects/object.c:466
>         res = <optimized out>
> #3  builtin_repr.lto_priv () at ../Python/bltinmodule.c:1851
> No locals.
> #4  0x08131590 in call_function (oparg=<optimized out>,
> pp_stack=<optimized out>) at ../Python/ceval.c:4221
>         flags = 140111464
>         n = 0
> [...]
> 
> Also, calling help(Qt) or help(QTextEdit) in Python interactive shell
> causes a segmentation fault as well.

Should be fixed in tonight's SIP snapshot.

Thanks,
Phil


More information about the PyQt mailing list