mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN (GH-110657) (#110664)
gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN (GH-110657)
Skip test_post_fork_child_no_deadlock() if Python is built with ASAN.
Add support.HAVE_ASAN_FORK_BUG.
(cherry picked from commit f901f56313
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
dcd47e506d
commit
55448a5b14
4 changed files with 15 additions and 10 deletions
|
@ -78,10 +78,10 @@ except ImportError:
|
|||
msvcrt = None
|
||||
|
||||
|
||||
if support.check_sanitizer(address=True):
|
||||
if support.HAVE_ASAN_FORK_BUG:
|
||||
# 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")
|
||||
raise unittest.SkipTest("libasan has a pthread_create() dead lock related to thread+fork")
|
||||
|
||||
|
||||
def latin(s):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue