Message371432
The following program will segfault the interpreter:
#include <Python.h>
int main() {
Py_Initialize();
PyRun_SimpleString("import unittest");
Py_Finalize();
Py_Initialize();
PyRun_SimpleString("import unittest"); /* segfault here */
Py_Finalize();
}
This only seems to happen with the unittest module. This is something that used to work but broke somewhere between python 3.7 and 3.8.
The code above can also be found on github as a cmake project for your convenience:
https://github.com/TheComet/python3.8-unittest-broken |
|
Date |
User |
Action |
Args |
2020-06-13 02:29:55 | The Comet | set | recipients:
+ The Comet |
2020-06-13 02:29:55 | The Comet | set | messageid: <1592015395.95.0.70978961228.issue40965@roundup.psfhosted.org> |
2020-06-13 02:29:55 | The Comet | link | issue40965 messages |
2020-06-13 02:29:55 | The Comet | create | |
|