Board index FlightGear Support

FGFS 2017.1.2 Segmentation Fault

All general support: help on flying, installation, hardware, getting online etc. There are lots of users and developers to help you out.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- where did you download your aircraft/scenery from?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).

Please report any bugs not specific to an aircraft on the issue tracker.
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

FGFS 2017.1.2 Segmentation Fault

Postby MRC01 » Mon Mar 27, 2017 4:36 am

Flightgear 2017.1.2, Ubuntu 16.04, kernel 4.4.0-62, Nvidia GTX 1050 driver 378.13
Prior version 2016.4 worked flawlessly for hours on same hardware & software. Just upgraded to 2017.1.2 and now it's seg faulting within 1 minute of each session no matter which airplane or airport I fly. I have just enough time to take off and turn downwind then it seg faults.
command line: fgfs --airport="kbfi" --aircraft="p51d" --com1=120.6 --com2=121.9 --nav1=116.8 "noon" --enable-fullscreen --aspect-ratio-multiplier=1.6
Stack Trace:
Code: Select all
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 1123
[New LWP 1128]
[New LWP 1131]
[New LWP 1132]
[New LWP 1133]
[New LWP 1134]
[New LWP 1135]
[New LWP 1139]
[New LWP 1143]
[New LWP 1144]
[New LWP 1148]
[New LWP 1150]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__clock_nanosleep (clock_id=<optimized out>, flags=1, req=0x7ffecdf9ffd0, rem=0x0)
    at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
48   ../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory.
(gdb) continue
Continuing.

Thread 1 "fgfs" received signal SIGSEGV, Segmentation fault.
0x0000555d1dbc3cc8 in FGTaxiRoute::next(SGSharedPtr<FGTaxiNode>&, int*) ()
(gdb) bt full
#0  0x0000555d1dbc3cc8 in FGTaxiRoute::next(SGSharedPtr<FGTaxiNode>&, int*) ()
No symbol table info available.
#1  0x0000555d1de0ee43 in FGAIFlightPlan::createTakeoffTaxi(FGAIAircraft*, bool, FGAirport*, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
No symbol table info available.
#2  0x0000555d1de103d9 in FGAIFlightPlan::create(FGAIAircraft*, FGAirport*, FGAirport*, int, double, double, double, double, bool, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double) ()
No symbol table info available.
#3  0x0000555d1ddea197 in FGAIAircraft::loadNextLeg(double) ()
No symbol table info available.
#4  0x0000555d1ddeb0aa in FGAIAircraft::handleFirstWaypoint() ()
No symbol table info available.
#5  0x0000555d1dded248 in FGAIAircraft::ProcessFlightPlan(double, long) ()
No symbol table info available.
#6  0x0000555d1dded414 in FGAIAircraft::updatePrimaryTargetValues(double, bool&, bool&) ()
No symbol table info available.
#7  0x0000555d1dded6d7 in FGAIAircraft::Run(double) ()
No symbol table info available.
#8  0x0000555d1ddef055 in FGAIAircraft::update(double) ()
No symbol table info available.
#9  0x0000555d1de1d2ad in FGAIManager::update(double) ()
No symbol table info available.
#10 0x00007fc07b3cdce0 in SGSubsystemGroup::Member::update(double) ()
   from /usr/lib/x86_64-linux-gnu/libSimGearCore.so.2017.1.2
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#11 0x00007fc07b3cdb8f in SGSubsystemGroup::update(double) ()
   from /usr/lib/x86_64-linux-gnu/libSimGearCore.so.2017.1.2
No symbol table info available.
#12 0x00007fc07b3cd930 in SGSubsystemMgr::update(double) ()
   from /usr/lib/x86_64-linux-gnu/libSimGearCore.so.2017.1.2
No symbol table info available.
#13 0x0000555d1db7989f in ?? ()
No symbol table info available.
#14 0x0000555d1e1e47e8 in fgOSMainLoop() ()
No symbol table info available.
#15 0x0000555d1db7a4cc in fgMainInit(int, char**) ()
No symbol table info available.
#16 0x0000555d1db36b5f in main ()
No symbol table info available.
(gdb)
Last edited by Johan G on Tue Mar 28, 2017 8:30 pm, edited 1 time in total.
Reason: Please use [code] tags for listings like that. They can be added manually or by using the [^_ ] button above the text edit box.
MRC01
 
Posts: 11
Joined: Sun Feb 05, 2017 9:48 pm
Callsign: 1185F
Version: 2016.4.4
OS: XUbuntu 16.04

Re: FGFS 2017.1.2 Segmentation Fault

Postby sanhozay » Mon Mar 27, 2017 7:13 am

Try disabling AI traffic and see if it stops the crash.

http://wiki.flightgear.org/Command_line_options

Obviously that's just a workaround, the backtrace provides a valid and very useful bug report.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: FGFS 2017.1.2 Segmentation Fault

Postby MRC01 » Tue Mar 28, 2017 3:36 am

Yep, it works. Disable AI traffic and it no longer crashes.
Thanks for the tip, and I hope the stack trace helps fix the bug.
MRC01
 
Posts: 11
Joined: Sun Feb 05, 2017 9:48 pm
Callsign: 1185F
Version: 2016.4.4
OS: XUbuntu 16.04

Re: FGFS 2017.1.2 Segmentation Fault

Postby rominet » Sat Apr 15, 2017 12:00 am

Hi,

Thanks for the detailed report. According to the provided backtrace, the crash should be fixed in FG 2017.2.0 (see this message for details; the fix is in commit eefa9a75f973). The real cause of the bug is incorrect groundnet files (Airports/I/C/A/ICAO.groundnet.xml in scenery paths), however FG can be more forgiving, which is now the case, to the best of my knowledge, in FlightGear 2017.2.0.
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux


Return to Support

Who is online

Users browsing this forum: No registered users and 5 guests