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, db3l, erlendaasland, kj, pablogsal, vstinner
Date 2021-05-28.22:09:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I remove Mark from the issue. I may open later a different issue for tb_frame.f_globals=None, but it's unrelated to this bug.

I can reproduce the issue with a small hack to make GC collections make likely:

diff --git a/Lib/ b/Lib/
index 939893eb5e..4103792e84 100644
--- a/Lib/
+++ b/Lib/
@@ -672,3 +672,6 @@ def exists(path):
 if __name__ == '__main__':
+import gc

With this patch, it becomes trivial to reproduce the crash on Linux:

$ ./python -m test test_ssl -m test_ssl_cert_verify_error -v 
Fatal Python error: Segmentation fault

Current thread 0x00007fd0f72a8640 (most recent call first):
  File "/home/vstinner/python/3.10/Lib/", line 132 in format_exception
  File "/home/vstinner/python/3.10/Lib/test/", line 262 in handle_error
  File "/home/vstinner/python/3.10/Lib/test/", line 2401 in wrap_conn

So the problem is that _ssl.SSLError type traverse function is NULL.
Date User Action Args
2021-05-28 22:09:56vstinnersetrecipients: + vstinner, db3l, christian.heimes, pablogsal, erlendaasland, kj
2021-05-28 22:09:55vstinnersetmessageid: <>
2021-05-28 22:09:55vstinnerlinkissue44252 messages
2021-05-28 22:09:55vstinnercreate