Georg Vollnhals wrote:

Can
you provide a stack backtrace?

m.
Sorry, I think this is far behind my scope as Windows does not give any stack info back as FG is a Cygwin process. And I have to kill Cygwin with the Windows taskmanager as it freezes too. And my knowledge about Cygwin is very limited :-(

May be some other Cygwin user can test whether it is an individual problem (then forget about it) or a general one?

It's a general problem Georg but it's not visible if the memory is not reused or marked as free by the debugger.

NewGUI::reinit ()
{
   map<string,FGDialog *>::iterator iter;
   vector<string> dlg;
   // close all open dialogs and remember them ...
for (iter = _active_dialogs.begin(); iter != _active_dialogs.end(); iter++) {
       dlg.push_back(iter->first);
       closeDialog(iter->first);
   }
}

closeDialog will indirectly destroy *iter, so you can not do a iter++ after that.

Harald.

        kernel32.dll!7c81eb33()         
        kernel32.dll!7c81eb33()         
        FlightGear.exe!_nh_malloc_dbg(unsigned int nSize=0x00000001, int 
nhFlag=0x00000003, int nBlockUse=0x0012ee70, const char * 
szFileName=0x00365138, int nLine=0x00000003)  Ligne 267 + 0x7        C
        FlightGear.exe!_CxxThrowException(void * pExceptionObject=0x0012ee8c, 
const _s__ThrowInfo * pThrowInfo=0x00cdd5b4)  + 0x39      C++
        FlightGear.exe!std::_Nomemory()  Ligne 10       C++
        FlightGear.exe!operator new(unsigned int size=0xfeeefef0)  Ligne 15     
C++
>       FlightGear.exe!std::_Allocate<char>(unsigned int _Count=0xfeeefef0, 
> char * __formal=0x00000000)  Ligne 34 + 0x9 C++
        FlightGear.exe!std::allocator<char>::allocate(unsigned int 
_Count=0xfeeefef0)  Ligne 137 + 0xb  C++
        
FlightGear.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char>
 >::_Copy(unsigned int _Newsize=0xfeeefeee, unsigned int _Oldlen=0x00000000)  
Ligne 1454 + 0xf C++
        
FlightGear.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char>
 >::_Grow(unsigned int _Newsize=0xfeeefeee, bool _Trim=false)  Ligne 1485      
C++
        
FlightGear.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char>
 >::assign(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
_Right={...}, unsigned int _Roff=0x00000000, unsigned int _Count=0xffffffff)  
Ligne 599 + 0x10 C++
        
FlightGear.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char>
 >::basic_string<char,std::char_traits<char>,std::allocator<char> >(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
_Right={...})  Ligne 326      C++
        
FlightGear.exe!std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 > > 
>::_Insert_n(std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 > > >::iterator _Where={...}, unsigned int _Count=0x00000001, const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
_Val={...})  Ligne 810 + 0xc   C++
        
FlightGear.exe!std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 > > 
>::insert(std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 > > >::iterator _Where={...}, const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
_Val={...})  Ligne 623    C++
        
FlightGear.exe!std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 > > >::push_back(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
_Val={...})  Ligne 584  C++
        FlightGear.exe!NewGUI::reinit()  Ligne 60       C++
        FlightGear.exe!do_reinit(const SGPropertyNode * arg=0x195c6620)  Ligne 
223      C++
        FlightGear.exe!SGCommandMgr::execute(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
name={...}, const SGPropertyNode * arg=0x195c6620)  Ligne 61 + 0x7    C++
        FlightGear.exe!f_fgcommand(Context * c=0x10b5d028, naRef me={...}, int 
argc=0x00000002, naRef * args=0x10b5dc38)  Ligne 223 + 0x55      C++
        FlightGear.exe!setupFuncall(Context * ctx=0x10b5d028, int 
nargs=0x00000002, int mcall=0x00000000, int tail=0x00000001)  Ligne 253 + 0x1a  
      C
        FlightGear.exe!run(Context * ctx=0x10b5d028)  Ligne 568 + 0x39  C
        FlightGear.exe!naCall(Context * ctx=0x10b5d028, naRef func={...}, int 
argc=0x00000000, naRef * args=0x00000000, naRef obj={...}, naRef locals={...})  
Ligne 724 + 0x9   C
        FlightGear.exe!FGNasalSys::handleCommand(const SGPropertyNode * 
arg=0x091eb490)  Ligne 492 + 0x33       C++
        FlightGear.exe!do_nasal(const SGPropertyNode * arg=0x091eb490)  Ligne 
182       C++
        FlightGear.exe!FGBinding::fire()  Ligne 127 + 0x14      C++
        FlightGear.exe!FGInput::doKey(int k=0x0000010a, int 
modifiers=0x00000002, int x=0x00000241, int y=0x000000a0)  Ligne 254 + 0x1c C++
        FlightGear.exe!keyHandler(int key=0x0000010a, int keymod=0x00000002, 
int mousex=0x00000241, int mousey=0x000000a0)  Ligne 1070  C++
        FlightGear.exe!callKeyHandler(int k=0x0000010a, int mods=0x00000002, 
int x=0x00000241, int y=0x000000a0)  Ligne 73 + 0x1f       C++
        FlightGear.exe!GLUTspecialkey(int k=0x0000000a, int x=0x00000241, int 
y=0x000000a0)  Ligne 96 + 0x1d    C++
        glut32.dll!1000a572()   
        nvoglnt.dll!695d3cd6()  
        nvoglnt.dll!695d3d37()  
        ntdll.dll!7c97e0d4()    
        ntdll.dll!7c95a5d0()    
        ntdll.dll!7c936abe()    
        user32.dll!77d1eb3e()   
        keymouse.dll!0ad6105a()         
        user32.dll!77d18734()   
        user32.dll!77d18816()   
        user32.dll!77d1c63f()   
        user32.dll!77d1c665()   
        opengl32.dll!5f09699b()         
        msctf.dll!746a0e71()    
        user32.dll!77d21042()   
        user32.dll!77d18734()   
        user32.dll!77d18816()   
        user32.dll!77d1ec03()   
        user32.dll!77d189cd()   
        user32.dll!77d196b8()   
        user32.dll!77d21042()   
        user32.dll!77d1c5de()   
        user32.dll!77d196c7()   
        glut32.dll!10003504()   
        ntdll.dll!7c9206eb()    
        glut32.dll!10003617()   
        glut32.dll!100034b9()   
        FlightGear.exe!fgOSMainLoop()  Ligne 144        C++
        FlightGear.exe!fgMainInit(int argc=0x00000004, char * * 
argv=0x003e33d8)  Ligne 1087    C++
        FlightGear.exe!main(int argc=0x00000004, char * * argv=0x003e33d8)  
Ligne 193 + 0xd     C++
        FlightGear.exe!mainCRTStartup()  Ligne 259 + 0x19       C
        kernel32.dll!7c816d4f()         
        ntdll.dll!7c9206eb()    
        kernel32.dll!7c8399f3()         
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to