Menu

#2214 SIGSEGV SGWeakReferenced::put

None
New
nobody
Low
2020-04-22
2020-04-21
merspieler
No

Thread 1 "fgfs" received signal SIGSEGV, Segmentation fault.
SGWeakReferenced::put (ref=0x746ebec7f66ce3a4) at /games/flightgear-new/install/simgear/include/simgear/structure/SGWeakReferenced.hxx:80
80 { if (ref) return --(ref->mWeakData->mRefcount); else return 0; }
(gdb) bt full

0 SGWeakReferenced::put (ref=0x746ebec7f66ce3a4) at /games/flightgear-new/install/simgear/include/simgear/structure/SGWeakReferenced.hxx:80

No locals.

1 nasal::shared_ptr_storage<sgsharedptr<simgear::canvas::element> >::unref (ptr=0x555586057430) at /games/flightgear-new/install/simgear/include/simgear/nasal/cppbind/detail/nasal_traits.hxx:236</sgsharedptr<simgear::canvas::element>

No locals.

2 nasal::Ghost<sgsharedptr<simgear::canvas::element>, void>::destroy<sgsharedptr<simgear::canvas::element> > (ptr=0x555586057430) at /games/flightgear-new/install/simgear/include/simgear/nasal/cppbind/Ghost.hxx:1310</sgsharedptr<simgear::canvas::element></sgsharedptr<simgear::canvas::element>

No locals.

3 0x0000555556491786 in nasal::ghostProcessDestroyList () at /games/flightgear-new/simgear/simgear/nasal/cppbind/Ghost.cxx:86

    it = {first = 0x5555560067e0 <nasal::Ghost<SGSharedPtr<simgear::canvas::Element>, void>::destroy<SGSharedPtr<simgear::canvas::Element> >(void*)>, second = 0x555586057430}

4 0x0000555555f86e7a in FGNasalSys::update (this=0x555578ed84c0) at /games/flightgear-new/flightgear/src/Scripting/NasalSys.cxx:1167

No locals.

5 0x00005555564dd262 in SGSubsystemGroup::Member::update (this=0x55556b9f6c60, delta_time_sec=<optimized out="">) at /games/flightgear-new/simgear/simgear/structure/subsystem_mgr.cxx:811</optimized>

    oTimer = {_nsec = 684648030, _sec = 45418}

6 0x00005555564e1883 in SGSubsystemGroup::update (this=0x555556db3df0, delta_time_sec=0.050000000000000003) at /games/flightgear-new/simgear/simgear/structure/subsystem_mgr.cxx:403

    member = 0x55556b9f6c60
    __for_range = std::vector of length 4, capacity 4 = {0x555557912470, 0x555557912350, 0x55555788c690, 0x55556b9f6c60}
    __for_begin = <optimized out>
    __for_end = <optimized out>
    loopCount = 0
    recordTime = false
    timeStamp = {_nsec = 684647590, _sec = 45418}
    lvTimerStats = std::map with 4 elements = {["gui"] = 0.0050000000000000001, ["nasal"] = 3.6249999999999831, ["prop-interpolator"] = 0, ["time"] = 0}
    overrunItems = std::map with 0 elements
    overrun = false
    outerTimeStamp = {_nsec = 684630446, _sec = 45418}

7 0x00005555564db1e3 in SGSubsystemMgr::update (this=0x555556db3c50, delta_time_sec=0.050000000000000003) at /usr/include/c++/9/bits/stl_vector.h:1040

    i = <optimized out>
    timeStamp = {_nsec = 0, _sec = 0}

8 0x00005555562ab06e in fgMainLoop () at /games/flightgear-new/flightgear/src/Main/main.cxx:162

    use_threaded_gc = <optimized out>
    threaded_wait = <optimized out>
    notify_gc_config = <optimized out>
    timeManager = <optimized out>
    sim_dt = 0.050000000000000003
    real_dt = 0.050000000000000003

9 0x0000555556220d19 in fgOSMainLoop () at /games/flightgear-new/flightgear/src/Viewer/fg_os_osgviewer.cxx:309

    idleFunc = 0x5555562aab10 <fgMainLoop()>

10 0x00005555562afa17 in fgMainInit (argc=<optimized out="">, argv=<optimized out="">) at /games/flightgear-new/flightgear/src/Main/main.cxx:708</optimized></optimized>

    readOnlyFGHome = <optimized out>
    version = "2019.2.0"
    col = <optimized out>
    showLauncher = <optimized out>
    configResult = <optimized out>
    resMgr = <optimized out>
    locale = "en_AU"
    result = <optimized out>

11 0x0000555555b1da53 in main (argc=38, argv=0x7fffffffdab8) at /games/flightgear-new/flightgear/src/Main/bootstrap.cxx:310

    _hostname = "debian\000\000\000\000ir", '\000' <repeats 16 times>, "~\204.A\000\000\000\000\000\000\360?\001\000\000\000\377\377\377\377\200\003\333VUU\000\000\260\003\333VUU\000\000\340\003\333VUU", '\000' <repeats 15 times>, "@Z@\000\000\000\000\000\200a@\232\231\231\231\231\231\231?\003\000\000\000\000\000\000\000\020\004\333VUU\000\000@\004\333VUU\000\000p\004\333VUU\000\000\000\000\277`\201\241\363\000\000\000\000\000\000\000i@\000\000\000\000\000\000y@\000\000\000\000\000\000\360?@\t\261\364\377\177\000\000\210\217\321VUU\000\000bRw\364\377\177\000\000q\002\000\000\000\000\000\000"...
    fgviewer = false
    exitStatus = 1

Discussion

  • James Turner

    James Turner - 2020-04-22

    @stuartbuchanan this could be another one, Nasal-Ghost ref-count is wrong.

    Merspieler, which aircraft is this, out of curisoity?

    And again, post the Nasal GC settings.

     
  • James Turner

    James Turner - 2020-04-22
    • labels: SIGSEGV --> SIGSEGV, Nasal
     
  • merspieler

    merspieler - 2020-04-22

    nasal gc is the default...
    aircraft A320

     
  • James Turner

    James Turner - 2020-04-22

    Okay, A320 is quite a heavy Canvas user, so this makes sense.

    If you have Thrreaded GC on (the default), can you make this crash happen again, or was it a single occurence? If you can esitmate that within say 20 minutes of flying , the A320 would cause a SIGSEGV like this, then you coudl set threaded GC to OFF and test if the crash is gone, would really help in understanding this issue.

     

Log in to post a comment.