matplotlib-cpp icon indicating copy to clipboard operation
matplotlib-cpp copied to clipboard

fix segfault on exit with python3

Open amadeus84 opened this issue 3 years ago • 0 comments

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.

amadeus84 avatar Mar 10 '22 23:03 amadeus84