On Saturday 13 October 2007 22:43, Melchior FRANZ wrote:
> * Melchior FRANZ -- Saturday 13 October 2007:
> > Whatever ... you deleted something too much.
Okay, this should be fixed now: Navaid objects were shared by the TACAN and
DME lists. Changing the regular pointer to an SGSharedPointer appears to do
the trick.
>
> Oh, and I also just got a crash that I've never seen before
> (although tower.cxx never ceases to surprise me :-), and straight
> from FGGlobals:
>
> #0 0x080ce81b in ~FGTower (this=0xb2c46c4) at src/ATC/tower.cxx:228
> #1 0x080a8fcc in ~FGATCMgr (this=0xb2c45a8) at src/ATC/ATCmgr.cxx:85
> #2 0x08054bad in ~FGGlobals (this=0x8a42a90) at src/Main/globals.cxx:131
> #3 0x0805208c in fgExitCleanup () at src/Main/bootstrap.cxx:246
>
> #0 0x080ce81b in ~FGTower (this=0xb2c46c4) at src/ATC/tower.cxx:228
> 228 delete ground;
> (gdb) list
> 223 _departureControlled = false;
> 224 }
> 225
> 226 FGTower::~FGTower() {
> 227 if(!separateGround) {
> 228 delete ground;
> 229 }
> 230 }
> 231
> 232 void FGTower::Init() {
>
I couldn't replicate this crash sofar, but did find a possible vulnerability
in the tower constructor. The variable ground was never set to zero in the
tower constructor, so I guess deleting this non initialized pointer caused
the crash. Please try and see if my latest commit fixes this...
Cheers,
Durk
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel