Use a better way to mod the stack to simulate a core error