File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3651,8 +3651,6 @@ temporary_c_thread(void *data)
3651
3651
PyGILState_Release (state );
3652
3652
3653
3653
PyThread_release_lock (test_c_thread -> exit_event );
3654
-
3655
- PyThread_exit_thread ();
3656
3654
}
3657
3655
3658
3656
static PyObject *
Original file line number Diff line number Diff line change @@ -1027,7 +1027,10 @@ t_bootstrap(void *boot_raw)
1027
1027
nb_threads -- ;
1028
1028
PyThreadState_Clear (tstate );
1029
1029
PyThreadState_DeleteCurrent ();
1030
- PyThread_exit_thread ();
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).
1031
1034
}
1032
1035
1033
1036
static PyObject *
You can’t perform that action at this time.
0 commit comments