Python 3.12 segfault with mixin classes

Florian Bruhin me at the-compiler.org
Sun Jun 25 21:16:19 BST 2023


Hey,

> On 15/06/2023 19:03, Florian Bruhin wrote:
> > [...]
> > 
> > And that indeed seems to be the case: trawl_type does
> > "dict = sipPyTypeDict(pytype);", that is an alias to sip's
> > api_py_type_dict, and that accesses py_type->tp_dict.
> > 
> > See:
> > https://github.com/python/cpython/issues/105227
> > 
> > There is now an open PR to add a PyType_GetDict():
> > https://github.com/python/cpython/pull/105747
> 
> Hopefully fixed in tonight's snapshot - although it needs the next beta 
> release of Python v3.12 to build.

Unfortunately so far, that PR is not merged yet.

This also breaks the current snapshot wheel, so I cannot test if the
fix for the other bug (segfault on exit) works:

    ImportError: .../python3.12/site-packages/PyQt6/sip.cpython-312-x86_64-linux-gnu.so:
    undefined symbol: PyType_GetDict

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230625/5134f4b0/attachment.sig>


More information about the PyQt mailing list