Board index FlightGear Support Compiling

compiled from git seg faults at launch

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

compiled from git seg faults at launch

Postby cain071546 » Fri Feb 27, 2015 8:27 am

Scripted Compilation from git on a clean install of Ubuntu 14.10 fully updated using the FGLRX proprietary driver

compiled with no errors but seg faults at launch, i have no idea what is wrong. =(

here is the contents of my 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 6027)]
[Thread 0x7ffff3a75700 (LWP 6027) exited]
[New Thread 0x7ffff3a75700 (LWP 6028)]
[Thread 0x7ffff3a75700 (LWP 6028) exited]
[New Thread 0x7ffff3a75700 (LWP 6029)]
[Thread 0x7ffff3a75700 (LWP 6029) exited]
[New Thread 0x7ffff3a75700 (LWP 6030)]
[New Thread 0x7fffefba7700 (LWP 6031)]
Enabling ATI viewport hack

Program received signal SIGSEGV, Segmentation fault.
_wordcopy_fwd_aligned (dstp=38445184, srcp=38675056, len=64) at wordcopy.c:80
80   wordcopy.c: No such file or directory.
(gdb) bt
#0  _wordcopy_fwd_aligned (dstp=38445184, srcp=38675056, len=64)
    at wordcopy.c:80
#1  0x00007ffff49554a5 in __memmove_sse2 (dest=0x24aa080, 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  0x0000000001373d42 in tex_make_mip_maps(unsigned char*, int, int, int) ()
#10 0x0000000001374575 in fntTexFont::loadTXF(char const*, unsigned int, unsigned int) ()
#11 0x0000000001371fe9 in fntTexFont::load(char const*, unsigned int, unsigned int) ()
#12 0x00000000008e644a in FGFontCache::initializeFonts() ()
#13 0x00000000008c7d32 in (anonymous namespace)::GUIInitOperation::run(osg::GraphicsContext*) ()
#14 0x0000000000d6777a 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 9: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 8:47 am

I can tell you where it is: flightgear/src/GUI/FGFontCache.cxx, line 208, but not what the problem is, unfortunately.

It looks like it can't find a font that it expects to find.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
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 8:53 am

really? just a missing font? i have been pulling my hair out for 3 days reinstalling ubuntu and compiling over and over again wondering what is wrong.......... ahhh just a missing font? which font?
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 9: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 9:03 am

That's the way I read it.

The thing I would try would be to open up flightgear/src/GUI/FGFontCache.cxx, go to line 208 and get it to log out the font it is trying to use:

Code: Select all
                fntTexFont* f = new fntTextFont;
                SG_LOG(SG_GENERAL, SG_ALERT, path.c_str());
                if (f->load((char *)path.c_str()))


So you are adding that middle line between the two lines shown. Recompile it, cross your fingers and toes and run it.

You don't need to make a backup copy of the file if it's a git clone. You can just reset it when you are done.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
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:12 am

didn't work i get this error if i edit the file

Code: Select all
****************************************
************** FLIGHTGEAR **************
****************************************
git://gitorious.org/fg/flightgear.git exists already

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'cain@cain-MS-7596.(none)')
Cannot save the current index state
cain@cain-MS-7596:~/BUILD$



and when i reset it the error goes away and it compiles again with no errors
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 9: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 9:17 am

Are you able to compile without going back to Git? Do you know how to do that? Is this the download and compile script that you are using?
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
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:18 am

Yes i am using the download_and_compile.sh script from the wiki it has always worked for me in the past (most of the time)

by compiling without going back to git you mean like cmake?
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 9: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 9:21 am

That's right, just the cmake, make and install steps. You only need to recompile flightgear and not simgear.

EDIT: There should be an option you can pass to the script so that it just compiles, without trying to download.
Last edited by sanhozay on Fri Feb 27, 2015 9:24 am, edited 1 time in total.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
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:23 am

I can tell the script to just compile whatever individual application i want it to ie simgear, terragear, flightgear, osg
what will the difference be if i just use cmake?
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 9: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 9:25 am

Yeah, use the script. You just need to recompile. No harm if it recompiles simgear too, it shouldn't do much.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
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: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

Code: Select all
****************************************
************** FLIGHTGEAR **************
****************************************
git://gitorious.org/fg/flightgear.git exists already

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'cain@cain-MS-7596.(none)')
Cannot save the current index state
cain@cain-MS-7596:~/BUILD$
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 9: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 9:30 am

Weird. It's asking you for Git credentials, almost as though it is trying to do a commit or push. :?
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
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:30 am

IKR? doesnt make any sense to me either :?
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 9: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 9:42 am

I'm just looking at the script ... try it with these options:

Code: Select all
-u -an -pn -dn -rn FGFS
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
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:54 am

No change same error and same backtrace
two wrongs never made a right but two wrights made a airplane
cain071546
 
Posts: 111
Joined: Wed Sep 29, 2010 9:55 pm
Location: Washington USA
Callsign: cain
IRC name: cain
Version: 3.2
OS: Linux

Next

Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests