diagnosing a stack corruption