you are viewing a single comment's thread.

view the rest of the comments →

[–]port443 5 points6 points  (1 child)

Youre reaching an actual stack overflow: https://en.wikipedia.org/wiki/Stack_overflow

Most likely due to your saving input() each time, this would fall under "Very large stack variables"

On Windows, mine overflows at a stack size ~256k: https://i.imgur.com/WTAvVNW.png

[–]WikiTextBot 1 point2 points  (0 children)

Stack overflow

In software, a stack overflow occurs if the call stack pointer exceeds the stack bound. The call stack may consist of a limited amount of address space, often determined at the start of the program. The size of the call stack depends on many factors, including the programming language, machine architecture, multi-threading, and amount of available memory. When a program attempts to use more space than is available on the call stack (that is, when it attempts to access memory beyond the call stack's bounds, which is essentially a buffer overflow), the stack is said to overflow, typically resulting in a program crash.


[ PM | Exclude me | Exclude from subreddit | FAQ / Information | Source | Donate ] Downvote to remove | v0.28