{"id":5847,"date":"2018-09-18T15:04:39","date_gmt":"2018-09-18T15:04:39","guid":{"rendered":"https:\/\/www.techopedia.com\/definition\/stack-overflow\/"},"modified":"2018-09-18T15:04:39","modified_gmt":"2018-09-18T15:04:39","slug":"stack-overflow","status":"publish","type":"definition","link":"https:\/\/www.techopedia.com\/definition\/9522\/stack-overflow","title":{"rendered":"Stack Overflow"},"content":{"rendered":"
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.<\/p>\n
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.<\/p>\n
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.<\/p>\n","protected":false},"excerpt":{"rendered":"
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. Techopedia Explains Stack […]<\/p>\n","protected":false},"author":7813,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"","_lmt_disable":"","om_disable_all_campaigns":false,"footnotes":""},"definitioncat":[244,216],"class_list":["post-5847","definition","type-definition","status-publish","format-standard","hentry","definitioncat-programming-languages","definitioncat-software-development"],"acf":[],"yoast_head":"\n