This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author The Comet
Recipients The Comet
Date 2020-06-13.02:29:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592015395.95.0.70978961228.issue40965@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-06-13 02:29:55The Cometsetrecipients: + The Comet
2020-06-13 02:29:55The Cometsetmessageid: <1592015395.95.0.70978961228.issue40965@roundup.psfhosted.org>
2020-06-13 02:29:55The Cometlinkissue40965 messages
2020-06-13 02:29:55The Cometcreate