Bug#750939: [pkg-fgfs-crew] Bug#750939: flightgear: Occasional deadlock when processing key input

2014-10-27 Thread Ludovic Brenta

Rebecca N. Palmer wrote:

With this, gdb --args fgfs --aircraft=b1900d --airport=NZNV and
pressing 'v' a few times reliably triggers it, allowing me to confirm
that the patch works.


Wow that was more than I hoped for.  Is there still a need for me to
test Markus' package?

Thanks both for everything!

--
Ludovic Brenta.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#750939: [pkg-fgfs-crew] Bug#750939: flightgear: Occasional deadlock when processing key input

2014-10-27 Thread Rebecca N. Palmer

Rebecca, do you think there is a way to trigger this bug with certainty?
Even if that means modifying the sources to create an artificial trigger
for the bug?


It happens when naGC_swapfree finds that the Nasal dead list is full, so 
we can make it more likely by reducing that limit:


Description: Make #750939 more likely for testing
--- simgear-3.0.0.orig/simgear/nasal/gc.c
+++ simgear-3.0.0/simgear/nasal/gc.c
@@ -328,7 +328,7 @@ void naGC_swapfree(void** target, void*
 void* old;
 LOCK();
 old = doswap(target, val);
-while(globals->ndead >= globals->deadsz)
+while(globals->ndead >= 5)
 bottleneck();
 globals->deadBlocks[globals->ndead++] = old;
 UNLOCK();

With this, gdb --args fgfs --aircraft=b1900d --airport=NZNV and pressing 
'v' a few times reliably triggers it, allowing me to confirm that the 
patch works.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#750939: flightgear: Occasional deadlock when processing key input

2014-10-27 Thread Markus Wanner
On 10/27/2014 11:26 AM, Ludovic Brenta wrote:
> Not until next weekend unfortunately, and then again I might not be able
> to compile everything needed and do the testing, for lack of available
> time.  If you provide precompiled .deb packages on some web site, that
> would expedite the testing; I could do some on evenings.

Sure, I can do that. Assuming all you need is an amd64 package.

> As this bug has only happened occasionally to me and I don't know what
> the trigger is, I cannot prove its absence even if I did the testing.

I'm not looking for a hard prove. Just the absence of it on a system
where it *did* occur, before. (As opposed to Rebecca's testing, who
couldn't ever reproduce the issue, before.)

Regards

Markus


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#750939: flightgear: Occasional deadlock when processing key input

2014-10-27 Thread Ludovic Brenta
Markus Wanner writes:
> On 10/24/2014 11:47 PM, Rebecca N. Palmer wrote:
>> If it is that, the attached should fix it, but since I've never had this
>> problem myself I can't test it.
>
> Could you please try this patch? I'd like to get some indication that
> it actually fixes the issue, before asking for a freeze exception.

Not until next weekend unfortunately, and then again I might not be able
to compile everything needed and do the testing, for lack of available
time.  If you provide precompiled .deb packages on some web site, that
would expedite the testing; I could do some on evenings.

As this bug has only happened occasionally to me and I don't know what
the trigger is, I cannot prove its absence even if I did the testing.
Rebecca, do you think there is a way to trigger this bug with certainty?
Even if that means modifying the sources to create an artificial trigger
for the bug?

-- 
Ludovic Brenta.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#750939: [pkg-fgfs-crew] Bug#750939: Bug #750939: flightgear: Occasional deadlock when processing key input

2014-10-27 Thread Markus Wanner
Ludovic,

On 10/24/2014 11:47 PM, Rebecca N. Palmer wrote:
> If it is that, the attached should fix it, but since I've never had this
> problem myself I can't test it.

Could you please try this patch? I'd like to get some indication that it
actually fixes the issue, before asking for a freeze exception.

Regards

Markus



signature.asc
Description: OpenPGP digital signature


Bug#750939: flightgear: Occasional deadlock when processing key input

2014-10-26 Thread Rebecca N. Palmer

Control: tags -1 upstream patch

I have now tried this patch, and while I can't tell if it fixes the 
problem (as I never had it), it at least doesn't appear to break 
anything else.


No comment from upstream on this particular patch, only a general 
concern that other multithreading bugs might exist (very possible, but 
not a reason not to fix this one).



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#750939: Bug #750939: flightgear: Occasional deadlock when processing key input

2014-10-24 Thread Rebecca N. Palmer
I think I know what's wrong here: it's not two actual threads waiting 
for each other, it's the inner and outer Nasal levels of thread 1, that 
think they're separate threads when they're not.


If it is that, the attached should fix it, but since I've never had this 
problem myself I can't test it.
Description: Fix hang in nested Nasal calls

naCall() increments Nasal's "active threads" count; as Nasal's garbage
collector first asks all other threads to stop and waits for them to
say they have, this can cause a hang when used in a function that was
itself called from Nasal (inner function's GC waiting for outer function
to say it has stopped, outer function waiting for inner function to return).

naCallMethodCtx() doesn't, to avoid exactly this problem.
(simgear simgear/nasal/nasal.h:108)

(Deliberately not changing NasalXMLVisitor: that already uses naSubContext,
another mechanism to do the same thing.)

Author: Rebecca Palmer
Bug-Debian: https://bugs.debian.org/750939

--- flightgear-3.0.0.orig/src/Scripting/NasalSys.cxx
+++ flightgear-3.0.0/src/Scripting/NasalSys.cxx
@@ -872,7 +872,7 @@ naRef FGNasalSys::wrappedPropsNode(SGPro
 naRef args[1];
 args[0] = propNodeGhost(aProps);
 naContext ctx = naNewContext();
-naRef wrapped = naCall(ctx, _wrappedNodeFunc, 1, args, naNil(), naNil());
+naRef wrapped = naCallMethodCtx(ctx, _wrappedNodeFunc, naNil(), 1, args, naNil());
 naFreeContext(ctx);
 return wrapped;
 }


Bug#750939: Bug #750939: flightgear: Occasional deadlock when processing key input

2014-06-20 Thread Ludovic Brenta
Happened again after I pressed 'x' multiple times; in a Seneca II.

When I attached the debugger, sound stopped; when I typed "cont" in the
debugger, sound resumed.  This suggests that thread 5 is not part of the
deadlock; but we already knew that, didn't we ? :)

-- 
Ludovic Brenta.

(gdb) thread apply all bt

Thread 7 (Thread 0x7f61d3f98700 (LWP 31715)):
#0  0x7f61dffc60b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f61df88329b in waitOnNotEmpty (this=0x3323b50) at 
/usr/src/simgear.git/simgear/threads/SGQueue.hxx:392
#2  simgear::SGTerraSync::SvnThread::runInternal (this=0x3323970) at 
/usr/src/simgear.git/simgear/scene/tsync/terrasync.cxx:651
#3  0x7f61df883535 in simgear::SGTerraSync::SvnThread::run (this=0x3323970) 
at /usr/src/simgear.git/simgear/scene/tsync/terrasync.cxx:474
#4  0x7f61df85feea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
#5  0x7f61dffc20ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#6  0x7f61daa65ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 6 (Thread 0x7f61d2c3e700 (LWP 31717)):
#0  0x7f61dffc60b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f61df7a7933 in (anonymous namespace)::Resolver::run (this=0x3446680) 
at /usr/src/simgear.git/simgear/io/raw_socket.cxx:168
#2  0x7f61df85feea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
#3  0x7f61dffc20ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#4  0x7f61daa65ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 5 (Thread 0x7f61c237e700 (LWP 31719)):
#0  0x7f61daa5ad5d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7f61c1888c26 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#2  0x7f61e0708be8 in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
#3  0x7f61e070054a in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
#4  0x7f61dffc20ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#5  0x7f61daa65ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7f61d7a07700 (LWP 31720)):
#0  0x7f61dffc60b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f61df79f5db in pop (this=0x26e9958) at 
/usr/src/simgear.git/simgear/threads/SGQueue.hxx:228
#2  LogStreamPrivate::run (this=0x26e9940) at 
/usr/src/simgear.git/simgear/debug/logstream.cxx:261
#3  0x7f61df85feea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
#4  0x7f61dffc20ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#5  0x7f61daa65ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7f61c0e4d700 (LWP 31721)):
#0  0x7f61dffc60b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f61dda8fd9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () 
from /usr/lib/libOpenThreads.so.14
#2  0x7f61defad5c8 in osgDB::DatabasePager::DatabaseThread::run() () from 
/usr/lib/libosgDB.so.99
#3  0x7f61dda8f82b in OpenThreads::ThreadPrivateActions::StartThread(void*) 
() from /usr/lib/libOpenThreads.so.14
#4  0x7f61dffc20ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#5  0x7f61daa65ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7f61bbfff700 (LWP 31722)):
#0  0x7f61dffc60b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f61dda8fd9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () 
from /usr/lib/libOpenThreads.so.14
#2  0x7f61defad5c8 in osgDB::DatabasePager::DatabaseThread::run() () from 
/usr/lib/libosgDB.so.99
#3  0x7f61dda8f82b in OpenThreads::ThreadPrivateActions::StartThread(void*) 
() from /usr/lib/libOpenThreads.so.14
#4  0x7f61dffc20ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#5  0x7f61daa65ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f61e0b227c0 (LWP 31708)):
#0  0x7f61dffc60b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f61df80452b in naSemDown (sh=0xa7a7260) at 
/usr/src/simgear.git/simgear/nasal/thread-posix.c:57
#2  0x7f61df7fb5af in bottleneck () at 
/usr/src/simgear.git/simgear/nasal/gc.c:111
#3  0x7f61df7fbb67 in naGC_swapfree (target=0x10ed6ab8, val=0x191c1bb0) at 
/usr/src/simgear.git/simgear/nasal/gc.c:332
#4  0x7f61df7fc189 in resize (hash=0x10ed6ab0) at 
/usr/src/simgear.git/simgear/nasal/hash.c:120
#5  0x7f61df7fc975 in naiHash_newsym (hash=, sym=0xd6fe8c8, 
val=val@entry=0x7fff96687d20) at /usr/src/simgear.git/simgear/nasal/hash.c:259
#6  0x7f61df7f57bf in setupArgs (ctx=ctx@entry=0xd853950, 
args=args@entry=0x7fff96687d20, nargs=nargs@entry=1, f=0xd853950, f=0

Bug#750939: Bug #750939: flightgear: Occasional deadlock when processing key input

2014-06-13 Thread Ludovic Brenta
And it happened again while I was in level flight in a Beechcraft 1900D:

(gdb) thread apply all bt full

Thread 7 (Thread 0x7fa2b8ccd700 (LWP 8911)):
#0  0x7fa2c4a730b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fa2c433029b in waitOnNotEmpty (this=0x2023080) at 
/usr/src/simgear.git/simgear/threads/SGQueue.hxx:392
No locals.
#2  simgear::SGTerraSync::SvnThread::runInternal (this=0x2022ea0) at 
/usr/src/simgear.git/simgear/scene/tsync/terrasync.cxx:651
anySlotBusy = false
#3  0x7fa2c4330535 in simgear::SGTerraSync::SvnThread::run (this=0x2022ea0) 
at /usr/src/simgear.git/simgear/scene/tsync/terrasync.cxx:474
No locals.
#4  0x7fa2c430ceea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = 
#5  0x7fa2c4a6f0ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#6  0x7fa2bf512ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 6 (Thread 0x7fa292251700 (LWP 8915)):
#0  0x7fa2bf507d5d in poll () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7fa2917abc26 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
No symbol table info available.
#2  0x7fa2c51b5be8 in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
No symbol table info available.
#3  0x7fa2c51ad54a in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
No symbol table info available.
#4  0x7fa2c4a6f0ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5  0x7fa2bf512ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 5 (Thread 0x7fa2bc4b4700 (LWP 8916)):
#0  0x7fa2c4a730b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fa2c424c5db in pop (this=0x1409958) at 
/usr/src/simgear.git/simgear/threads/SGQueue.hxx:228
No locals.
#2  LogStreamPrivate::run (this=0x1409940) at 
/usr/src/simgear.git/simgear/debug/logstream.cxx:261
entry = {debugClass = SG_ENVIRONMENT, debugPriority = SG_WARN, file = 
0xc7c960 "/tmp/buildd/flightgear-3.0.0/src/Environment/environment_mgr.cxx", 
line = 264, 
  message = }
#3  0x7fa2c430ceea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = 
#4  0x7fa2c4a6f0ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5  0x7fa2bf512ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 4 (Thread 0x7fa2900ad700 (LWP 8917)):
#0  0x7fa2c4a730b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fa2c4254933 in (anonymous namespace)::Resolver::run 
(this=0x7fa2b40008c0) at /usr/src/simgear.git/simgear/io/raw_socket.cxx:168
it = 
#2  0x7fa2c430ceea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = 
#3  0x7fa2c4a6f0ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#4  0x7fa2bf512ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 3 (Thread 0x7fa28f6a6700 (LWP 8918)):
#0  0x7fa2c4a730b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fa2c253cd9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () 
from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#2  0x7fa2c3a5a5c8 in osgDB::DatabasePager::DatabaseThread::run() () from 
/usr/lib/libosgDB.so.99
No symbol table info available.
#3  0x7fa2c253c82b in OpenThreads::ThreadPrivateActions::StartThread(void*) 
() from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#4  0x7fa2c4a6f0ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5  0x7fa2bf512ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7fa28eea5700 (LWP 8919)):
#0  0x7fa2c4a730b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fa2c253cd9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () 
from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#2  0x7fa2c3a5a5c8 in osgDB::DatabasePager::DatabaseThread::run() () from 
/usr/lib/libosgDB.so.99
No symbol table info available.
#3  0x7fa2c253c82b in OpenThreads::ThreadPrivateActions::StartThread(void*) 
() from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#4  0x7fa2c4a6f0ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symb

Bug#750939: flightgear: Occasional deadlock when processing key input

2014-06-12 Thread Ludovic Brenta
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  0x7fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fbb5ac6229b 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  0x7fbb5ac62535 in simgear::SGTerraSync::SvnThread::run (this=0x3a0a6b0) 
at /usr/src/simgear.git/simgear/scene/tsync/terrasync.cxx:474
No locals.
#4  0x7fbb5ac3eeea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = 
#5  0x7fbb5b3a10ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#6  0x7fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 6 (Thread 0x7fbb52de6700 (LWP 5546)):
#0  0x7fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fbb5ab7e5db 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  0x7fbb5ac3eeea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = 
#4  0x7fbb5b3a10ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5  0x7fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 5 (Thread 0x7fbb3c03b700 (LWP 5547)):
#0  0x7fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fbb5ab86933 in (anonymous namespace)::Resolver::run 
(this=0x7fbb4800aff0) at /usr/src/simgear.git/simgear/io/raw_socket.cxx:168
it = 
#2  0x7fbb5ac3eeea in SGThread::PrivateData::start_routine (data=) at /usr/src/simgear.git/simgear/threads/SGThread.cxx:204
thread = 
#3  0x7fbb5b3a10ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#4  0x7fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 4 (Thread 0x7fbb3b621700 (LWP 5548)):
#0  0x7fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fbb58e6ed9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () 
from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#2  0x7fbb5a38c5c8 in osgDB::DatabasePager::DatabaseThread::run() () from 
/usr/lib/libosgDB.so.99
No symbol table info available.
#3  0x7fbb58e6e82b in OpenThreads::ThreadPrivateActions::StartThread(void*) 
() from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#4  0x7fbb5b3a10ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5  0x7fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 3 (Thread 0x7fbb3ae20700 (LWP 5549)):
#0  0x7fbb5b3a50b0 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x7fbb58e6ed9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () 
from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#2  0x7fbb5a38c5c8 in osgDB::DatabasePager::DatabaseThread::run() () from 
/usr/lib/libosgDB.so.99
No symbol table info available.
#3  0x7fbb58e6e82b in OpenThreads::ThreadPrivateActions::StartThread(void*) 
() from /usr/lib/libOpenThreads.so.14
No symbol table info available.
#4  0x7fbb5b3a10ca in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#5  0x7fbb55e44ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7fbb3dcf4700 (LWP 5603)):
#0  0x7fbb55e39d5d in poll () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1

Bug#750939: [pkg-fgfs-crew] Bug#750939: flightgear: Occasional deadlock when processing key input

2014-06-10 Thread Rebecca N. Palmer
A quick test with --aircraft=b1900d --airport=EDDR and cycling through 
the views didn't reproduce this, but given its intermittent nature that 
doesn't prove anything.


Please install the debug symbols (apt-get install 
libsimgearcore3.0.0-dbg libsimgearscene3.0.0-dbg) and re-run your trace 
with "thread apply all bt full".



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#750939: flightgear: Occasional deadlock when processing key input

2014-06-08 Thread Ludovic Brenta
Package: flightgear
Version: 3.0.0-2
Severity: important

On several occasions while flying the Beechcraft 1900D, FlightGear
entered a deadlock; the screen would no longer refresh, CPU usage would
drop to 0% and FlightGear would no longer respond to any input.  I
attached a debugger and found this:

(gdb) thread apply all bt

Thread 6 (Thread 0x7f4ee3838700 (LWP 20382)):
#0  0x7f4eef5e103f in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f49e29b in simgear::SGTerraSync::SvnThread::runInternal() () 
from /usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#2  0x7f49e535 in simgear::SGTerraSync::SvnThread::run() () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#3  0x7f47aeea in SGThread::PrivateData::start_routine(void*) () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#4  0x7f4eef5dd062 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#5  0x7f4eea07dc1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 5 (Thread 0x7f4ebd046700 (LWP 20386)):
#0  0x7f4eea07290d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7f4ebc5a0c26 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#2  0x7f4eefd23be8 in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
#3  0x7f4eefd1b54a in ?? () from /usr/lib/x86_64-linux-gnu/libopenal.so.1
#4  0x7f4eef5dd062 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#5  0x7f4eea07dc1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7f4ee701f700 (LWP 20387)):
#0  0x7f4eef5e103f in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f4eeedba5db in LogStreamPrivate::run() () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#2  0x7f47aeea in SGThread::PrivateData::start_routine(void*) () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#3  0x7f4eef5dd062 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#4  0x7f4eea07dc1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7f4ebb4a1700 (LWP 20388)):
#0  0x7f4eef5e103f in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f4eed0aad9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () 
from /usr/lib/libOpenThreads.so.14
#2  0x7f4eee5c85c8 in osgDB::DatabasePager::DatabaseThread::run() () from 
/usr/lib/libosgDB.so.99
#3  0x7f4eed0aa82b in OpenThreads::ThreadPrivateActions::StartThread(void*) 
() from /usr/lib/libOpenThreads.so.14
#4  0x7f4eef5dd062 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#5  0x7f4eea07dc1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7f4ebaca0700 (LWP 20389)):
#0  0x7f4eef5e103f in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f4eed0aad9e in OpenThreads::Condition::wait(OpenThreads::Mutex*) () 
from /usr/lib/libOpenThreads.so.14
#2  0x7f4eee5c85c8 in osgDB::DatabasePager::DatabaseThread::run() () from 
/usr/lib/libosgDB.so.99
#3  0x7f4eed0aa82b in OpenThreads::ThreadPrivateActions::StartThread(void*) 
() from /usr/lib/libOpenThreads.so.14
#4  0x7f4eef5dd062 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#5  0x7f4eea07dc1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f4ef013c7c0 (LWP 20375)):
#0  0x7f4eef5e103f in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x7f41f52b in naSemDown () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#2  0x7f4165af in ?? () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#3  0x7f416b67 in naGC_swapfree () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#4  0x7f417189 in ?? () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#5  0x7f4172da in naHash_set () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#6  0x7f411ddd in ?? () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#7  0x7f413bc0 in naCall () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#8  0x00919f3a in FGNasalSys::wrappedPropsNode(SGPropertyNode*) ()
#9  0x0092013d in NasalCommand::operator()(SGPropertyNode const*) ()
#10 0x7f46dade in SGCommandMgr::execute(std::string const&, 
SGPropertyNode const*) const () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#11 0x0091bd68 in ?? ()
#12 0x7f4112ad in ?? () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#13 0x7f41241c in ?? () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#14 0x7f413bc0 in naCall () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#15 0x7f413e60 in naCallMethodCtx () from 
/usr/lib/x86_64-linux-gnu/libSimGearCore.so.3.0.0
#16 0x00919d59 in FGNasalSys::callWithContext(Context*, naRef, int, 
naRef*, naRef) ()
#17 0x0091b5d9 in F