[issue23020] New matmul operator crashes modules compiled with CPython3.4

Amaury Forgeot d'Arc report at bugs.python.org
Tue Dec 9 13:42:13 CET 2014


Amaury Forgeot d'Arc added the comment:

Here is a test module that segfaults on Python3.5.
It's derived from _testcapi, but it can be anything with a PyNumberMethods.

I compiled with
    gcc -g -I path/to/cpython3.4/Include/ -I /path/to/cpython3.4 mytest.c -fPIC --shared -o mytest.so

Then I ran python3.5 and:
    import mytest
    print(mytest.matmulType() @ 1)

When the module is compiled with 3.5, TypeError is correctly raised.

----------
Added file: http://bugs.python.org/file37397/mytest.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23020>
_______________________________________


More information about the Python-bugs-list mailing list