[issue43311] PyInterpreterState_New use thread tstate before set.

2021-02-24 Thread junyixie
Change by junyixie : -- keywords: +patch pull_requests: +23420 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24636 ___ Python tracker ___ ___

[issue43311] PyInterpreterState_New use thread tstate before set.

2021-02-24 Thread junyixie
New submission from junyixie : PyInterpreterState_New use thread tstate before set. PyInterpreterState_New use tstate. but tstate is not set. tstate will set after PyInterpreterState_New. PyInterpreterState *interp = PyInterpreterState_New(); if (interp == NULL) { *tstate_p =