[New-bugs-announce] [issue46633] AddressSanitizer: Skip tests directly in Python, not with external config
report at bugs.python.org
Fri Feb 4 05:09:11 EST 2022
New submission from STINNER Victor <vstinner at python.org>:
It seems like bpo-45200: "Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)" is not fixed yet.
In the GitHub Action job, test_multiprocessing_fork is skipped because it's too slow, so the job doesn't hang.
Yesterday, I modified the ASAN buildbot to double its timeout from 20 to 40 minutes:
But it's useful, when it hangs, it hangs forever. Exmaple on the AMD64 Arch Linux Asan Debug 3.9 buildbot (with the new config):
(test.test_multiprocessing_fork.WithProcessesTestPicklingConnections) ... ok
Tests are tuned for ASAN, but the configuration is copied and inconsistent between the GitHub Actions job and the buildbot configuration.
I propose to move this configuration directly into Python.
test_decimal.py checks for "-fsanitize=address" in CFLAGS and skip some tests if it's present.
nosy: pablogsal, vstinner
title: AddressSanitizer: Skip tests directly in Python, not with external config
versions: Python 3.11
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce