# 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](https://www.ask-codey.com/glossary?category=data-structures&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/stack-overflow
