Mathias Fröhlich wrote:

From that backtrace:
There is exactly one dynamic_cast in this function.
In theory it should never happen that the argument to that dynamic_cast is zero.


Since I cannot reproduce it myself, can you help me?
Could you please apply the attached patch and tell me of some of thouse new cerr output lines triggers?

After a rebuild (with your patch):

(gdb) run --aircraft=hunter --airport=RCSS
Starting program: /usr/bin/fgfs --aircraft=hunter --airport=RCSS
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 18031)]
Failed to find runway 28R at airport RCSS
[New Thread 32769 (LWP 18033)]
[New Thread 16386 (LWP 18034)]
[New Thread 32771 (LWP 18035)]
[New Thread 49156 (LWP 18036)]
Altitude = 18
Temp at alt (C) = 12
Temp sea level (C) = 12.0348
Altitude = 18
Dewpoint at alt (C) = 10
Dewpoint at sea level (C) = 10.0036

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 18031)]
0x0cdf665b in ?? ()
(gdb) bt
#0 0x0cdf665b in ?? ()
#1 0x00000000 in ?? ()
#2 0x40142974 in __dynamic_cast (from=0xcdf6658,
to=0x854ca9c <typeinfo for ssgBase>, require_public=139573480,
address=0x0, sub=0x405d49d0 <main_arena+16>, subptr=0x38)
at ../../gcc-2.95.3/gcc/cp/tinfo2.cc:282
#3 0x0812233d in FGGroundCache::addAndFlattenLeaf (this=0xb060818, ty=4,
l=0x5153f0a8, ia=0xcdf6658, xform=0xbffff0f0) at groundcache.cxx:159
#4 0x0812281f in FGGroundCache::putSurfaceLeafIntoCache (this=0xb060818,
sp=0xbffff320, xform=0xbffff0f0, sphIsec=true, down=0xbffff2c0,
l=0x5153f0a8) at groundcache.cxx:260
#5 0x08122d5a in FGGroundCache::cache_fill (this=0xb060818,
branch=0x513ffc78, xform=0xbffff0f0, sp=0xbffff320, down=0xbffff2c0,
wsp=0xbffff2d0) at groundcache.cxx:337
#6 0x08122cf7 in FGGroundCache::cache_fill (this=0xb060818, branch=0xcc15720,
xform=0xbffff0f0, sp=0xbffff320, down=0xbffff2c0, wsp=0xbffff2d0)
at groundcache.cxx:323
#7 0x08122cf7 in FGGroundCache::cache_fill (this=0xb060818, branch=0xcbd7be8,
xform=0xbffff0f0, sp=0xbffff320, down=0xbffff2c0, wsp=0xbffff2d0)
at groundcache.cxx:323
#8 0x08122cf7 in FGGroundCache::cache_fill (this=0xb05c818, branch=0xc3b9b70,
xform=0xbffff0f0, sp=0xbffff320, down=0xbffff2c0, wsp=0xbffff2d0)
at groundcache.cxx:323
#9 0x08122cf7 in FGGroundCache::cache_fill (this=0xb05c818, branch=0xcbb2a10,
xform=0xbffff0f0, sp=0xbffff320, down=0xbffff2c0, wsp=0xbffff2d0)
at groundcache.cxx:323
#10 0x08122cf7 in FGGroundCache::cache_fill (this=0xb05c818, branch=0x8ff0118,
xform=0xbffff280, sp=0xbffff320, down=0xbffff2c0, wsp=0xbffff2d0)
at groundcache.cxx:323
#11 0x08122cf7 in FGGroundCache::cache_fill (this=0xb05c818, branch=0x8ff0090,
xform=0xbffff280, sp=0xbffff320, down=0xbffff2c0, wsp=0xbffff2d0)
---Type <return> to continue, or q <return> to quit---
at groundcache.cxx:323
#12 0x08123075 in FGGroundCache::prepare_ground_cache (this=0xb05c818,
ref_time=0, pt=0xbffff3e0, rad=10.407214164733887) at groundcache.cxx:403
#13 0x08121068 in FGInterface::prepare_ground_cache_m (this=0xb05c178,
ref_time=0, pt=0xbffff3e0, rad=10.407214164733887) at flight.cxx:796
#14 0x081b06c2 in YASim::update (this=0xb05c178, dt=0.81666666666666665)
at YASim.cxx:202
#15 0x08051d6a in fgUpdateTimeDepCalcs () at main.cxx:167
#16 0x08052759 in fgMainLoop () at main.cxx:431
#17 0x08086232 in GLUTidle () at fg_os.cxx:114
#18 0x4009b1c0 in idleWait () from /usr/local/lib/libglut.so.3
#19 0x4009b8bb in glutMainLoop () from /usr/local/lib/libglut.so.3
#20 0x08054d1d in fgMainInit (argc=3, argv=0xbffff7e4) at main.cxx:958
#21 0x08051746 in main (argc=3, argv=0xbffff7e4) at bootstrap.cxx:192


I can't explain the gcc version reported there though, because:

gcc -v
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.3.4


--
Jon Stockill
[EMAIL PROTECTED]

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to