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.

classification
Title: "Fatal Python error: Cannot recover from stack overflow." from pure Python code
Type: Stage: resolved
Components: Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Interpreter aborts when chaining an infinite number of exceptions
View: 6028
Assigned To: Nosy List: David MacIver, xiang.zhang
Priority: normal Keywords:

Created on 2017-03-11 11:33 by David MacIver, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
recursionerror.py David MacIver, 2017-03-11 11:33
Messages (3)
msg289441 - (view) Author: David MacIver (David MacIver) * Date: 2017-03-11 11:33
When run under Python 3.6.0 or 3.5.1 (and presumably other versions of Python 3) the attached code fails with "Fatal Python error: Cannot recover from stack overflow." then aborts with a core dump and an error code indicating it got a SIGABRT.

On Python 2.7 it instead hangs indefinitely.

Obviously this code is stupid and shouldn't be expected to do anything very reasonable - It's shrunk down from what was probably just a bug on my end in a larger example - but it seemed like it might be symptomatic of a more general class of problems.
msg289442 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2017-03-11 12:19
Looks same as #6028.
msg289443 - (view) Author: David MacIver (David MacIver) * Date: 2017-03-11 12:22
So it does. My apologies. I'll close this.
History
Date User Action Args
2022-04-11 14:58:44adminsetgithub: 73978
2017-03-11 12:28:32xiang.zhangsetsuperseder: Interpreter aborts when chaining an infinite number of exceptions
resolution: duplicate
2017-03-11 12:22:22David MacIversetstatus: open -> closed

messages: + msg289443
stage: resolved
2017-03-11 12:19:03xiang.zhangsetnosy: + xiang.zhang
messages: + msg289442
2017-03-11 11:33:02David MacIvercreate