Finding Max possible Task stack size

When the system malfunctions, can you use the debugger to halt the program and see where you are? That can often lead to an understanding of the issue.

If you end up somewhere out in a strange place, use the debugger to look at the currentTCB and see what tasked caused the system to die.