Hi

I updated this morning, two hours ago, and I am still getting crashes on exit. See the stacktrace below (AI is in lines 22 and 23).
Could this be some kind of race condition?
I should perhaps mention I have the mulithread property set in preferences.xml: <multithreading-mode>AutomaticSelection</multithreading-mode>



Program terminated with signal 6, Aborted.
#0  0x00007f2cdc84fa75 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00007f2cdc84fa75 in raise () from /lib/libc.so.6
#1  0x00007f2cdc8535c0 in abort () from /lib/libc.so.6
#2  0x00007f2cdc8894fb in ?? () from /lib/libc.so.6
#3  0x00007f2cdc8935b6 in ?? () from /lib/libc.so.6
#4  0x00007f2cdc899e83 in free () from /lib/libc.so.6
#5 0x0000000000bb5b56 in SGTimerQueue::growArray (this=0x130ba50) at event_mgr.cxx:182 #6 0x0000000000bb56b5 in SGTimerQueue::insert (this=0x130ba50, timer=0x7f2cb2737af0, time=9.9999999999999995e-07) at event_mgr.cxx:108 #7 0x0000000000bb505f in SGEventMgr::add (this=0x130ba00, name=..., cb=0x7f2cb2723c90, interval=0, delay=9.9999999999999995e-07, repeat=false,
    simtime=true) at event_mgr.cxx:24
#8 0x000000000091aff3 in SGEventMgr::addEvent<FGNasalSys::NasalTimer*, void (FGNasalSys::NasalTimer::*)()> (this=0x130ba00, name=..., o...@0x7fff1cad80f8, m=&virtual FGNasalSys::NasalTimer::timerExpired(), delay=0, sim=true) at /home/mifi/Software/Sources/fgfs11/install/simgear/include/simgear/structure/event_mgr.hxx:113 #9 0x00000000009185a9 in FGNasalSys::setTimer (this=0x7f2cc1fecf50, c=0x7f2cc6a3e5b0, argc=2, args=0x7f2cc6a3f1c0) at NasalSys.cxx:956 #10 0x0000000000914efc in f_settimer (c=0x7f2cc6a3e5b0, me=..., argc=2, args=0x7f2cc6a3f1c0) at NasalSys.cxx:286 #11 0x0000000000b8f8a9 in setupFuncall (ctx=0x7f2cc6a3e5b0, nargs=<value optimized out>, mcall=0, named=0) at code.c:316
#12 0x0000000000b8fd56 in run (ctx=0x7f2cc6a3e5b0) at code.c:682
#13 0x0000000000b917b8 in naCall (ctx=<value optimized out>, func=..., argc=<value optimized out>, args=<value optimized out>, obj=..., locals=...)
    at code.c:846
#14 0x0000000000913ebb in FGNasalSys::call (this=0x7f2cc1fecf50, code=..., argc=4, args=0x7fff1cad83a0, locals=...) at NasalSys.cxx:92 #15 0x0000000000919398 in FGNasalListener::call (this=0x7f2cc20b7be0, which=0x7f2cc20b7ad0, mode=...) at NasalSys.cxx:1084 #16 0x0000000000919463 in FGNasalListener::valueChanged (this=0x7f2cc20b7be0, node=0x7f2cc20b7ad0) at NasalSys.cxx:1092 #17 0x0000000000b72df8 in SGPropertyNode::fireValueChanged (this=0x7f2cc20b7ad0, node=0x7f2cc20b7ad0) at props.cxx:2107 #18 0x0000000000b72d45 in SGPropertyNode::fireValueChanged (this=0x7f2cc20b7ad0) at props.cxx:2087
---Type <return> to continue, or q <return> to quit---
#19 0x0000000000b7557e in SGPropertyNode::set_string (this=0x7f2cc20b7ad0, val=0x7f2cb2cfa808 "/ai[0]/models[0]/aircraft[13]") at props.cxx:509 #20 0x0000000000b716a2 in SGPropertyNode::setStringValue (this=0x7f2cc20b7ad0, value=0x7f2cb2cfa808 "/ai[0]/models[0]/aircraft[13]") at props.cxx:1506 #21 0x000000000045a6e8 in SGPropertyNode::setStringValue (this=0x7f2cc20b7ad0, value=...) at /home/mifi/Software/Sources/fgfs11/install/simgear/include/simgear/props/props.hxx:1208 #22 0x000000000096db21 in ~FGAIBase (this=0x7f2cc2248910, __in_chrg=<value optimized out>) at AIBase.cxx:135 #23 0x000000000097318f in ~FGAIAircraft (this=0x7f2cc2248910, __in_chrg=<value optimized out>) at AIAircraft.cxx:97
#24 0x0000000000967756 in SGSharedPtr<FGAIBase>::put (this=0x7f2cc2247110)
at /home/mifi/Software/Sources/fgfs11/install/simgear/include/simgear/structure/SGSharedPtr.hxx:107 #25 0x000000000096769e in ~SGSharedPtr (this=0x7f2cc2247110, __in_chrg=<value optimized out>) at /home/mifi/Software/Sources/fgfs11/install/simgear/include/simgear/structure/SGSharedPtr.hxx:61 #26 0x0000000000967256 in __gnu_cxx::new_allocator<SGSharedPtr<FGAIBase> >::destroy (this=0x7fff1cad875f, __p=0x7f2cc2247110)
    at /usr/include/c++/4.4/ext/new_allocator.h:115
#27 0x0000000000966a9b in std::_List_base<SGSharedPtr<FGAIBase>, std::allocator<SGSharedPtr<FGAIBase> > >::_M_clear (this=0x7f2cd33a2dc0)
    at /usr/include/c++/4.4/bits/list.tcc:76
#28 0x00000000009664dd in ~_List_base (this=0x7f2cd33a2dc0, __in_chrg=<value optimized out>) at /usr/include/c++/4.4/bits/stl_list.h:360 #29 0x00000000009663b6 in ~list (this=0x7f2cd33a2dc0, __in_chrg=<value optimized out>) at /usr/include/c++/4.4/bits/stl_list.h:418 #30 0x00000000009609dc in ~FGSubmodelMgr (this=0x7f2cd33a2af0, __in_chrg=<value optimized out>) at submodel.cxx:44 #31 0x0000000000bb7802 in ~Member (this=0x7f2cd3d98680, __in_chrg=<value optimized out>) at subsystem_mgr.cxx:323 #32 0x0000000000bb67b7 in ~SGSubsystemGroup (this=0x130adc8, __in_chrg=<value optimized out>) at subsystem_mgr.cxx:119 #33 0x0000000000bb81c5 in ~SGSubsystemMgr (this=0x130acb0, __in_chrg=<value optimized out>) at subsystem_mgr.cxx:393 #34 0x00000000004687d0 in ~FGGlobals (this=0x1309c90, __in_chrg=<value optimized out>) at globals.cxx:173 #35 0x00000000004336de in fgMainInit (argc=35, argv=0x7fff1cad8ad8) at main.cxx:606 #36 0x0000000000430aae in main (argc=35, argv=0x7fff1cad8ad8) at bootstrap.cxx:243

Op 23-10-10 20:11, James Turner schreef:

I discovered a problem in this area, and pushed a fix:

        
http://gitorious.org/fg/flightgear/commit/957a59e57a7be92fd64a0c1278a6f04d0f31d327

However, I'm not sure it would ever have caused the kind of crash you reported. 
Please update, and keep an eye for the crash - if you get them, post the 
backtrace. naturally if anyone else sees a similar crash on shutdown, 
mentioning the AI manager, please speak up.

(I'd love to see a valgrind run of the relevant code, but I suspect it will be 
painful to generate the data, if the crash is intermittent)

James


m

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to