Board index FlightGear Support Compiling

compiled from git seg faults at launch

Building FlightGear from source, and in the need for help?

Re: compiled from git seg faults at launch

Postby sanhozay » Fri Feb 27, 2015 11:02 am

Same backtrace? You mean it's asking for Git credentials again?

I guess you could try setting those up, as it suggests. Just type these commands in a terminal with your details substituted:

Code: Select all
git config --global user.email "you@example.com"
git config --global user.name "Your Name"


All this does is tell Git who you are in case you submit a patch. It won't be able to push your changes because you don't have permissions and these details are not going to go anywhere.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 11:05 am

no, the original backtrace

Code: Select all
cain@cain-MS-7596:~$ '/home/cain/BUILD/run_fgfs_debug.sh'
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
Copyright (C) 2014 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"...
Warning: /fgfs/source/src: No such file or directory.
Reading symbols from fgfs...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/cain/BUILD/install/flightgear/bin/fgfs --fg-root=/home/cain/BUILD/install/flightgear/bin/../fgdata/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3a75700 (LWP 930)]
[Thread 0x7ffff3a75700 (LWP 930) exited]
[New Thread 0x7ffff3a75700 (LWP 931)]
[Thread 0x7ffff3a75700 (LWP 931) exited]
[New Thread 0x7ffff3a75700 (LWP 932)]
[Thread 0x7ffff3a75700 (LWP 932) exited]
[New Thread 0x7ffff3a75700 (LWP 933)]
[New Thread 0x7fffefba7700 (LWP 934)]
Enabling ATI viewport hack

Program received signal SIGSEGV, Segmentation fault.
_wordcopy_fwd_aligned (dstp=38441792, srcp=38671664, len=64) at wordcopy.c:80
80   wordcopy.c: No such file or directory.
(gdb) bt
#0  _wordcopy_fwd_aligned (dstp=38441792, srcp=38671664, len=64)
    at wordcopy.c:80
#1  0x00007ffff49554a5 in __memmove_sse2 (dest=0x24a9340, src=<optimized out>,
    len=512) at ../string/memmove.c:79
#2  0x00007ffff16c8070 in ?? () from /usr/lib/dri/fglrx_dri.so
#3  0x00007ffff16c8354 in ?? () from /usr/lib/dri/fglrx_dri.so
#4  0x00007ffff16a8cfa in ?? () from /usr/lib/dri/fglrx_dri.so
#5  0x00007ffff1488b98 in ?? () from /usr/lib/dri/fglrx_dri.so
#6  0x00007ffff0b9d448 in ?? () from /usr/lib/dri/fglrx_dri.so
#7  0x00007ffff0b9f064 in ?? () from /usr/lib/dri/fglrx_dri.so
#8  0x00007ffff0ff11b5 in ?? () from /usr/lib/dri/fglrx_dri.so
#9  0x0000000001373d12 in tex_make_mip_maps(unsigned char*, int, int, int) ()
#10 0x0000000001374545 in fntTexFont::loadTXF(char const*, unsigned int, unsigned int) ()
#11 0x0000000001371fb9 in fntTexFont::load(char const*, unsigned int, unsigned int) ()
#12 0x00000000008e641a in FGFontCache::initializeFonts() ()
#13 0x00000000008c7d02 in (anonymous namespace)::GUIInitOperation::run(osg::GraphicsContext*) ()
#14 0x0000000000d6774a in flightgear::GraphicsContextOperation::operator()(osg::GraphicsContext*) ()
#15 0x00007ffff61885c6 in osg::GraphicsContext::runOperations() ()
   from ../../openscenegraph/lib/libosg.so.100
---Type <return> to continue, or q <return> to quit---
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 11:08 am

even more strange is that the binaries from ppa:saiarcot895/flightgear work just fine i have been testing the 3.4 from the ppa all day and it works just fine so obviously they were able to compile without issue

EDIT: this is on a different machine also running clean install of 14.10 installed and updated today
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Re: compiled from git seg faults at launch

Postby sanhozay » Fri Feb 27, 2015 11:13 am

I didn't expect it to work. Did you see a message appear in your console or log file with the font name in it? That's what we were trying to do; find the name of the font it was trying to load.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 11:17 am

nope, compiled just fine and the terminal output and log file are the same as before
and the error persists and the backtrace is still the same. :?

and no mention of a font anywhere
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Re: compiled from git seg faults at launch

Postby wkitty42 » Fri Feb 27, 2015 12:07 pm

cain071546 wrote in Fri Feb 27, 2015 10:28 am:I did recompile it only takes me like 30-60 seconds to recompile just flightgear, it works fine no errors till i edit line 208 of that file then i get this error

that's not an error, really... you have to tell your local git who you are... the script runs certain git commands and with your manual edit, git has to know who you are... sanhozy gave the proper git commands to tell git who you are... you could manually edit the git file and add them but the command line commands are the easiest ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9123
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 1:11 pm

deleted
Last edited by cain071546 on Sat Feb 28, 2015 5:33 am, edited 3 times in total.
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 9:08 pm

that's not an error, really... you have to tell your local git who you are... the script runs certain git commands and with your manual edit, git has to know who you are... sanhozy gave the proper git commands to tell git who you are... you could manually edit the git file and add them but the command line commands are the easiest ;)


After trying your suggestion

It still made no difference the compilation was slightly longer i believe because it rebuilt a few more things because of the edit to fgfontcache.cxx
but the outcome is the same it compiles with no errors, I still get the segmentation fualt at launch and the backtrace is still identical.

Is there anymore information i can possibly give to assist in the identification of said problem?
Last edited by cain071546 on Fri Feb 27, 2015 9:57 pm, edited 3 times in total.
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Re: compiled from git seg faults at launch

Postby Hooray » Fri Feb 27, 2015 9:23 pm

Here's some advice up-front: if you expect to be taken seriously when looking for help, let other's decide what is "irrelevant" and what isn't. Equally, don't refer to any suggestions made as "ridiculous". There are people here trying to help you.

That being said: http://wiki.flightgear.org/Troubleshooting_crashes

1) Are you able to run other OpenGL software on the same PC/OS using the same driver (e.g. fgviewer, osgviewer any other osg examples)?
2) if yes, please run an OpenGL benchmark - on Linux, also post the glxinfo output
3) if not, please consider down-grading/up-grading your driver, and or using libMESA for testing purposes

Note that pretty much the same issue was reported ~6 months ago on the French FG forum: http://pastebin.com/jvD9WRDG
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

Re: compiled from git seg faults at launch

Postby sanhozay » Fri Feb 27, 2015 9:56 pm

cain071546 wrote in Fri Feb 27, 2015 9:08 pm:i would like to know how to un-register my self from git now seeing as i do not want anything to do with it)

You aren't registered with Git, not in the same sense as you would be registered with a website like this one. All those commands do is put your email address and name into a file on your computer. Those details are used as your identity if you use Git to submit changes to someone else's Git repository. I didn't get time to explore that script further but I think it might be something to do with it trying to put your edits to one side (stash) while it updates your source code.

If you want to delete the file: http://stackoverflow.com/questions/2114 ... written-to
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 9:58 pm

I get it and i appologize.

1) yes i am currently running the 3.4 Binaries from ppa:saiarcot895/flightgear with no problem.
2) I have ruled out a video driver as being the issue.
3) I have read through the wiki pages and have tried everything on http://wiki.flightgear.org/Troubleshooting_crashes to no avail.
4) we have somewhat tentatively identified the problem as originating in FGfontcahe.cxx somewhere round line 208 (from what i understand there is a issue with a font)
5) This is a clean install of Ubuntu fully updated it was installed yesterday.

Is there any more information that i can provide to help figure this out?
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Re: compiled from git seg faults at launch

Postby Hooray » Fri Feb 27, 2015 10:06 pm

have you tried pointing your custom built binary to the fgdata package used by the ppa package, or if that is already the case?
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

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 10:11 pm

Uhm no i havent should i try that?
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 10:21 pm

I get a version check error when i try to point the compiled executable at the globally installed version of fgdata

(Found data files for version '3.4.0' at '/usr/share/games/flightgear', version '3.4.1' is required.)
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Re: compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 11:06 pm

May i inquire as to what you meant by using using libMESA for testing purposes?

libgl1-mesa-glx and libgl1-mesa-glx-dev are already installed and up to date.
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 10:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

PreviousNext

Return to Compiling

Who is online

Users browsing this forum: No registered users and 2 guests