New submission from myzhang1029 <myzhang1...@hotmail.com>:

I apologize for describing this issue badly, but I'll try anyway.
The code to demonstrate the issue is attached, so it might be better to read 
that instead.
I noticed that when more than 10 exceptions are raised sequentially (i.e. one 
from another or one during the handling of another), the interpreter crashes 
saying "Fatal Python error: XXX block stack overflow".
This happens in python 3.7, 3.8 and development(git 39c3493) versions, but not 
in python2.7. Using ipython also fixes this issue.
I know this case is rare, but the maximum number of recursions is more than 
2000, and the maximum number of statically nested blocks sepcified in 
frameobject.c is 20, so I'm pretty sure this isn't intended behavior.

----------
components: Interpreter Core
files: exception_nest.py
messages: 363914
nosy: myzhang1029
priority: normal
severity: normal
status: open
title: Fatal Python error "XXX block stack overflow" when exception stacks >10
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48969/exception_nest.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39934>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to