Hi James,

Here is a bit more information.

I added some printf's before the call to findClosest(pos, maxRange,
&filter) in f_airportinfo()

The first time through, this seems to work, it returns a valid pointer,
which gets passed to hashForAirport(c, apt) a few lines later.

In hashForAirport() I also printed the name and id that FGAirport *apt
points to.  The first time through it prints "id = 58Q  name = Mazza"

The crash happens on the second time through this call sequence.

The second call to f_airportinfo() seems to follow the same logic and get
the same answer.  The FGAirport *apt pointer returned by findClosest() is
the same value as previously.  However when passing this to
hashForAirport() it appears that the references it apt->ident() and
apt->name() trigger a segfault.

I tried running with valgrind and the error didn't happen -- hmmm...

Trying it again, but a valgrind startup is excruciatingly slow ...

Curt.


On Tue, Apr 24, 2012 at 8:45 AM, James Turner <zakal...@mac.com> wrote:

>
> On 24 Apr 2012, at 14:39, Curtis Olson wrote:
>
> > For what it's worth, I'm seeing nearly the same thing ... similar back
> trace-- crashing in hashforairport() about 10-15 seconds after the splash
> screen has been removed and the sim presented for use.
>
> Okay, that's good news since it rules out something Thorsten specific. Can
> you see if the FGAirport* being passed to hashForAirport looks like a valid
> pointer?
>
> James
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>



-- 
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org - http://gallinazo.flightgear.org
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to