Skip to content

Commit c173e0d

Browse files
gh-143756: skip test_ssl_in_multiple_threads under TSAN
Concurrent calls to SSLContext.load_cert_chain on the same context race on the SSL_CTX default password callback. This is fixed in 3.15 (GH-143818), but under TSAN with instrumented OpenSSL the race is now reported on 3.14, so skip the test that triggers it.
1 parent 6bf1d2a commit c173e0d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3059,6 +3059,10 @@ def test_echo(self):
30593059
'Cannot create a client socket with a PROTOCOL_TLS_SERVER context',
30603060
str(e.exception))
30613061

3062+
@support.skip_if_sanitizer("gh-143756: data race in "
3063+
"SSLContext.load_cert_chain when called "
3064+
"concurrently on the same context",
3065+
thread=True)
30623066
@unittest.skipUnless(support.Py_GIL_DISABLED, "test is only useful if the GIL is disabled")
30633067
def test_ssl_in_multiple_threads(self):
30643068
# See GH-124984: OpenSSL is not thread safe.

0 commit comments

Comments
 (0)