Doug Webb wrote:

I have traced the segmentation fault to the function to determine the
number of elements in %vector in file /usr/include/c++/3.4.2/bits/stl_vector.h


the function is size_type size() const { return size_type(end()-begin());}

It is called called by this function in SimGear subsystem_mgr.cxx file.

void SGSubsystemGroup::init()
{
 for(unsigned int i=0;i < _members.size(); i++)
     _members[i]->subsystem->init();
}

This fault occurs the 7th time SGSubsystemGroup::init() is called during
initialization.  It occurs on the 5th iteration of that 7th call.  The
faulty function overwrites the i variable turning it from 5 to 12 and
causing the Segmentation Fault on the following iteration.

Can anyone tell me what to do about it?



I'm running on Fedora Core 3 here just fine so I don't think there's an inherent problem. Could it be that a file in your base package got corrupted or changed? When you do a cvs update of FG, you also need to do a cvs update of simgear and the FlightGear base package since they all need to match.


Regards,

Curt.

--
Curtis Olson        http://www.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:        2f585eeea02e2c79d7b1d8c4963bae2d


_______________________________________________ Flightgear-users mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-users 2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to