Hello,
after I had noticed that FlightGear 0.9.5 (which comes with Debian sid)
provides support for my Saitek Cyborg Evo, I wanted to use this. But
because it is detected as "Saitek Cyborg USB Stick" (it is an Evo,
though), I modified the name in the respective XML file. But now it
SIGSEGVs. I recompiled my Debian package with debugging symbols and
asked GDB for a backtrace:
-- snip --
(gdb) run --nmea=socket,out,0.5,localhost,6400,udp --aircraft=bo105 --airport=KNRC
Starting program: /usr/games/fgfs --nmea=socket,out,0.5,localhost,6400,udp
--aircraft=bo105 --airport=KNRC
[Thread debugging using libthread_db enabled]
[New Thread 1096063136 (LWP 8342)]
Failed to find runway 28R at airport KNRC
[New Thread 1257659312 (LWP 8345)]
Initializing OpenAL sound manager
[New Thread 1327995824 (LWP 8346)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1096063136 (LWP 8342)]
0x082e1de1 in FGInput::_read_bindings (this=0xa2581c0, node=0x8875258,
binding_list=0xa6e4444,
modifiers=0) at new:92
92 inline void* operator new(std::size_t, void* __p) throw() { return __p; }
(gdb) bt full
#0 0x082e1de1 in FGInput::_read_bindings (this=0xa2581c0, node=0x8875258,
binding_list=0xa6e4444,
modifiers=0) at new:92
i = 0
bindings = {<std::_Vector_base<SGPropertyNode_ptr, std::allocator<SGPropertyNode_ptr> >> =
{<std::_Vector_alloc_base<SGPropertyNode_ptr, std::allocator<SGPropertyNode_ptr>, true>> = {
_M_start = 0x4f3628f0, _M_finish = 0x4f3628f4,
_M_end_of_storage = 0x4f3628f4}, <No data fields>}, <No data fields>}
#1 0x082e3192 in FGInput::_init_button (this=0x1, node=0x8875258, [EMAIL PROTECTED],
name=Cannot access memory at address 0xffffffff
) at input.cxx:643
No locals.
#2 0x082dfd7f in FGInput::_init_joystick (this=0xa2581c0) at stl_alloc.h:652
axis_node = (const struct SGPropertyNode *) 0x8874938
num_node = (const struct SGPropertyNode *) 0x1
n_axis = 3221221760
a = (FGInput::axis &) @0xa6e435c: {_vptr.axis = 0x1a89, last_value =
4.48415509e-44,
tolerance = 0.00200000009, bindings = {
{<std::_Vector_base<FGBinding*, std::allocator<FGBinding*> >> =
{<std::_Vector_alloc_base<FGBinding*, std::allocator<FGBinding*>, true>> = {_M_start = 0x0, _M_finish =
0x0,
_M_end_of_storage = 0x0}, <No data fields>}, <No data fields>},
{<std::_Vector_base<FGBinding*, std::allocator<FGBinding*> >> =
{<std::_Vector_alloc_base<FGBinding*, std::allocator<FGBinding*>, true>> = {_M_start = 0xffffffff,
_M_finish = 0x0,
_M_end_of_storage = 0x0}, <No data fields>}, <No data fields>},
{<std::_Vector_base<FGBinding*, std::allocator<FGBinding*> >> =
{<std::_Vector_alloc_base<FGBinding*, std::allocator<FGBinding*>, true>> = {_M_start = 0x0, _M_finish =
0x0,
_M_end_of_storage = 0x0}, <No data fields>}, <No data fields>} <repeats 14
times>},
low_threshold = 0, high_threshold = 0, low = {_vptr.button = 0x0, is_repeatable =
true,
interval_sec = 5.59611351e-34, last_dt = 0, last_state = 0, bindings = {
{<std::_Vector_base<FGBinding*, std::allocator<FGBinding*> >> =
{<std::_Vector_alloc_base<FGBinding*, std::allocator<FGBinding*>, true>> = {_M_start = 0x0, _M_finish =
0xffffffff,
_M_end_of_storage = 0x0}, <No data fields>}, <No data fields>},
{<std::_Vector_base<FGBinding*, std::allocator<FGBinding*> >> =
{<std::_Vector_alloc_base<FGBinding*, std::allocator<FGBinding*>, true>> = {_M_start = 0x0, _M_finish =
0x0,
_M_end_of_storage = 0x0}, <No data fields>}, <No data fields>} <repeats 15
times>}},
high = {_vptr.button = 0x0, is_repeatable = false, interval_sec = 5.59611351e-34,
last_dt = 0,
last_state = 0, bindings = {
{<std::_Vector_base<FGBinding*, std::allocator<FGBinding*> >> =
{<std::_Vector_alloc_base<FGBinding*, std::allocator<FGBinding*>, true>> = {_M_start = 0x0, _M_finish =
0xffffffff,
_M_end_of_storage = 0x0}, <No data fields>}, <No data fields>},
{<std::_Vector_base<FGBinding*, std::allocator<FGBinding*> >> =
{<std::_Vector_alloc_base<FGBinding*, std::allocator<FGBinding*>, true>> = {_M_start = 0x0, _M_finish =
0x0,
_M_end_of_storage = 0x0}, <No data fields>}, <No data fields>} <repeats 15
times>}},
interval_sec = 0, last_dt = 4.9144496156104065e-269}
i = 0
js_nodes = (struct SGPropertyNode *) 0x84bbbf8
#3 0x082de3ec in FGInput::init (this=0xa2581c0) at input.cxx:174
No locals.
#4 0x4019d271 in SGSubsystemGroup::init () from /usr/lib/libsgstructure.so.0
No symbol table info available.
#5 0x4019e053 in SGSubsystemMgr::init () from /usr/lib/libsgstructure.so.0
No symbol table info available.
#6 0x08072269 in fgInitSubsystems () at fg_init.cxx:1791
longitude = (const struct SGPropertyNode *) 0x0
latitude = (const struct SGPropertyNode *) 0x0
cloud_path = {path = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<No data fields>}, _M_p = 0x41059b60
"\200\213É"},
static _S_empty_rep_storage = {0, 0, 0, 0}}}
mpath = {path = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<No data fields>},
_M_p = 0x4a1c8e94 "/usr/share/games/FlightGear/materials.xml"}, static
_S_empty_rep_storage = {0,
0, 0, 0}}}
panel_path = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<No data fields>},
_M_p = 0x4f33d2a4 "Aircraft/c172/Panels/c172-vfr-panel.xml"}, static
_S_empty_rep_storage = {0, 0,
0, 0}}
#7 0x0805e905 in fgIdleFunction () at main.cxx:1423
No locals.
#8 0x0808cad3 in GLUTidle () at fg_os.cxx:114
No locals.
#9 0x4052fc67 in glutMainLoop () from /usr/lib/libglut.so.3
No symbol table info available.
#10 0x0806007c in fgMainInit (argc=4, argv=0xbffff7e4) at main.cxx:1796
i = 151199952
version = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<No data fields>}, _M_p = 0x841c754 "unknown
version"},
static _S_empty_rep_storage = {0, 0, 0, 0}}
required_version = "0.9.5"
base_version = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<No data fields>}, _M_p = 0x841cb74 "0.9.5"},
static _S_empty_rep_storage = {0, 0, 0, 0}}
tmp = 24
t = (SGTime *) 0x1
ephem_data_path = {path = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<No data fields>},
_M_p = 0x4a1c6a84 "/usr/share/games/FlightGear/Astro"}, static
_S_empty_rep_storage = {0, 0, 0,
0}}}
texture_path = {path = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<No data fields>},
_M_p = 0x49999ee4 "/usr/share/games/FlightGear/Textures/Sky"}, static
_S_empty_rep_storage = {0,
0, 0, 0}}}
sky_tex_path = {path = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<No data fields>},
_M_p = 0x499f98cc "/usr/share/games/FlightGear/Textures/Sky"}, static
_S_empty_rep_storage = {0,
0, 0, 0}}}
#11 0x0805acb9 in main (argc=1, argv=0x1) at bootstrap.cxx:175
No locals.
-- snap --
I hope this will help you.
I am afraid I am absolutely unfamiliar with the FlightGear internals.
Please ask me if you need further information.
SÃren
PS: Please CC me.
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d