Python Generic C Extension
Reproducing the crash:
- Ensure you are using the latest 3.6.X or 3.7.X version with debug
- Clone the repo
- Create virtualenv:
virtualenv -p $(which python3.6) .env
- source .env:
source .env/bin/activate
- build extension:
python setup.py build
- Install the extension:
pip install .
- Run python interpreter:
python
- enter the following into the interpreter:
from cpython import CPython
with CPython() as f:
print(f.field1)
exit()
You should see Segmentation fault
when it exits.