Stack Overflow

noun

say it: “STAK OH-ver-floh” /stæk ˈoʊvərfloʊ/

The crash when too many function calls are waiting at once and the call stack runs out of room.

What is a stack overflow?

A stack overflow is the crash that happens when too many function calls are waiting at once and the call stack runs out of room, most often because recursion never reaches its base case. C# says Stack overflow., Java throws a StackOverflowError, Python a RecursionError, and JavaScript a RangeError.

In a sentence

  • “The program stopped with a stack overflow because my recursive function had no base case.”

Level: Apprentice · More Data Structures terms at this level

Updated