Board index FlightGear Support Compiling

Segfault after compiling from git

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

Segfault after compiling from git

Postby ChrisD » Sun Sep 28, 2014 8:00 pm

Hi,

I have the exact same problem as described here http://comments.gmane.org/gmane.games.flightgear.devel/62085.
fgfs crashes even when started with --aircraft=ufo. I am using the next branch for simgear and flightgear and master for fgdata.

Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0x0000000000cb9444 in handle_geode_callbacks (geode=..., this=0x17e5240) at /usr/include/osgUtil/UpdateVisitor:94
94               if (callback) (*callback)(&geode,this);
(gdb) bt
#0  0x0000000000cb9444 in handle_geode_callbacks (geode=..., this=0x17e5240) at /usr/include/osgUtil/UpdateVisitor:94
#1  osgUtil::UpdateVisitor::apply (this=0x17e5240, node=...) at /usr/include/osgUtil/UpdateVisitor:51
#2  0x0000000000f515c5 in simgear::EffectGeode::accept(osg::NodeVisitor&) ()
#3  0x00007ffff5db2ff3 in osg::Sequence::accept(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#4  0x00007ffff5d07943 in osg::Group::traverse(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#5  0x00007ffff6a60140 in osg::Group::accept(osg::NodeVisitor&) () from /usr/lib/libosgFX.so.100
#6  0x00007ffff5d07943 in osg::Group::traverse(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#7  0x0000000000cba45d in apply (node=..., this=0x17e5240) at /usr/include/osgUtil/UpdateVisitor:57
#8  SGUpdateVisitor::apply (this=0x17e5240, transform=...) at /usr/local/include/simgear/scene/util/SGUpdateVisitor.hxx:162
#9  0x000000000106db58 in SGOffsetTransform::accept(osg::NodeVisitor&) ()
#10 0x00007ffff5d71889 in osg::LOD::traverse(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#11 0x00007ffff5d72423 in osg::LOD::accept(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#12 0x00007ffff5d07943 in osg::Group::traverse(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#13 0x00007ffff6a60140 in osg::Group::accept(osg::NodeVisitor&) () from /usr/lib/libosgFX.so.100
#14 0x00007ffff5d96931 in osg::PagedLOD::traverse(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#15 0x0000000000cbb099 in traverse (node=..., this=0x17e5240) at /usr/include/osg/NodeVisitor:193
#16 handle_callbacks_and_traverse (node=..., this=0x17e5240) at /usr/include/osgUtil/UpdateVisitor:86
#17 apply (node=..., this=0x17e5240) at /usr/include/osgUtil/UpdateVisitor:60
#18 SGUpdateVisitor::apply (this=0x17e5240, pagedLOD=...) at /usr/local/include/simgear/scene/util/SGUpdateVisitor.hxx:152
#19 0x00007ffff5d97bf3 in osg::PagedLOD::accept(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#20 0x00007ffff5d07943 in osg::Group::traverse(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#21 0x0000000000cba45d in apply (node=..., this=0x17e5240) at /usr/include/osgUtil/UpdateVisitor:57
#22 SGUpdateVisitor::apply (this=0x17e5240, transform=...) at /usr/local/include/simgear/scene/util/SGUpdateVisitor.hxx:162
#23 0x0000000001079438 in osg::MatrixTransform::accept(osg::NodeVisitor&) ()
#24 0x00007ffff5d07943 in osg::Group::traverse(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#25 0x00007ffff6a60140 in osg::Group::accept(osg::NodeVisitor&) () from /usr/lib/libosgFX.so.100
#26 0x00007ffff5d96931 in osg::PagedLOD::traverse(osg::NodeVisitor&) () from /usr/lib/libosg.so.100
#27 0x0000000000cbb099 in traverse (node=..., this=0x17e5240) at /usr/include/osg/NodeVisitor:193
#28 handle_callbacks_and_traverse (node=..., this=0x17e5240) at /usr/include/osgUtil/UpdateVisitor:86
#29 apply (node=..., this=0x17e5240) at /usr/include/osgUtil/UpdateVisitor:60

Disabling sound does not help.
When starting with "--lat=45 --lon=-10 --altitude=1000" (thats above the atlantic) fgfs does not crash.

fgfs from the repositories works.

Specs: arch linux, i3-4000m, 4gb, HD4600
ChrisD
 
Posts: 5
Joined: Tue Jul 01, 2014 9:56 pm

Re: Segfault after compiling from git

Postby Alant » Sun Sep 28, 2014 8:14 pm

Try again with today´s git version. A patch was introduced yesterday which appears to correct most of the segfault problems, and at the same time has reduced CPU usage.
Alant
 
Posts: 989
Joined: Wed Jun 23, 2010 5:58 am
Location: Portugal
Callsign: Tarnish99
Version: from Git
OS: Windows 10

Re: Segfault after compiling from git

Postby ChrisD » Sun Sep 28, 2014 8:54 pm

I tried today's and it also does not work.
ChrisD
 
Posts: 5
Joined: Tue Jul 01, 2014 9:56 pm

Re: Segfault after compiling from git

Postby Alant » Sun Sep 28, 2014 9:55 pm

Probably the best thing to do is look at the last posts in the thread "[Flightgear-devel] crash in SGPropertyNode::fireValueChanged" on the devel mail list (https://lists.sourceforge.net/lists/lis ... gear-devel), and post your findings there. These segfaults are being activly investigated.
Remember that latest git version is for development- it is not a released version suitable for the end-user. It is where the developers co-ordinate and test their work., and iron out bugs.

Alan
Alant
 
Posts: 989
Joined: Wed Jun 23, 2010 5:58 am
Location: Portugal
Callsign: Tarnish99
Version: from Git
OS: Windows 10

Re: Segfault after compiling from git

Postby Hooray » Mon Sep 29, 2014 8:45 am

you can also use the issue tracker to post your bug report and backtrace: http://flightgear-bugs.googlecode.com/
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: 11949
Joined: Tue Mar 25, 2008 8:40 am

Re: Segfault after compiling from git

Postby ChrisD » Mon Sep 29, 2014 10:00 am

Thank you. I added my crash to the issue tracker. I am wondering why I am the only one who cant start flightgear anymore.
ChrisD
 
Posts: 5
Joined: Tue Jul 01, 2014 9:56 pm

Re: Segfault after compiling from git

Postby Alant » Mon Sep 29, 2014 10:50 am

You are not - look at the email list. They are pulling their hair out.

Alan
Alant
 
Posts: 989
Joined: Wed Jun 23, 2010 5:58 am
Location: Portugal
Callsign: Tarnish99
Version: from Git
OS: Windows 10

Re: Segfault after compiling from git

Postby ChrisD » Wed Oct 01, 2014 8:04 pm

I do not know why, but the crash is fixed with this change:
simgear/scene/util/SGUpdateVisitor.hxx:
Code: Select all
     if (getFrameStamp())
       pagedLOD.setFrameNumberOfLastTraversal(getFrameStamp()->getFrameNumber());
-    osgUtil::UpdateVisitor::apply(pagedLOD);
+    //osgUtil::UpdateVisitor::apply(pagedLOD);
   }
   // To be able to traverse correctly only the active children, we need to
   // track the model view matrices during update.


Memory consumption is quite high though.
ChrisD
 
Posts: 5
Joined: Tue Jul 01, 2014 9:56 pm

Re: Segfault after compiling from git

Postby Talkless » Thu Oct 02, 2014 8:36 am

Some time ago I have reported crash with very similar backtrace here: https://code.google.com/p/flightgear-bu ... il?id=1554 .
Talkless
 
Posts: 80
Joined: Thu Mar 10, 2011 12:05 pm
Callsign: TLS
Version: git master
OS: Linux

Re: Segfault after compiling from git

Postby Curtis » Sat Oct 18, 2014 9:01 pm

I have a similar crash with the official version of flightgear ( 3.2, released october 15 2014 ) but only if I choose "KSFO" airport,

my bugreport :

https://code.google.com/p/flightgear-bu ... il?id=1568

the original thread ( in "installation section" ) :

viewtopic.php?f=11&t=24318

the problem seems to occur only with KSFO, which is the default airport if we don't use the option "--airport=",

I use archlinux 64 bits, maybe the problem occurs only with the linux version of flightgear 3.2
Curtis
 
Posts: 153
Joined: Wed Jun 17, 2009 3:09 pm
OS: archlinux 64 bits

Re: Segfault after compiling from git

Postby tempest766 » Mon Dec 15, 2014 12:35 pm

I can confirm this problem in the official 3.2 release under Fedora 21. Startup from KSFO crashes, while using a different airport doesn't exhibit the crash.
tempest766
 
Posts: 37
Joined: Sat Nov 15, 2014 11:32 pm
Location: Pennsylvania USA
Version: git
OS: Fedora 21

Re: Segfault after compiling from git

Postby Ovazor » Tue Dec 16, 2014 11:24 pm

This might be the same problem I have encountered with FC 21 and FG 3.2.0.1 (Installed with the Apper package manager)

viewtopic.php?f=17&t=24838
Flying the Dakota
Ovazor
 
Posts: 66
Joined: Wed Feb 12, 2014 6:53 am
Location: Finland
Callsign: OH-OVA
Version: 2020.2.0
OS: OpenSUSE LEap 15.2


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest