Skip to content

Commit 22a8efa

Browse files
[3.11] gh-89363: Skip threading test_is_alive_after_fork() if ASAN (GH-109835) (#109856)
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 0afae89 commit 22a8efa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Lib/test/_test_multiprocessing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979

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

Lib/test/test_threading.py

+4
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,10 @@ def background_thread(evt):
589589
self.assertEqual(err, b'')
590590

591591
@support.requires_fork()
592+
# gh-89363: Skip multiprocessing tests if Python is built with ASAN to
593+
# work around a libasan race condition: dead lock in pthread_create().
594+
@support.skip_if_sanitizer("libasan has a pthread_create() dead lock",
595+
address=True)
592596
def test_is_alive_after_fork(self):
593597
# Try hard to trigger #18418: is_alive() could sometimes be True on
594598
# threads that vanished after a fork.

0 commit comments

Comments
 (0)