Board index FlightGear Development

More segfaults

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

More segfaults

Postby Jabberwocky » Sat Apr 19, 2014 7:03 pm

Hi,

I try to figure out some segfaults but before I want to write any bug reports, I want to narrow it down more. Now, it always says "core dumped", but the system.log of Ubuntu isn't telling too much. Does FG dump another file and if so, where?

J.
Jabberwocky
Retired
 
Posts: 1316
Joined: Sat Mar 22, 2014 8:36 pm
Callsign: JWOCKY
Version: 3.0.0
OS: Ubuntu 14.04

Re: More segfaults

Postby Hooray » Sat Apr 19, 2014 7:53 pm

I want to write any bug reports, I want to narrow it down more. Now, it always says "core dumped", but the system.log of Ubuntu isn't telling too much. Does FG dump another file and if so, where?


You would need to build a binary with debugging symbols and then run the whole thing via gdb to get a backtrace via "thread apply all bt full".

See the following postings for additional information (it would probably be a good idea to create a new wiki article where all the steps & details are listed, feel free to start something like that, I am going to help augment/extend and maintain it over time, you can use my postings and copy those directly to the wiki):

EDIT: started here: http://wiki.flightgear.org/Howto:Debugg ... Backtraces

Subject: FkightGear Just dies!
Hooray wrote:you need to run a binary with embedded debugging symbols to come up with a useful stack trace: http://wiki.flightgear.org/Building_usi ... bug_Builds


Subject: Frequent constant random crashes
Hooray wrote:
chrisb wrote in Mon Mar 17, 2014 2:16 am:Are there any debug tools I can use, the main problem I have is that I cant trigger the crash as it seems to be totally random I also cant decipher the crash report

You would need a so called "debugger" and a binary with debugging symbols linked into it, which would give you a so called "backtrace".

chrisb wrote in Mon Mar 17, 2014 2:16 am:Does an FGFS version exist that has debug turned on?


I think the build server binaries ("nightlies") should have debugging symbols linked in, but you'll still need to use a debugger (i.e. MSVC++) to actually make use of those.

chrisb wrote in Mon Mar 17, 2014 2:16 am:How do I compile FG on windows?


http://wiki.flightgear.org/Superbuild

If that doesn't work for you, use these instructions instead:
http://wiki.flightgear.org/Building_usi ... _-_Windows


Subject: FkightGear Just dies!
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU


Return to Development

Who is online

Users browsing this forum: No registered users and 13 guests