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?

Thanks,
Doug.



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

Reply via email to