Hi again,
This could be time consuming :)
I bypassed the asserts in plib to try and see what's really happening
and whether it's fatal or not. I think it was removing the
"deadBeefCheck" that made a difference. cvsdiff is included below.
Before when flying from Sydney to Katmandu the program always aborted
just off the north coast of Australia. I can hit "a" a few times to get
there quicker and it will still abort at the same place, which saves
some time anyway...
Just now with the changes I got all the way to Katmandu and then down
the length of India before it seg faulted. Backtrace from gdb included
below.
I have more time than expertise in these matters so any hints would be
appreciated :)
Regards,
Geoff
Index: src/ssg/ssg.h
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssg.h,v
retrieving revision 1.157
diff -r1.157 ssg.h
302c302,309
< void deRef () { assert ( refc > 0 ) ; refc-- ; }
---
> // void deRef () { assert ( refc > 0 ) ; refc-- ; }
> void deRef () {
> if ( refc > 0 ) refc-- ;
> else {
> printf("refc was %d\n", refc);
> refc = 0;
> }
> }
Index: src/ssg/ssgBase.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgBase.cxx,v
retrieving revision 1.21
diff -r1.21 ssgBase.cxx
77c77
< deadBeefCheck () ;
---
> // deadBeefCheck () ;
$GPRMC,014714,A,1014.239,N,08035.811,E,628.6,-166.9,2311102,0.000,E*66
$GPGGA,014714,1014.239,N,08035.811,E,1,,,13051,F,,,,*21
Program received signal SIGSEGV, Segmentation fault.
0x4046e42d in malloc () from /lib/i686/libc.so.6
(gdb) bt
#0 0x4046e42d in malloc () from /lib/i686/libc.so.6
#1 0x4046e262 in malloc () from /lib/i686/libc.so.6
#2 0x4012771e in operator new(unsigned) () from /usr/X11R6/lib/libGLU.so.1
#3 0x403a1900 in std::__default_alloc_template<true,
0>::allocate(unsigned) ()
from /usr/lib/libstdc++.so.5
#4 0x081eda30 in FGNavList::query(double, double, double, double,
FGNav*) (this=0x9144388,
lon=1.4066544783701858, lat=0.17856467335732401,
elev=3978.113809261698, freq=379,
n=0xbffff1b0) at /usr/include/c++/3.2/bits/stl_vector.h:123
#5 0x080b6d73 in FGKR_87::search() (this=0x98ae504) at kr_87.cxx:487
#6 0x080b2026 in FGRadioStack::search() (this=0x98ae448) at
radiostack.cxx:129
#7 0x080b21bb in fgMethodCallback<FGRadioStack*, void
(FGRadioStack::*)()>::operator()() (
this=0xc26e7a6) at ../../src/Include/fg_callback.hxx:117
#8 0x0824319f in FGEventMgr::FGEvent::run() (this=0x8fe6228) at
FGEventMgr.cxx:86
#9 0x08243530 in FGEventMgr::update(double) (this=0x83bce58,
dt=0.0066740000000000002)
at /usr/include/c++/3.2/bits/stl_iterator.h:596
#10 0x0805170a in fgRenderFrame() () at main.cxx:440
#11 0x08053388 in fgMainLoop () at main.cxx:1263
#12 0x40084df2 in glutMainLoop () from /usr/X11R6/lib/libglut.so.3
#13 0x4008406d in glutMainLoop () from /usr/X11R6/lib/libglut.so.3
#14 0x08054708 in fgMainInit (argc=1, argv=0xbffff774) at main.cxx:1729
#15 0x08054cff in main (argc=1, argv=0xbffff774) at main.cxx:1821
#16 0x40419082 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
- [Flightgear-devel] Failed assertion in ssg.h Geoff Reidy
- Re: [Flightgear-devel] Failed assertion in ssg.h Geoff Reidy
- Re: [Flightgear-devel] Failed assertion in ssg.h Curtis L. Olson
- Re: [Flightgear-devel] Failed assertion in ss... Geoff Reidy
- Re: [Flightgear-devel] Failed assertion in ssg.h Curtis L. Olson
- Re: [Flightgear-devel] Failed assertion in ssg.h Geoff Reidy
- Re: [Flightgear-devel] Failed assertion in ss... Curtis L. Olson
- Re: [Flightgear-devel] Failed assertion i... Geoff Reidy
- Re: [Flightgear-devel] Failed assert... Curtis L. Olson
- Re: [Flightgear-devel] Failed as... Geoff Reidy
