summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-02 15:36:04 (GMT)
committerGitHub <noreply@github.com>2023-10-02 15:36:04 (GMT)
commitd09a3145b596810078d0b24e1a9cbebc117f804d (patch)
tree6f607ab8d82faa63e12627382d6e3d3e3290fb6e
parente25bc38ebb5927e2e7a3b0a201f4d1af8b4e546a (diff)
downloadcpython-d09a3145b596810078d0b24e1a9cbebc117f804d.zip
cpython-d09a3145b596810078d0b24e1a9cbebc117f804d.tar.gz
cpython-d09a3145b596810078d0b24e1a9cbebc117f804d.tar.bz2
[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 bc06743533b5fea2d5ecdad6dd3caa372c67439f) Co-authored-by: Victor Stinner <vstinner@python.org>
-rw-r--r--Lib/test/_test_multiprocessing.py2
-rw-r--r--Lib/test/test_threading.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index bf5d541..ca8fcab 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -79,7 +79,7 @@ except ImportError:
if support.check_sanitizer(address=True):
- # bpo-45200: Skip multiprocessing tests if Python is built with ASAN to
+ # gh-89363: Skip multiprocessing tests if Python is built with ASAN to
# work around a libasan race condition: dead lock in pthread_create().
raise unittest.SkipTest("libasan has a pthread_create() dead lock")
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 9e4972e..1b8019f 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -564,6 +564,10 @@ class ThreadTests(BaseTestCase):
self.assertEqual(err, b'')
@support.requires_fork()
+ # gh-89363: Skip multiprocessing tests if Python is built with ASAN to
+ # work around a libasan race condition: dead lock in pthread_create().
+ @support.skip_if_sanitizer("libasan has a pthread_create() dead lock",
+ address=True)
def test_is_alive_after_fork(self):
# Try hard to trigger #18418: is_alive() could sometimes be True on
# threads that vanished after a fork.