The stack address needs to start at the end of the allocated memory for the stack, not the beginning.