[pkg-fgfs-crew] Bug#750939: flightgear: Occasional deadlock when processing key input
Ludovic Brenta
ludovic at ludovic-brenta.org
Thu Jun 12 21:24:02 UTC 2014
The deadlock occurred again on me after I crashed a SenecaII in the sea
west of New Zealand; since the deadlock occurred with a Beechcraft 1900D
before, the aircraft type seems not to be the culprit. Also I was not
cycling through views when the deadlock occurred; I pressed another key
which I don't remember. The stack trace from thread #1 is surprisingly
similar to the one I posted earlier, though; the other stack traces are
all similar too.
Full backtraces with the -dbg packages that you suggested:
(gdb) thread apply all bt full
Thread 7 (Thread 0x7fbb4f5ff700 (LWP 5541)):
#0 0x00007fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1 0x00007fbb5ac6229b in waitOnNotEmpty (this=0x3a0a890) at /usr/src/simgear.git/simgear/threads/SGQueue.hxx:392
No locals.
#2 simgear::SGTerraSync::SvnThread::runInternal (this=0x3a0a6b0) at /usr/src/simgear.git/simgear/scene/tsync/terrasync.cxx:651
anySlotBusy = false
#3 0x00007fbb5ac62535 in simgear::SGTerraSync::SvnThread::run (this=0x3a0a6b0) at /usr/src/simgear.git/simgear/scene/tsync/terrasync.cxx:474
No locals.
#4 0x00007fbb5ac3eeea in SGThread::PrivateData::start_routine (data=<optimized out>) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = <optimized out>
#5 0x00007fbb5b3a10ca in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#6 0x00007fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 6 (Thread 0x7fbb52de6700 (LWP 5546)):
#0 0x00007fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1 0x00007fbb5ab7e5db in pop (this=0x2dda958) at /usr/src/simgear.git/simgear/threads/SGQueue.hxx:228
No locals.
#2 LogStreamPrivate::run (this=0x2dda940) at /usr/src/simgear.git/simgear/debug/logstream.cxx:261
entry = {debugClass = SG_FLIGHT, debugPriority = SG_INFO, file = 0xccd130 "/tmp/buildd/flightgear-3.0.0/src/FDM/JSBSim/JSBSim.cxx", line = 541, message = "\340\002"}
#3 0x00007fbb5ac3eeea in SGThread::PrivateData::start_routine (data=<optimized out>) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = <optimized out>
#4 0x00007fbb5b3a10ca in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5 0x00007fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 5 (Thread 0x7fbb3c03b700 (LWP 5547)):
#0 0x00007fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1 0x00007fbb5ab86933 in (anonymous namespace)::Resolver::run (this=0x7fbb4800aff0) at /usr/src/simgear.git/simgear/io/raw_socket.cxx:168
it = <optimized out>
#2 0x00007fbb5ac3eeea in SGThread::PrivateData::start_routine (data=<optimized out>) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = <optimized out>
#3 0x00007fbb5b3a10ca in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#4 0x00007fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 4 (Thread 0x7fbb3b621700 (LWP 5548)):
#0 0x00007fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1 0x00007fbb58e6ed9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#2 0x00007fbb5a38c5c8 in osgDB::DatabasePager::DatabaseThread::run() () from /usr/lib/libosgDB.so.99
No symbol table info available.
#3 0x00007fbb58e6e82b in OpenThreads::ThreadPrivateActions::StartThread(void*) () from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#4 0x00007fbb5b3a10ca in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5 0x00007fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 3 (Thread 0x7fbb3ae20700 (LWP 5549)):
#0 0x00007fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1 0x00007fbb58e6ed9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#2 0x00007fbb5a38c5c8 in osgDB::DatabasePager::DatabaseThread::run() () from /usr/lib/libosgDB.so.99
No symbol table info available.
#3 0x00007fbb58e6e82b in OpenThreads::ThreadPrivateActions::StartThread(void*) () from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#4 0x00007fbb5b3a10ca in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5 0x00007fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 2 (Thread 0x7fbb3dcf4700 (LWP 5603)):
#0 0x00007fbb55e39d5d in poll () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007fbb3d24ec26 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
No symbol table info available.
#2 0x00007fbb5bae7be8 in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
No symbol table info available.
#3 0x00007fbb5badf54a in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
No symbol table info available.
#4 0x00007fbb5b3a10ca in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5 0x00007fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
Thread 1 (Thread 0x7fbb5bf017c0 (LWP 5534)):
#0 0x00007fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1 0x00007fbb5abe352b in naSemDown (sh=0xaa971d0) at /usr/src/simgear.git/simgear/nasal/thread-posix.c:57
sem = 0xaa971d0
#2 0x00007fbb5abda5af in bottleneck () at /usr/src/simgear.git/simgear/nasal/gc.c:111
g = 0xaa96ed0
#3 0x00007fbb5abdab67 in naGC_swapfree (target=0xf480f88, val=0x1416a0d0) at /usr/src/simgear.git/simgear/nasal/gc.c:332
old = 0x1416a090
#4 0x00007fbb5abdb189 in resize (hash=0xf480f80) at /usr/src/simgear.git/simgear/nasal/hash.c:120
hr = 0x1416a090
hr2 = 0x1416a0d0
i = <optimized out>
lgsz = <optimized out>
#5 0x00007fbb5abdb2da in naHash_set (hash=..., key=..., val=...) at /usr/src/simgear.git/simgear/nasal/hash.c:142
hr = <optimized out>
#6 0x00007fbb5abd5ddd in run (ctx=ctx at entry=0xe505bd0) at /usr/src/simgear.git/simgear/nasal/code.c:639
f = 0xe505bd0
cd = 0xe394520
op = 37
arg = <optimized out>
a = <optimized out>
b = {num = -nan(0xf00000e500790), ptr = 0xffff00000e500790}
#7 0x00007fbb5abd7bc0 in naCall (ctx=0xe505bd0, func=..., argc=1, args=0x7fff2aefc140, obj=..., locals=...) at /usr/src/simgear.git/simgear/nasal/code.c:904
i = <optimized out>
result = <optimized out>
#8 0x0000000000919f3a in FGNasalSys::wrappedPropsNode(SGPropertyNode*) ()
No symbol table info available.
#9 0x000000000092013d in NasalCommand::operator()(SGPropertyNode const*) ()
No symbol table info available.
#10 0x00007fbb5ac31ade in SGCommandMgr::execute (this=<optimized out>, name="show-message", arg=0x1418bc50) at /usr/src/simgear.git/simgear/structure/commands.cxx:89
command = <optimized out>
#11 0x000000000091bd68 in ?? ()
No symbol table info available.
#12 0x00007fbb5abd52ad in setupFuncall (ctx=ctx at entry=0xabf90e0, nargs=2, mcall=mcall at entry=0, named=named at entry=0) at /usr/src/simgear.git/simgear/nasal/code.c:319
ccode = <optimized out>
result = <optimized out>
args = 0xabf9cf0
func = {num = -nan(0xf00000b4feca0), ptr = 0xffff00000b4feca0}
code = <optimized out>
obj = <optimized out>
f = <optimized out>
opf = <optimized out>
#13 0x00007fbb5abd641c in run (ctx=ctx at entry=0xabf90e0) at /usr/src/simgear.git/simgear/nasal/code.c:716
f = 0xabf9128
cd = 0xe416bf0
op = 18
arg = <optimized out>
a = <optimized out>
b = {num = -nan(0xf00000e500808), ptr = 0xffff00000e500808}
#14 0x00007fbb5abd7bc0 in naCall (ctx=ctx at entry=0xabf90e0, func=..., argc=argc at entry=0, args=0x0, obj=..., locals=...) at /usr/src/simgear.git/simgear/nasal/code.c:904
i = <optimized out>
result = <optimized out>
#15 0x00007fbb5abd7e60 in naCallMethodCtx (ctx=0xabf90e0, code=..., self=..., argc=0, args=<optimized out>, locals=...) at /usr/src/simgear.git/simgear/nasal/code.c:975
result = <optimized out>
#16 0x0000000000919d59 in FGNasalSys::callWithContext(Context*, naRef, int, naRef*, naRef) ()
No symbol table info available.
#17 0x000000000091b5d9 in FGNasalSys::handleCommand(char const*, char const*, char const*, SGPropertyNode const*) ()
No symbol table info available.
#18 0x0000000000919617 in FGNasalSys::handleCommand(SGPropertyNode const*) ()
No symbol table info available.
#19 0x00007fbb5ac093bb in SGBinding::innerFire (this=0xe678d80) at /usr/src/simgear.git/simgear/structure/SGBinding.cxx:92
No locals.
#20 0x00007fbb5ac09ed9 in SGBinding::fire (this=<optimized out>, params=params at entry=0x0) at /usr/src/simgear.git/simgear/structure/SGBinding.cxx:111
No locals.
#21 0x00007fbb5ac09f47 in fireBindingList (aBindings=..., params=0x0) at /usr/src/simgear.git/simgear/structure/SGBinding.cxx:140
b = {_ptr = 0xe678d80}
_foreach_continue139 = false
_foreach_col139 = @0x7fff2aefc8d0: {<No data fields>}
#22 0x00000000007489d1 in FGKeyboardInput::doKey(int, int, int, int) ()
No symbol table info available.
#23 0x0000000000acec18 in flightgear::FGEventHandler::handle(osgGA::GUIEventAdapter const&, osgGA::GUIActionAdapter&) ()
No symbol table info available.
#24 0x00007fbb5986da77 in osgViewer::Viewer::eventTraversal() () from /usr/lib/libosgViewer.so.99
No symbol table info available.
#25 0x00007fbb5986f219 in osgViewer::ViewerBase::frame(double) () from /usr/lib/libosgViewer.so.99
No symbol table info available.
#26 0x0000000000ad3eaa in fgOSMainLoop() ()
No symbol table info available.
#27 0x00000000005e150c in fgMainInit(int, char**) ()
No symbol table info available.
#28 0x00000000005a43f1 in main ()
No symbol table info available.
(gdb)
--
Ludovic Brenta.
More information about the pkg-fgfs-crew
mailing list