Message356062
The attached code creates a static (global) C++ object that owns a reference to a Python object, and releases that reference in its destructor. That destructor runs at program termination, which is after interpreter shutdown (that is after Py_FinalizeEx is called).
After the call to Py_FinalizeEx() the interpreter no longer exists, and it is unsafe to call Python API functions (other than the ones listed as safe to call before a call to Py_Initialize). Py_DECREF is not on that safe list. |
|
Date |
User |
Action |
Args |
2019-11-05 21:05:54 | ronaldoussoren | set | recipients:
+ ronaldoussoren, ysnt27 |
2019-11-05 21:05:54 | ronaldoussoren | set | messageid: <1572987954.17.0.607782669591.issue38609@roundup.psfhosted.org> |
2019-11-05 21:05:54 | ronaldoussoren | link | issue38609 messages |
2019-11-05 21:05:54 | ronaldoussoren | create | |
|