Hi!

When starting fg with an invalid aircraft, it segfaults after printing the 
message:

Cannot find specified aircraft: 777

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7970d44 in pthread_mutex_lock () from /lib64/libpthread.so.0

(gdb) thread apply all bt

Thread 5 (Thread 0x7fffeb6c6700 (LWP 7390)):
#0  0x00007ffff797539d in write () from /lib64/libpthread.so.0
#1  0x00007ffff20f5166 in ?? () from /usr/lib64/libstdc++.so.6
#2  0x00007ffff212d02f in std::basic_filebuf<char, std::char_traits<char> 
>::_M_convert_to_external(char*, long) () from /usr/lib64/libstdc++.so.6
#3  0x00007ffff212d913 in std::basic_filebuf<char, std::char_traits<char> 
>::overflow(int) () from /usr/lib64/libstdc++.so.6
#4  0x00007ffff212b41f in std::basic_filebuf<char, std::char_traits<char> 
>::sync() () from /usr/lib64/libstdc++.so.6
#5  0x00007ffff210de0e in std::ostream::flush() () from 
/usr/lib64/libstdc++.so.6
#6  0x0000000000e180e3 in LogStreamPrivate::run (this=0x139a8a0) at 
/home/nine/install/FlightGear-0.9/simgear/simgear/debug/logstream.cxx:222
#7  0x0000000000ea801a in SGThread::PrivateData::start_routine 
(data=<optimized out>) at 
/home/nine/install/FlightGear-0.9/simgear/simgear/threads/SGThread.cxx:204
#8  0x00007ffff796ee0f in start_thread () from /lib64/libpthread.so.0
#9  0x00007ffff189c7dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ffff7f98840 (LWP 7383)):
#0  0x00007ffff7970d44 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x0000000000e1608c in SGGuard (l=..., this=0x7fffffffd1f0) at 
/home/nine/install/FlightGear-0.9/simgear/simgear/threads/SGGuard.hxx:18
#2  sglog () at 
/home/nine/install/FlightGear-0.9/simgear/simgear/debug/logstream.cxx:356
#3  0x00000000007191a5 in FGGlobals::saveUserSettings 
(this=this@entry=0x139aa90) at 
/home/nine/install/FlightGear-0.9/flightgear/src/Main/globals.cxx:527
#4  0x00000000007197a7 in FGGlobals::~FGGlobals (this=0x139aa90, 
__in_chrg=<optimized out>) at 
/home/nine/install/FlightGear-0.9/flightgear/src/Main/globals.cxx:182
#5  0x0000000000719c69 in FGGlobals::~FGGlobals (this=0x139aa90, 
__in_chrg=<optimized out>) at 
/home/nine/install/FlightGear-0.9/flightgear/src/Main/globals.cxx:220
#6  0x00007ffff17ebf61 in __run_exit_handlers () from /lib64/libc.so.6
#7  0x00007ffff17ebfe5 in exit () from /lib64/libc.so.6
#8  0x0000000000720966 in fgMainInit (argc=2, argv=0x7fffffffd8f8) at 
/home/nine/install/FlightGear-0.9/flightgear/src/Main/main.cxx:342
#9  0x00000000006e3b14 in main (argc=2, argv=0x7fffffffd8f8) at 
/home/nine/install/FlightGear-0.9/flightgear/src/Main/bootstrap.cxx:244

I can reproduce the segfault every time. Btw. don't let the 0.9 distract you. 
I just have never renamed my build directory.

Regards,
Stefan

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to