The virtual machine caches the top of the stack in a register. The implementation of the return instructions does not correctly flush and charge the cache. This causes problems upon returning from user defined functions. Symptoms are wrong results, sporadic crashes or strange error messages.
Fixed on the trunk from rev. 1686.