Bug#763821: [pkg-fgfs-crew] Bug#763821: FlightGear can't load any data and gets Segmentation fault
Please do not close it right now, because I experienced another crash with Segmentation Fault when I do a long distance flight from VHHH to RJGG. Here is the information, including gdb: First of all, I used this command to start the fgfs: $ OSG_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu fgfs --fg-root=/usr/share/games/flightgear --fg-scenery=/usr/share/games/flightgear/Scenery --fg-aircraft=/home/qs/flightgear-aircraft --airport=VHHH --runway=25L --aircraft=A330-243 --control=joystick --enable-random-objects --enable-horizon-effect --enable-enhanced-lighting --disable-ai-models --disable-ai-traffic --enable-real-weather-fetch --enable-clouds3d --prop:/sim/rendering/texture-compression=off --prop:/sim/frame-rate-throttle-hz=60 --prop:/sim/menubar/autovisibility/enabled=1 --bpp=32 --timeofday=morning --enable-terrasync --disable-fgcom After about half an hour of flying, it crashed with segmentation fault. Then I used gdb to backtrack: $ OSG_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu gdb fgfs (gdb) run --fg-root=/usr/share/games/flightgear --fg-scenery=/usr/share/games/flightgear/Scenery --fg-aircraft=/home/qs/flightgear-aircraft --airport=VHHH --runway=25L --aircraft=A330-243 --control=joystick --enable-random-objects --enable-horizon-effect --enable-enhanced-lighting --disable-ai-models --disable-ai-traffic --enable-real-weather-fetch --enable-clouds3d --prop:/sim/rendering/texture-compression=off --prop:/sim/frame-rate-throttle-hz=60 --prop:/sim/menubar/autovisibility/enabled=1 --bpp=32 --timeofday=morning --enable-terrasync --disable-fgcom Then it crashed, and this is the backtrack: Program received signal SIGSEGV, Segmentation fault. compare (__str=..., this=optimized out) at /usr/include/c++/4.9/bits/basic_string.h:2246 2246const size_type __size = this-size(); (gdb) thread apply all bt full Thread 16 (Thread 0x7fffc24b5700 (LWP 27612)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 No locals. #1 0x74e77fee in OpenThreads::Condition::wait(OpenThreads::Mutex*) () from /usr/lib/x86_64-linux-gnu/libOpenThreads.so.20 No symbol table info available. #2 0x763de21c in osgDB::DatabasePager::DatabaseThread::run() () from /usr/lib/x86_64-linux-gnu/libosgDB.so.100 No symbol table info available. #3 0x74e77a28 in OpenThreads::ThreadPrivateActions::StartThread(void*) () from /usr/lib/x86_64-linux-gnu/libOpenThreads.so.20 No symbol table info available. #4 0x7745f0a4 in start_thread (arg=0x7fffc24b5700) at pthread_create.c:309 __res = optimized out pd = 0x7fffc24b5700 now = optimized out unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736453105408, -619917726757949442, 1, 140737354125408, 21733136, 140736453105408, 619834880529788926, 619933892828590078}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, ---Type return to continue, or q return to quit--- data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = optimized out pagesize_m1 = optimized out sp = optimized out freesize = optimized out __PRETTY_FUNCTION__ = start_thread #5 0x71e39c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 No locals. Thread 15 (Thread 0x7fffc2cb6700 (LWP 27611)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 No locals. #1 0x74e77fee in OpenThreads::Condition::wait(OpenThreads::Mutex*) () from /usr/lib/x86_64-linux-gnu/libOpenThreads.so.20 No symbol table info available. #2 0x763de21c in osgDB::DatabasePager::DatabaseThread::run() () from /usr/lib/x86_64-linux-gnu/libosgDB.so.100 No symbol table info available. #3 0x74e77a28 in OpenThreads::ThreadPrivateActions::StartThread(void*) () from /usr/lib/x86_64-linux-gnu/libOpenThreads.so.20 No symbol table info available. ---Type return to continue, or q return to quit--- #4 0x7745f0a4 in start_thread (arg=0x7fffc2cb6700) at pthread_create.c:309 __res = optimized out pd = 0x7fffc2cb6700 now = optimized out unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736461498112, -619917726757949442, 1, 140737354125408, 21733136, 140736461498112, 619835979504545790, 619933892828590078}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = optimized out pagesize_m1 = optimized out sp = optimized out freesize = optimized out __PRETTY_FUNCTION__ = start_thread #5 0x71e39c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 No locals. Thread 14 (Thread 0x7fffee948700 (LWP 27610)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at
Bug#763821: [pkg-fgfs-crew] Bug#763821: FlightGear can't load any data and gets Segmentation fault
The underlying bug has now been fixed in unstable, and this fix should reach testing in 5-10 days; you can either use the environment variable workaround until then, or install the fixed libopenscenegraph100 from unstable ( https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_tracking_literal_testing_literal_with_some_packages_from_literal_unstable_literal ). Are the unable to load messages gone as well? If so, I agree that this bug should be closed. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#763821: [pkg-fgfs-crew] Bug#763821: FlightGear can't load any data and gets Segmentation fault
Please install the debugging symbols and run a backtrace, as follows: $ sudo apt-get install libsimgearcore3.0.0-dbg libsimgearscene3.0.0-dbg gdb $ gdb fgfs (gdb) run [wait for crash] (gdb) thread apply all bt full Is it possible that you're running out of memory? Given that you have TerraSync enabled (which is higher resolution than the built-in scenery), expect to use around 2.5GB. The 'not found' errors suggest an incomplete Terrasync download (terrain but not the objects that go with it), but I don't know if they're related to the crash; does $ fgfs --disable-terrasync load successfully? If it does, try turning Terrasync back on via the tick box under File Scenery Download and waiting for it to finish (~200MB, Information shows status), then closing and restarting FlightGear. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#763821: [pkg-fgfs-crew] Bug#763821: FlightGear can't load any data and gets Segmentation fault
Hi, Thank you for your reply. Yes, after disable the terrasync, it would not crash anymore. The crash is possibly related to the terrasync, but it is impossible caused by running out of memory. This computer has 8gb memory. The most importantly, the objects still cannot be loaded. Here is the debug backtrack information: (gdb) thread apply all bt full Thread 17 (Thread 0x7fffee948700 (LWP 17915)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 No locals. #1 0x76bee2eb in pop (this=0x115bba8) at /build/simgear-cdeqyX/simgear-3.0.0/simgear/threads/SGQueue.hxx:228 No locals. #2 LogStreamPrivate::run (this=0x115bb90) at /build/simgear-cdeqyX/simgear-3.0.0/simgear/debug/logstream.cxx:261 entry = {debugClass = SG_GENERAL, debugPriority = SG_INFO, file = 0x771d4348 /build/simgear-cdeqyX/simgear-3.0.0/simgear/scene/material/matlib.cxx, line = 159, message = SGMaterialLib::~SGMaterialLib() size=284\000\000\000\000\000\000\000\000!\001\000\000\000\000\000\000\260\066\177\002\000\000\000\000`U5\001\000\000\000\000\020\235\a\365\377\177\000\000\320]5\001, '\000' repeats 12 times, \220\234\a\365\377\177\000\000\020^5\001\000\000\000\000\001, '\000' repeats 11 times, \005\000\000\000\003, '\000' repeats 15 times, \006\000\000\000\377\377\377\377\000\000\000\000\000\000\000\000\261\000\000\000\000\000\000\000\240E=\001\000\000\000\000\060\\5\001, '\000' repeats 12 times, \377\377\377\377\000\000\000\000...} #3 0x76cb76ba in SGThread::PrivateData::start_routine ( data=optimized out) ---Type return to continue, or q return to quit--- at /build/simgear-cdeqyX/simgear-3.0.0/simgear/threads/SGThread.cxx:204 thread = optimized out #4 0x7745f0a4 in start_thread (arg=0x7fffee948700) at pthread_create.c:309 __res = optimized out pd = 0x7fffee948700 now = optimized out unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737196099328, -6069302863538622369, 1, 18203328, 20, 140737196099328, 6069264719863410783, 6069286284442923103}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = optimized out pagesize_m1 = optimized out sp = optimized out freesize = optimized out __PRETTY_FUNCTION__ = start_thread #5 0x71e39c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 No locals. Thread 1 (Thread 0x77fb5880 (LWP 17855)): #0 0x08429b50 in ?? () ---Type return to continue, or q return to quit--- No symbol table info available. #1 0x75277510 in osg::StateAttribute::removeParent(osg::StateSet*) () from /usr/lib/x86_64-linux-gnu/libosg.so.100 No symbol table info available. #2 0x7528a964 in osg::StateSet::clear() () from /usr/lib/x86_64-linux-gnu/libosg.so.100 No symbol table info available. #3 0x7528ab9e in osg::StateSet::~StateSet() () from /usr/lib/x86_64-linux-gnu/libosg.so.100 No symbol table info available. #4 0x7528ae39 in osg::StateSet::~StateSet() () from /usr/lib/x86_64-linux-gnu/libosg.so.100 No symbol table info available. #5 0x771622df in unref (this=optimized out) at /usr/include/osg/Referenced:198 this = optimized out #6 ~ref_ptr (this=0x1139c98, __in_chrg=optimized out) at /usr/include/osg/ref_ptr:35 No locals. #7 ~GroundLightManager (this=0x1139c80, __in_chrg=optimized out, __vtt_parm=optimized out) at /build/simgear-cdeqyX/simgear-3.0.0/simgear/scene/tgdb/GroundLightManager.hxx:32 ---Type return to continue, or q return to quit--- No locals. #8 simgear::GroundLightManager::~GroundLightManager (this=0x1139c80, __in_chrg=optimized out, __vtt_parm=optimized out) at /build/simgear-cdeqyX/simgear-3.0.0/simgear/scene/tgdb/GroundLightManager.hxx:32 No locals. #9 0x71d8bb39 in __run_exit_handlers (status=0, listp=0x720f65a8 __exit_funcs, run_list_atexit=run_list_atexit@entry=true) at exit.c:82 atfct = optimized out onfct = optimized out cxafct = optimized out f = optimized out #10 0x71d8bb85 in __GI_exit (status=optimized out) at exit.c:104 No locals. #11 0x71d75b4c in __libc_start_main (main=0x59ffd0 main, argc=1, argv=0x7fffe2f8, init=optimized out, fini=optimized out, rtld_fini=optimized out, stack_end=0x7fffe2e8) at libc-start.c:321 result = optimized out unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -6069302863538622369, 6004839, 140737488347888, 0, 0, 6069302862553608287, 6069271876255805535}, mask_was_saved = 0}}, priv = {pad = { 0x0, 0x0, 0xd4bf40 __libc_csu_init, 0x7fffe2f8}, data = { ---Type return to continue, or q return to quit--- prev = 0x0, cleanup = 0x0, canceltype =
Bug#763821: [pkg-fgfs-crew] Bug#763821: FlightGear can't load any data and gets Segmentation fault
Hi, experiencing similar problem, it looks to be related to the bug in libopenscenegraph100: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763816 (temporary fix: OSG_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ works for me) Cheers, Pavel -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org