invalid iterator dereferencing causes program abortion
Created by: subhacom
On stepping trough the execution it was found that vector< Conn >::const_iterator SimpleElement::connDestEnd( unsigned int dest ) const
returns an iterator which is not dereferancable. In method void DestFinfo::dropAll( Element* e ) const this iterator is being dereference and this causes an assertion failure, causing program termination. Below is the call stack in Visual Studio 2005 version 8.0.50727.42 with Microsoft .NET Framework version 2.0.50727:
> moose.exe!DestFinfo::dropAll(Element * e=0x00566918) Line 65 C++
moose.exe!ClockJob::clearMessages(Element * e=0x00566918) Line 408 + 0x2f bytes C++
moose.exe!ClockJob::reschedFuncLocal(Element * e=0x005666d8) Line 369 + 0x21 bytes C++
moose.exe!ClockJob::reschedFunc(const Conn & c={...}) Line 320 C++
moose.exe!set(Element * e=0x005666d8, const Finfo * f=0x00556d60) Line 30 + 0x13 bytes C++
moose.exe!set(Element * e=0x005666d8, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & f="resched") Line 45 + 0x7 bytes C++
moose.exe!testSchedProcess() Line 334 + 0x3f bytes C++
msvcp80.dll!7c44f3e5()
[Frames below may be incorrect and/or missing, no symbols loaded for msvcp80.dll]
moose.exe!set<int>(Element * e=0x00000000, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & f={...}, int v=-1479030319) Line 50 + 0xc bytes C++
moose.exe!testSched() Line 164 + 0x10 bytes C++
msvcr80.dll!78159301()
msvcp80.dll!7c42319e()
moose.exe!main(int argc=1, char * * argv=0x00355728) Line 88 C++
moose.exe!__tmainCRTStartup() Line 586 + 0x17 bytes C
kernel32.dll!7c816d4f()
kernel32.dll!7c8399f3()
Reported by: subhacom