Skip to content

Commit d09a314

Browse files
[3.12] gh-89363: Skip threading test_is_alive_after_fork() if ASAN (GH-109835) (#109855)
gh-89363: Skip threading test_is_alive_after_fork() if ASAN (GH-109835) Skip test_is_alive_after_fork() of test_threading if Python is built with Address Sanitizer (ASAN). (cherry picked from commit bc06743) Co-authored-by: Victor Stinner <[email protected]>
1 parent e25bc38 commit d09a314

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080

8181
if support.check_sanitizer(address=True):
82-
# bpo-45200: Skip multiprocessing tests if Python is built with ASAN to
82+
# gh-89363: Skip multiprocessing tests if Python is built with ASAN to
8383
# work around a libasan race condition: dead lock in pthread_create().
8484
raise unittest.SkipTest("libasan has a pthread_create() dead lock")
8585

Lib/test/test_threading.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,10 @@ def background_thread(evt):
564564
self.assertEqual(err, b'')
565565

566566
@support.requires_fork()
567+
# gh-89363: Skip multiprocessing tests if Python is built with ASAN to
568+
# work around a libasan race condition: dead lock in pthread_create().
569+
@support.skip_if_sanitizer("libasan has a pthread_create() dead lock",
570+
address=True)
567571
def test_is_alive_after_fork(self):
568572
# Try hard to trigger #18418: is_alive() could sometimes be True on
569573
# threads that vanished after a fork.

0 commit comments

Comments
 (0)