Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix segfault on exit with python3 #301

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Conversation

amadeus84
Copy link

Followed up on the analysis in this discussion https://stackoverflow.com/questions/67533541/py-finalize-resulting-in-segmentation-fault-for-python-3-9-but-not-for-python/67577360#67577360

and fixed the segfault by explicitly killing the _interpreter before return. I added that to all examples.

And while at it, I added a standalone compilation command (g++) as a comment and I fixed indentation in all examples, for convenience and consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant