Skip to content

Commit 762eb2e

Browse files
[3.14] gh-150191: temporarily skip two openssl tests which have internal data races under TSAN (GH-153320) (#153349)
gh-150191: temporarily skip two openssl tests which have internal data races under TSAN (GH-153320) (cherry picked from commit c11af48) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent 3d8f2aa commit 762eb2e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,9 @@ def dummycallback(sock, servername, ctx, cycle=ctx):
15331533
gc.collect()
15341534
self.assertIs(wr(), None)
15351535

1536+
@support.skip_if_sanitizer("gh-150191: OpenSSL has an internal data race "
1537+
"when the SNI callback is replaced during a "
1538+
"handshake", thread=True)
15361539
@threading_helper.requires_working_threading()
15371540
def test_sni_callback_race(self):
15381541
# Replacing sni_callback while a handshake is in-flight must not
@@ -4755,6 +4758,9 @@ def server_callback(identity):
47554758
with client_context.wrap_socket(socket.socket()) as s:
47564759
s.connect((HOST, server.port))
47574760

4761+
@support.skip_if_sanitizer("gh-150191: OpenSSL races on SSL->rwstate and "
4762+
"the socket BIO flags with concurrent read "
4763+
"and write", thread=True)
47584764
def test_thread_recv_while_main_thread_sends(self):
47594765
# GH-137583: Locking was added to calls to send() and recv() on SSL
47604766
# socket objects. This seemed fine at the surface level because those

0 commit comments

Comments
 (0)