This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, vstinner
Date 2021-05-27.17:13:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Christian Heimes reported a crash in bpo-42972:
GH-26399 is failing with an access violation on Windows. It's failing in one of the flaky tests. I wonder if the segfault is related to flaky tests somehow...

test_pha_optional (test.test_ssl.TestPostHandshakeAuth) ... ok
test_pha_optional_nocert (test.test_ssl.TestPostHandshakeAuth) ... ok
test_pha_required (test.test_ssl.TestPostHandshakeAuth) ... ok
Windows fatal exception: access violation

Current thread 0x000009e0 (most recent call first):
  File "D:\a\1\s\lib\", line 63 in checkcache
  File "D:\a\1\s\lib\", line 375 in extract
  File "D:\a\1\s\lib\", line 494 in __init__
  File "D:\a\1\s\lib\", line 132 in format_exception
  File "D:\a\1\s\lib\test\", line 262 in handle_error
  File "D:\a\1\s\lib\test\", line 2530 in run
  File "D:\a\1\s\lib\", line 1006 in _bootstrap_inner
  File "D:\a\1\s\lib\", line 963 in _bootstrap

Thread 0x000003c4 (most recent call first):
  File "D:\a\1\s\lib\", line 1102 in _wait_for_tstate_lock
  File "D:\a\1\s\lib\", line 1086 in join
  File "D:\a\1\s\lib\test\", line 2604 in run
  File "D:\a\1\s\lib\", line 1006 in _bootstrap_inner
  File "D:\a\1\s\lib\", line 963 in _bootstrap

Thread 0x00001700 (most recent call first):
  File "D:\a\1\s\lib\", line 1131 in read
  File "D:\a\1\s\lib\", line 1256 in recv
  File "D:\a\1\s\lib\test\", line 4471 in test_pha_required_nocert
  File "D:\a\1\s\lib\unittest\", line 549 in _callTestMethod
  File "D:\a\1\s\lib\unittest\", line 592 in run
  File "D:\a\1\s\lib\unittest\", line 652 in __call__
  File "D:\a\1\s\lib\unittest\", line 122 in run
  File "D:\a\1\s\lib\unittest\", line 84 in __call__
  File "D:\a\1\s\lib\unittest\", line 122 in run
  File "D:\a\1\s\lib\unittest\", line 84 in __call__
  File "D:\a\1\s\lib\unittest\", line 176 in run
  File "D:\a\1\s\lib\test\support\", line 959 in _run_suite
  File "D:\a\1\s\lib\test\support\", line 1082 in run_unittest
  File "D:\a\1\s\lib\test\", line 5007 in test_main
  File "D:\a\1\s\lib\test\libregrtest\", line 246 in _runtest_inner2
  File "D:\a\1\s\lib\test\libregrtest\", line 282 in _runtest_inner
  File "D:\a\1\s\lib\test\libregrtest\", line 154 in _runtest
  File "D:\a\1\s\lib\test\", line 2 in <module>
  File "D:\a\1\s\lib\", line 86 in _run_code
  File "D:\a\1\s\lib\", line 196 in _run_module_as_main
##[error]Cmd.exe exited with code '-1073741819'.

Erlend E. Aasland added:
Hm, I'm unable to reproduce it w/addr sanitiser on macOS (FWIW).

$ ./python.exe -m test test_ssl -F -u all -m test_pha_required_nocert

Passing 1000 successful runs now. I'll see if I can get a Win dev env set up later.

I may be related to commit dcb8786a9848516e823e090bb36079678913d8d3 "bpo-42972: Fully implement GC protocol for ssl heap types (GH-26370)".
Date User Action Args
2021-05-27 17:13:50vstinnersetrecipients: + vstinner, christian.heimes
2021-05-27 17:13:50vstinnersetmessageid: <>
2021-05-27 17:13:50vstinnerlinkissue44252 messages
2021-05-27 17:13:50vstinnercreate