[pypy-issue] [issue1703] Crash when overriding PyType_Type.tp_new
tracker at bugs.pypy.org
Sun Mar 9 13:28:48 CET 2014
New submission from Johan Rade <johan.rade at gmail.com>:
If you use the C-API to derive a new metaclass from PyType_Type, override the
tp_new slot, and have the overriding tp_new call PyType_Type.tp_new, then PyPy
gets into an infinite loop and crashes.
I have attached files that show the problem.
Compile Foo3.c as a python extension module named Foo3.
Set up the paths so that Test3.py can find Foo3.
Expected behavior and observed behavior with CPython 2.7.6:
Observed behavior with PyPy 2.2.1:
Fixing this issue is probably needed to get PySide to run on PyPy using the
nosy: jrade, pypy-issue
title: Crash when overriding PyType_Type.tp_new
PyPy bug tracker <tracker at bugs.pypy.org>
More information about the pypy-issue