https://github.com/python/cpython/commit/7a572d9f21dd7b665b95f4f96e1d40c6b72754ad
commit: 7a572d9f21dd7b665b95f4f96e1d40c6b72754ad
branch: main
author: Sam Gross <[email protected]>
committer: Yhg1s <[email protected]>
date: 2026-01-05T22:13:29+01:00
summary:

gh-143108: Don't instrument some faulthandler related functions for TSan 
(#143450)

files:
M Python/traceback.c

diff --git a/Python/traceback.c b/Python/traceback.c
index 40e19c7cc82075..74360a1c73c271 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -1186,7 +1186,7 @@ _Py_DumpTraceback(int fd, PyThreadState *tstate)
 
 
 // Write the thread name
-static void
+static void _Py_NO_SANITIZE_THREAD
 write_thread_name(int fd, PyThreadState *tstate)
 {
 #ifndef MS_WINDOWS
@@ -1239,7 +1239,7 @@ write_thread_name(int fd, PyThreadState *tstate)
 
    This function is signal safe (except on Windows). */
 
-static void
+static void _Py_NO_SANITIZE_THREAD
 write_thread_id(int fd, PyThreadState *tstate, int is_current)
 {
     if (is_current)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to