Victor Stinner
517cd82ea7
gh-108987: Fix _thread.start_new_thread() race condition ( #109135 )
...
Fix _thread.start_new_thread() race condition. If a thread is created
during Python finalization, the newly spawned thread now exits
immediately instead of trying to access freed memory and lead to a
crash.
thread_run() calls PyEval_AcquireThread() which checks if the thread
must exit. The problem was that tstate was dereferenced earlier in
_PyThreadState_Bind() which leads to a crash most of the time.
Move _PyThreadState_CheckConsistency() from thread_run() to
_PyThreadState_Bind().
2023-09-11 17:27:03 +02:00
..
2023-08-31 23:42:34 +02:00
2023-09-05 01:54:55 +02:00
2023-09-01 18:36:53 +02:00
2023-05-24 13:30:11 -07:00
2023-09-03 17:28:14 +03:00
2023-09-03 17:28:14 +03:00
2023-08-31 23:42:34 +02:00
2023-09-03 18:54:27 +02:00
2023-08-31 23:42:34 +02:00
2023-09-09 05:44:46 +00:00
2023-09-02 00:46:36 +00:00
2023-07-22 13:49:37 +00:00
2023-08-31 23:42:34 +02:00
2023-09-06 08:52:53 +00:00
2022-10-27 13:45:12 -07:00
2023-07-22 17:04:34 +02:00
2023-08-24 20:01:50 +00:00
2023-07-02 15:07:46 +09:00
2023-08-21 19:15:52 +02:00
2023-07-02 15:07:46 +09:00
2023-08-24 20:01:50 +00:00
2023-05-05 21:11:27 +00:00
2023-08-25 01:01:30 +02:00
2023-07-18 09:00:22 +03:00
2023-08-27 00:35:06 +03:00
2023-09-06 23:55:42 +03:00
2023-07-23 14:26:23 +00:00
2023-07-25 15:28:30 +02:00
2023-07-25 15:28:30 +02:00
2023-07-25 14:34:49 +03:00
2023-07-25 14:34:49 +03:00
2023-07-25 14:34:49 +03:00
2023-08-21 18:05:59 +00:00
2023-09-03 18:54:27 +02:00
2023-09-05 01:54:55 +02:00
2023-08-21 19:15:52 +02:00
2023-02-09 00:40:52 -08:00
2023-08-29 01:42:24 +02:00
2023-08-01 15:45:51 +09:00
2023-08-24 20:02:09 +00:00
2023-09-03 17:28:14 +03:00
2023-08-24 20:25:22 +02:00
2023-08-24 18:53:50 +02:00
2023-05-09 10:24:29 +02:00
2023-06-01 09:42:18 -07:00
2023-06-01 09:42:18 -07:00
2023-06-01 09:42:18 -07:00
2023-08-31 13:53:19 +02:00
2023-05-22 06:14:48 +05:30
2023-07-18 10:50:47 +03:00
2023-05-05 21:11:27 +00:00
2023-09-03 18:54:27 +02:00
2023-07-02 15:07:46 +09:00
2023-06-06 08:40:32 +00:00
2023-09-08 09:48:28 +00:00
2023-08-26 00:39:24 +02:00
2023-08-21 13:59:58 +00:00
2023-09-08 09:48:28 +00:00
2023-07-25 14:34:49 +03:00
2023-07-18 23:59:53 +03:00
2023-09-11 17:27:03 +02:00
2023-09-03 18:54:27 +02:00
2023-08-28 16:04:27 +03:00
2023-08-13 10:24:59 +01:00
2023-07-02 15:07:46 +09:00
2023-07-25 14:34:49 +03:00
2023-08-11 21:13:46 +03:00
2023-07-27 15:30:16 -06:00
2023-08-31 13:53:19 +02:00
2023-09-03 18:54:27 +02:00
2022-07-27 08:19:23 +02:00
2023-08-24 20:25:22 +02:00
2023-09-05 01:54:55 +02:00
2023-07-25 14:34:49 +03:00
2023-07-18 10:50:47 +03:00
2021-08-24 17:50:05 +01:00
2023-06-09 21:57:25 +02:00
2023-08-27 00:35:06 +03:00
2023-08-27 00:35:06 +03:00
2022-08-04 18:12:35 +02:00
2023-09-06 15:54:59 +00:00
2023-09-01 18:36:53 +02:00
2023-07-04 09:41:43 +00:00
2022-07-27 08:19:23 +02:00
2021-12-03 00:08:42 +00:00
2023-09-05 01:54:55 +02:00
2023-02-06 15:55:32 +00:00
2023-09-02 16:50:18 +02:00
2023-05-23 00:06:41 +00:00
2023-08-24 20:25:22 +02:00
2023-08-29 04:18:52 +02:00
2022-11-16 14:03:35 +01:00
2020-11-16 16:16:10 +01:00
2023-09-03 01:48:47 -07:00
2023-07-25 14:34:49 +03:00
2023-09-02 16:50:18 +02:00
2023-09-03 17:28:14 +03:00
2023-09-06 08:52:53 +00:00
2023-09-07 02:09:06 +02:00
2023-09-02 16:50:18 +02:00
2023-09-03 18:54:27 +02:00
2023-09-02 17:51:19 +02:00
2023-09-03 17:28:14 +03:00
2023-09-02 16:50:18 +02:00
2023-05-25 17:59:00 +02:00
2023-05-15 20:36:23 -07:00
2023-09-02 00:46:36 +00:00
2023-07-25 14:34:49 +03:00
2023-07-25 15:28:30 +02:00
2023-05-23 00:06:41 +00:00
2023-09-02 17:51:19 +02:00
2023-09-02 17:54:59 +00:00
2023-08-10 00:47:46 +00:00
2023-08-29 04:18:52 +02:00
2023-05-05 21:11:27 +00:00
2023-09-02 18:57:47 +00:00
2023-09-05 10:25:08 +02:00
2023-05-10 18:53:13 +00:00
2023-04-14 09:04:16 -05:00
2022-09-13 15:45:12 -07:00
2023-07-25 15:28:30 +02:00
2022-09-13 15:45:12 -07:00
2023-05-05 21:11:27 +00:00
2023-05-05 21:11:27 +00:00
2023-05-05 21:11:27 +00:00
2023-09-02 17:51:19 +02:00
2023-08-21 19:15:52 +02:00