[issue36767] Segmentation fault when running c extension on macOS

2019-08-05 Thread Tal Einat
Tal Einat added the comment: I'm closing this: It has had no followup in over 3 months, and seems to be a simple misuse of the C API rather than a bug. -- nosy: +taleinat stage: -> resolved status: pending -> closed ___ Python tracker

[issue36767] Segmentation fault when running c extension on macOS

2019-05-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The program you include in your report will crash because the interpreter is never initialised. See the embedding documentation for more information: https://docs.python.org/3/extending/embedding.html -- resolution: -> not a bug status: open -> pe

[issue36767] Segmentation fault when running c extension on macOS

2019-05-01 Thread Senhui Guo
New submission from Senhui Guo : I was trying to build a c extension with cpython while it keeps crashing when I get it running, the code is quite simple: ```cpp #include "Python.h" int main () { PyObject *p; p = PySet_New(NULL); } ``` I build with command `clang -I/usr/local/Cellar/