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 Mark.Shannon, christian.heimes, db3l, erlendaasland, kj, pablogsal, vstinner
Date 2021-05-28.21:49:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622238579.03.0.808284393945.issue44252@roundup.psfhosted.org>
In-reply-to
Content
Maybe the problem is related to Python frames. I think Mark Shannon made changes related to frames recently in 3.10 and main branches.

It's strange that I got such error:

  File "C:\vstinner\python\main\lib\unittest\result.py", line 205, in _is_relevant_tb_level
    return '__unittest' in tb.tb_frame.f_globals
TypeError: argument of type 'NoneType' is not iterable

It's also strange that two crashes occurred while reading a traceback:

Windows fatal exception: access violation

Current thread 0x000009e0 (most recent call first):
  File "D:\a\1\s\lib\linecache.py", line 63 in checkcache
  File "D:\a\1\s\lib\traceback.py", line 375 in extract
  File "D:\a\1\s\lib\traceback.py", line 494 in __init__
  File "D:\a\1\s\lib\traceback.py", line 132 in format_exception
  File "D:\a\1\s\lib\test\test_ssl.py", line 262 in handle_error

and:

Fatal Python error: Segmentation fault

Current thread 0x00007f9de2d1f640 (most recent call first):
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-x86_64/build/Lib/linecache.py", line 72 in checkcache
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-x86_64/build/Lib/traceback.py", line 375 in extract
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-x86_64/build/Lib/traceback.py", line 494 in __init__
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-x86_64/build/Lib/traceback.py", line 132 in format_exception
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-x86_64/build/Lib/test/test_ssl.py", line 262 in handle_error

Extract of test_ssl.py:

def handle_error(prefix):
    exc_format = ' '.join(traceback.format_exception(*sys.exc_info()))
    ...

Maybe sometimes somehow, frames are invalid.

Maybe test_ssl/test_httplib only makes the crash more likely, but there is a regression to frames somewhere.
History
Date User Action Args
2021-05-28 21:49:39vstinnersetrecipients: + vstinner, db3l, christian.heimes, Mark.Shannon, pablogsal, erlendaasland, kj
2021-05-28 21:49:39vstinnersetmessageid: <1622238579.03.0.808284393945.issue44252@roundup.psfhosted.org>
2021-05-28 21:49:39vstinnerlinkissue44252 messages
2021-05-28 21:49:38vstinnercreate