Stack Overflow

Why Trust Techopedia

What Does Stack Overflow Mean?

A stack overflow is a runtime error that happens when a program runs out of memory in the call stack. The stack overflow generally signals a problem in resource provisioning and has to be fixed in order to allow the program to run and use memory properly.

Advertisements

Techopedia Explains Stack Overflow

It is important to point out that a stack overflow is a logical runtime error and not a syntax error. Syntax errors result when the computer cannot read a section of code correctly, and these errors are caught by the compiler or at other key points before production. A stack overflow, on the other hand, happens “in the mix” and can be hard to figure out.

Stack overflows can be caused by not allocating enough memory to a particular program. They can also be caused by a codebase where the coder or developer did not remember memory limits and programmed the executable to exceed them. Many programmers consider recursive functions as a major culprit: With recursion, the iterative process eats up all of the available memory and then triggers a stack overflow.

Advertisements

Related Terms

Margaret Rouse
Technology Specialist
Margaret Rouse
Technology Specialist

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.