Menu

#2127 2019.1.1 & 2019.2.0 segfault on reset

2019.2
Verified
Low
2024-10-21
2019-05-18
eatdirt
No

Hello,
I have been compiling the tags 2019.1.1 on simgear, flightgear, flightgear-data, as well as next branch, and they all segfaults when clicking on "Restart" in the fg gui menu.

I have compiled them against latest OSG-3.6.3.

Let me know if you need more details.
Cheers,
Chris.

Discussion

<< < 1 2 (Page 2 of 2)
  • James Turner

    James Turner - 2021-06-17

    Thanks, it's hanging in something rleated to Richard's new Emesery notifier. @r-harrison did you test reset was working okay for you after adding the transmitter? I think we might need to explicityl shut it down on reset.

     
  • Richard Harrison

    I haven't yet had a chance to look into this.

    I suspect that the global transmitter should not be deleted during reset; just ensure that all registered recipients de-register on destruction.

     
  • James Turner

    James Turner - 2021-06-17

    Yeah, I figured it out, testing a patch now.

     
  • James Turner

    James Turner - 2021-06-17

    Pushed some tweaks to next (needs both SG & FG) : let me know if this improves things, Bjoern.

     
  • Bjoern K

    Bjoern K - 2021-06-17

    Will do tomorrow. Thanks for the quick fix!

     
  • Bjoern K

    Bjoern K - 2021-06-18

    No dice. :(

    1) Launch FG session
    2) Wait until everything has finished loading
    3) "File" --> "Aircraft Center"
    4) Pick new aircraft
    5) Hit "Fly"
    6) FG freezes after a short while and has to be forcefully terminated

    GDB backtrace:

     

    Last edit: Bjoern K 2021-06-18
  • Bjoern K

    Bjoern K - 2021-06-18

    FGFS log:

     
  • Bjoern K

    Bjoern K - 2021-06-18

    Same result when issuing "File" --> "Reset".

     
  • Bjoern K

    Bjoern K - 2021-06-18

    FGFS.log

     
  • James Turner

    James Turner - 2021-06-21

    Hmm, this must be a Linux-ism. A 'bt all' would help but it seems shutting down / re-joint the exclusive thread isn't working there. But I'll try a build on an Ubuntu VM in the next few days, unless @rharrison beats me to it.

     
  • Bjoern K

    Bjoern K - 2021-06-21

    The primary "Linuxisms" I can think of is differing directory separators for paths and too strict handling of folder naming (as in capitalization).

    Or it's an OSG bug.

    I've got all FG files with me this week, so I can build it on my laptop to rule our graphics driver related issues (laptop: NVidia, desktop: AMD).

     
  • James Turner

    James Turner - 2021-06-22

    Having just fixed the shutdown hang, reset works for me on Ubuntu (at BIKF, with the UFO, using SingleThreaded OSG)

     
  • Bjoern K

    Bjoern K - 2021-06-25

    Still getting crashes. Aerostar 700 at BIKF. Multiple resets at the location were okay, but changing the airport to EDAH and then resetting crashed FG.

    P.S: Do you know how to pass that "handle SIG32 nostop" command at startup? Having to look it up and copy and paste it for each debugging session is highly annoying.

     

    Last edit: Bjoern K 2021-06-25
  • ranguli

    ranguli - 2024-10-21

    Is anyone able to reproduce this issue on 2023.x or 2024.x? Without any further information or updates perhaps it should be marked as stale/closed.

     
  • James Turner

    James Turner - 2024-10-21

    These crashes typically rleate to OSG multi-threading mode. We had a bug (which Stuart fixed) that we ignored the multi-threading mode of the OSG DB pager on first init but on second init (i.e reset) we applied the value correctly.

    This meant a whole bunch of thread crashes/race conditions only showed up after reset. Stuart has fixed some but some remain, but anyway we now know reset is not to blame, it's multi-threading. So tnhis can be closed.

     
  • James Turner

    James Turner - 2024-10-21
    • status: NeedInfo --> Verified
     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.