1. A method of detecting runtime errors relating to a stack of a computer program, said method comprising: during compilation of the computer program, inserting dummy variables between declarations in the stack in response to a user input, wherein the user input is a compiler directive statement or a compiler setting provided to a compiler specifically requesting insertion of the dummy variables having a predetermined bit pattern, wherein the predetermined bit pattern has a user defined size and type and inserting the dummy variables in the stack further comprises: inserting a dummy variable immediately prior to a first declaration of the stack; and inserting a dummy variable immediately following a last declaration on the stack; executing the computer program; and during execution of the computer program: searching, by a processor, a stack of the computer program for the predetermined bit pattern and identifying at least one location of the stack having the predetermined bit pattern; responsive to identifying the at least one location of the stack having the predetermined bit pattern, identifying, by the processor, the at least one location as being the dummy variable and marking the location of the stack as being uninitialized and unallocated; identifying the uninitialized and unallocated location of the stack being accessed during execution of the computer program; and responsive to the uninitialized and unallocated location of the stack being least one of the dummy variables is accessed during execution of the computer program, determining that a runtime memory access error has occurred.