Skip to content

Commit c11af48

Browse files
gh-150191: temporarily skip two openssl tests which have internal data races under TSAN (#153320)
1 parent 6b81784 commit c11af48

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

1607+
@support.skip_if_sanitizer("gh-150191: OpenSSL has an internal data race "
1608+
"when the SNI callback is replaced during a "
1609+
"handshake", thread=True)
16071610
@threading_helper.requires_working_threading()
16081611
def test_sni_callback_race(self):
16091612
# 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)