Hi there,

I've encountered a weird sigfault on Mac OS 10.5 with 0.9.11-pre2.

when I launch fgfs without opening window, fgfs crashes with segfault.
e.g., fgfs --fg-root=. --help makes segfault. Simply launching fgfs  
without no options does too.
So does specifying a wrong option.

But It doesn't crash when launched with the main window (with options  
--airport=KSFO --aircraft=c172p)

Here is the crash log that I have.

Thread 0 Crashed:
0   fgfs                                0x0048bfb6  
std::_Rb_tree<std::basic_string<char, std::char_traits<char>,  
std::allocator<char> >, std::pair<std::basic_string<char,  
std::char_traits<char>, std::allocator<char> > const,  
SGSharedPtr<SGMaterial> >,  
std::_Select1st<std::pair<std::basic_string<char,  
std::char_traits<char>, std::allocator<char> > const,  
SGSharedPtr<SGMaterial> > >, std::less<std::basic_string<char,  
std::char_traits<char>, std::allocator<char> > >,  
std::allocator<std::pair<std::basic_string<char,  
std::char_traits<char>, std::allocator<char> > const,  
SGSharedPtr<SGMaterial> > >  
 >::_M_erase(std::_Rb_tree_node<std::pair<std::basic_string<char,  
std::char_traits<char>, std::allocator<char> > const,  
SGSharedPtr<SGMaterial> > >*) + 92
1   fgfs                                0x0048b628  
SGMaterialLib::~SGMaterialLib() + 24
2   fgfs                                0x00300c99 FGGlobals::~FGGlobals()  
+ 467
3   fgfs                                0x00002c56 fgExitCleanup() + 64
4   libSystem.B.dylib                   0x9432e967 __cxa_finalize + 252
5   libSystem.B.dylib                   0x9432e850 exit + 33
6   fgfs                                0x00307cc7 fgMainInit(int, char**)  
+ 1005
7   fgfs                                0x00002973 main + 175
8   fgfs                                0x000021f2 _start + 216
9   fgfs                                0x00002119 start + 41
(snip)

I guess this is caused by releasing uninitialized instance  
variable(s). the crash report says it happens around  
SGMaterialLib::~SGMaterialLib()
but that method is empty....  hmmm, no idea what causes this.

First I doubt this is caused by the patch that I made for fixing DList  
stack overflow, but the built without that patch also ends up with the  
same result.
I've already tried some clean builds but it didn't help.

Does anyone have the same issue? or any hints?

Thanks in advance,

Tat


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to