I'm getting a segfault in a newly-compiled-from-cvs FlightGear: [EMAIL PROTECTED] jonathan]$ ls ~/.fgfsrc ls: /home/jonathan/.fgfsrc: No such file or directory [EMAIL PROTECTED] jonathan]$ fgfs --log-level=bulk <yadda yadda> Looking for bindings for joystick "Saitek Saitek X45" <cut> Trying "Saitek Saitek X45" Found bindings Initializing joystick 0 Reading all bindings <normal initialization for buttons <= 20> Reading all bindings Reading binding nasal Initializing button 21 Reading all bindings Reading binding nasal Initializing button 1012 Segmentation fault
The X45 has a lot of buttons, but there is no button 1012, of course. I deleted my locally edited X45.xml, but the same fault occurs with the CVS one. I eliminated the possibility of something in fgfsrc settings: [EMAIL PROTECTED] jonathan]$ ls ~.fgfsrc ls: ~.fgfsrc: No such file or directory Here's what gdb has to say: [EMAIL PROTECTED] jonathan]$ gdb /usr/local/bin/fgfs GNU gdb 5.3-22mdk (Mandrake Linux) Copyright 2002 Free Software Foundation, Inc. This GDB was configured as "i586-mandrake-linux-gnu"... (gdb) run Starting program: /usr/local/bin/fgfs [New Thread 16384 (LWP 4043)] [New Thread 32769 (LWP 4051)] [New Thread 16386 (LWP 4052)] Initializing OpenAL sound manager [New Thread 32771 (LWP 4053)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 4043)] 0x0826b506 in FGInput::_init_button(SGPropertyNode const*, FGInput::button&, std::string) (this=0xa43ee58, node=0x8a9a898, [EMAIL PROTECTED]) at input.cxx:625 625 b.is_repeatable = node->getBoolValue("repeatable", b.is_repeatable); (gdb) where #0 0x0826b506 in FGInput::_init_button(SGPropertyNode const*, FGInput::button&, std::string) (this=0xa43ee58, node=0x8a9a898, [EMAIL PROTECTED]) at input.cxx:625 #1 0x082688c7 in FGInput::_init_joystick() (this=0xa43ee58) at /usr/include/c++/3.2.2/bits/stl_alloc.h:664 #2 0x08267118 in FGInput::init() (this=0xa43ee58) at input.cxx:174 #3 0x0837f860 in SGSubsystemGroup::init() (this=0x874e36c) at /usr/include/c++/3.2.2/bits/stl_vector.h:289 #4 0x0838031d in SGSubsystemMgr::init() (this=0x874e350) at subsystem_mgr.cxx:250 #5 0x080676bd in fgInitSubsystems() () at fg_init.cxx:1761 #6 0x08055b78 in fgIdleFunction () at main.cxx:1400 #7 0x0807e924 in GLUTidle () at fg_os.cxx:110 #8 0x4008ffb8 in __glutRegisterEventParser () from /usr/X11R6/lib/libglut.so.3 #9 0x080520af in main (argc=1, argv=0xbffff5f4) at bootstrap.cxx:148 #10 0x404de7f7 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) Running on Mandrake Linux 9.1, kernel 2.4.21, XFree86 4.3, KDE 3.1 I notice that src/Input/input.cxx is dated today... // $Id: input.cxx,v 1.45 2004/04/28 08:03:40 ehofman Exp $ Is this something to do with the changes to accommodate both unix and windows axis mappings? Regards Jonathan _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel