Hi,
I created a small testcase using the code you sent and gave some generous stack and heap space (0x800 each), but unfortunately I couldn't reproduce the same problem as you.
In any case, please run the attached code and see if you still see the same issue you reported. If this happens, please check which release you are using (I am using 5.5.0.00077) and, if the release is the same, I wonder if somehow the simulator is showing a bug in your particular setup.
Hope this helps,
Rafael