mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
[3.11] gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN (GH-110657) (#110665)
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
46347d3caf
commit
7984dc28b3
4 changed files with 15 additions and 10 deletions
|
@ -77,10 +77,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