Skip to content

Commit beff3c9

Browse files
kumaraditya303miss-islington
authored andcommitted
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 288e3ce commit beff3c9

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
@@ -1606,6 +1606,9 @@ def dummycallback(sock, servername, ctx, cycle=ctx):
16061606
gc.collect()
16071607
self.assertIs(wr(), None)
16081608

1609+
@support.skip_if_sanitizer("gh-150191: OpenSSL has an internal data race "
1610+
"when the SNI callback is replaced during a "
1611+
"handshake", thread=True)
16091612
@threading_helper.requires_working_threading()
16101613
def test_sni_callback_race(self):
16111614
# Replacing sni_callback while a handshake is in-flight must not
@@ -5045,6 +5048,9 @@ def server_callback(identity):
50455048
with client_context.wrap_socket(socket.socket()) as s:
50465049
s.connect((HOST, server.port))
50475050

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

0 commit comments

Comments
 (0)