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 ronaldoussoren
Recipients ronaldoussoren, xxm
Date 2020-11-29.12:01:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606651308.57.0.58251356812.issue42500@roundup.psfhosted.org>
In-reply-to
Content
The crash is not nice, but....

The script contains the following line in the definition of status():

    except status() as e:

That will cause unbounded recursion when os.fstat raises an exception, which likely happens here. You probably want to catch OSError (or os.error) instead.


This scriptlet is a smaller reproduction of the problem:

def status():

   try:
      1/0

   except status():
      pass

status()
History
Date User Action Args
2020-11-29 12:01:48ronaldoussorensetrecipients: + ronaldoussoren, xxm
2020-11-29 12:01:48ronaldoussorensetmessageid: <1606651308.57.0.58251356812.issue42500@roundup.psfhosted.org>
2020-11-29 12:01:48ronaldoussorenlinkissue42500 messages
2020-11-29 12:01:48ronaldoussorencreate