Andy Ross writes: > [bouncing discussion to flightgear-devel] > > Adam wrote: > > Andy Ross wrote: > > > Adam wrote: > > > > As soon as I run ./fgfs I immediately get segmentation fault > > > > - with no other errors. > > > > > > John S. Coomler wrote: > > > > I am also using Mandrake 9 and I too get the same segmentation fault > > > > error on FlightGear 9 startup. Let me know what you find out. > > > > > > Can one of you post a backtrace from the debugger so we can see where > > > it's crashing? Also, do an "ldd" on the binary and make sure that the > > > plib and SimGear libraries it is using are the right ones. > >
> Bingo. Cleaning things up a bit, your stack looks like this: > > glGetIntegerv () from /usr/X11R6/lib/libGL.so.1 > SkyTextureState() at SkyTextureState.cpp:49 > SkyMaterial() at SkyMaterial.cpp:60 > SkyLight() at SkyLight.cpp:67 > __static_initialization_and_destruction_0() at vec4f.hpp:37 > _GLOBAL__I__sky_ssgLights() at /usr/include/c++/3.2/bits/stl_multimap.h:123 > __do_global_ctors_aux() > _init () > __libc_start_main () from /lib/i686/libc.so.6 > It looks like there is a static SkyLight object somewhere. Yup. this has been a real pain :-( The following *hack* just might work though Norman =============== $ cvs diff SkySceneLoader.cpp Index: SkySceneLoader.cpp =================================================================== RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/sky/clouds3d/SkySceneLoader.cpp,v retrieving revision 1.8 diff -r1.8 SkySceneLoader.cpp 43c43 < ssgLight _sky_ssgLights [ 8 ] ; --- > static ssgLight _sky_ssgLights [ 8 ] ; 45c45 < sgdVec3 cam_pos; --- > static sgdVec3 cam_pos; 47c47 < Point3D origin; --- > static Point3D origin; 50,52c50 < // Need to add a light here until we figure out how to use the sun position and color < SkyLight::SkyLightType eType = SkyLight::SKY_LIGHT_DIRECTIONAL; < SkyLight *pLight = new SkyLight(eType); --- > SkyLight *pLight; 61a60 > 72d70 < 106a105 > pLight = new SkyLight(SkyLight::SKY_LIGHT_DIRECTIONAL); _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel