New issue 2486: PyPyType_Ready with tp_flags crashes PyPy interpreter
https://bitbucket.org/pypy/pypy/issues/2486/pypytype_ready-with-tp_flags-crashes-pypy

Denis Akhiyarov:

I'm trying to debug PyPy crash with pythonnet library. PyPyType_Ready(type) 
works if no tp_flags are set on this type. If any basic flag is set (e.g. 
Py_TPFLAGS_DEFAULT_EXTERNAL) this crashes interpreter.

Are there any differences between CPython and PyPy wrt to setting tp_flags?

Here is a typical crash:

https://github.com/pythonnet/pythonnet/issues/330#issuecomment-280820452

```
>>>> import clr
Attempting to load 'Python.Runtime' using standard binding rules.
'Python.Runtime' not found using standard binding rules.
Attempting to load Python.Runtime from: 
'C:\Python\pypy-c-jit-latest-win32\site-packages\Python.Runtime.dll'.
Success loading 'Python.Runtime' from: 
'C:\Python\pypy-c-jit-latest-win32\site-packages\Python.Runtime.dll'.
RPython traceback:
  File "pypy_module_cpyext_2.c", line 25519, in type_realize
  File "pypy_module_cpyext_2.c", line 30900, in _type_realize
Fatal RPython error: AssertionError
```


_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to