This smells like a memory corruption bug caused by an invalid pointer or someting. Will be difficult to track down.