Discovered what seems to be a stack corruption problem.