We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 378a07b commit f9cff83Copy full SHA for f9cff83
2 files changed
Modules/_testcapimodule.c
@@ -3651,8 +3651,6 @@ temporary_c_thread(void *data)
3651
PyGILState_Release(state);
3652
3653
PyThread_release_lock(test_c_thread->exit_event);
3654
-
3655
- PyThread_exit_thread();
3656
}
3657
3658
static PyObject *
Modules/_threadmodule.c
@@ -1027,7 +1027,10 @@ t_bootstrap(void *boot_raw)
1027
nb_threads--;
1028
PyThreadState_Clear(tstate);
1029
PyThreadState_DeleteCurrent();
1030
+
1031
+ // bpo-44434: Don't call explicitly PyThread_exit_thread(). On Linux with
1032
+ // the glibc, pthread_exit() can abort the whole process if dlopen() fails
1033
+ // to open the libgcc_s.so library (ex: EMFILE error).
1034
1035
1036
0 commit comments