On Sun, 2008-10-19 at 12:27 +0100, James Turner wrote:
> On 18 Oct 2008, at 22:30, Alasdair Campbell wrote:
>
> > I wonder if anyone can confirm the following strange behaviour or give
> > me me a hint as to where to start looking? If I start up either the
> > CitatationX or the Bravo at EGPF (my local airport), on selecting
> > Autostart, fgfs gives me a segfault. Any other airport, everything
> > works
> > perfectly. I am using a fresh checkout of today's Simgear, FG source
> > and
> > data. You don't need the UK scenery to demonstrate this fault.
> >
> > dominatrix:~>fgfs --aircraft=CitationX --airport=EGPF
> > FGMultiplayMgr - No receiver port, Multiplayermode disabled
> > Electrical System ... ok
> > Flight Director ...Check
> > Primus 1000 systems ... check
> > Segmentation fault
>
> Yep, I'm getting this as well at EGPF, with either Citation. It's
> something to do with my FGPositioned changes, and *seems* to be
> related to the KLN89b / DCLGPS code - except as far as I can tell,
> neither Citation uses the KLN89b - in fact, the only aircraft that
> does is one of the c172 variants.
>
> I sort of assume it must happen at other airports, but since I often
> fly locally around that area, EGPF is always where i get it. Oh, it
> also crashes if you arrive at EGPF from outside - I did a flight
> around the western isles and down over Loch Lomond, and as I was
> manoeuvring to intercept the localiser of one of the runways, got the
> exact same crash. So it's something pretty weird.
>
> If it really is *only* EGPF that has this issue, that's even more
> weird, of course. Anyway, I am pretty sure this is my fault, I will
> dig into it tonight.
>
> James
>
The problem actually lies in Instrumentation/mk_viii.cxx in
MK_VIII::TCFHandler::update_runway, recently patched by yourself.
(gdb backtrace enclosed)
I am unsufficently clued up in c++ to figure out what this code is
trying to do, and I would be delighted if you could inform me why EGPF
breaks this code.
Kind regards, Alasdair
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
dominatrix:~>gdb fgfs
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /usr/local/bin/fgfs
[Thread debugging using libthread_db enabled]
[New Thread 0xb62146e0 (LWP 10229)]
[New Thread 0xb2df0b90 (LWP 10232)]
Error: connect() failed in make_client_socket()
SG_IO_OUT socket creation failed
VOICE: no connection to `localhost:1314'
[New Thread 0xb25efb90 (LWP 10233)]
[New Thread 0xb1bcdb90 (LWP 10234)]
[New Thread 0xb13ccb90 (LWP 10235)]
Electrical System ... ok
Flight Director ...Check
Primus 1000 systems ... check
Chat [*FGMS*] Welcome to pigeond.net
Chat [*FGMS*] using protocol version v1.1This server is tracked.
Chat [*FGMS*] alcam is now online, using
Chat [*FGMS*] Aircraft/CitationX/Models/Citation-X.xml
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb62146e0 (LWP 10229)]
0x083e0115 in MK_VIII::TCFHandler::update_runway (this=0xe94d95c)
at mk_viii.cxx:4545
4545 runway.center.latitude = _runway->latitude();
(gdb) backtrace
#0 0x083e0115 in MK_VIII::TCFHandler::update_runway (this=0xe94d95c)
at mk_viii.cxx:4545
#1 0x083e02f9 in MK_VIII::TCFHandler::update (this=0xe94d95c)
at mk_viii.cxx:4808
#2 0x083e8c16 in MK_VIII::update (this=0xe94d218, dt=0.016666666666666666)
at mk_viii.cxx:4954
#3 0x085ca0a9 in SGSubsystemGroup::Member::update (this=0xef408d0,
delta_time_sec=0.016666666666666666) at subsystem_mgr.cxx:309
#4 0x085cbdfe in SGSubsystemGroup::update (this=0xef7fe08,
delta_time_sec=0.016666666666666666) at subsystem_mgr.cxx:162
#5 0x085ca0a9 in SGSubsystemGroup::Member::update (this=0xefb2488,
delta_time_sec=0.016666666666666666) at subsystem_mgr.cxx:309
#6 0x085cbdfe in SGSubsystemGroup::update (this=0x8ee66dc,
delta_time_sec=0.016666666666666666) at subsystem_mgr.cxx:162
#7 0x08069d60 in fgMainLoop () at main.cxx:491
#8 0x080a6e42 in flightgear::FGManipulator::handle (this=0x8ee5470,
[EMAIL PROTECTED], [EMAIL PROTECTED]) at FGManipulator.cxx:183
#9 0xb773ea5d in osgViewer::Viewer::eventTraversal ()
from /usr/local/lib/libosgViewer.so.47
#10 0xb77488b3 in osgViewer::ViewerBase::frame ()
from /usr/local/lib/libosgViewer.so.47
#11 0xb7748c00 in osgViewer::ViewerBase::run ()
from /usr/local/lib/libosgViewer.so.47
---Type <return> to continue, or q <return> to quit---
#12 0xb773ac33 in osgViewer::Viewer::run ()
from /usr/local/lib/libosgViewer.so.47
#13 0x080adeb3 in fgOSMainLoop () at fg_os_osgviewer.cxx:194
#14 0x0806bd3d in fgMainInit (argc=1, argv=0xbf814e24) at main.cxx:1051
#15 0x0806787a in main (argc=-1120509451, argv=0x3febc82e) at bootstrap.cxx:177
(gdb)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel