From Yahoo Groups thread "Has this problem with RealFlight 2 Interlink Controller already been solved?"
Crash occurs at the moment "configure" is clicked.
Mandriva 2008 and 2.6.2.9 kernel as shown in dump. The Nvidia driver is the one that Mandriva bundles in -- I haven't touched it.
[root@amdk6300 crrcsim-0.9.8-2]# gdb ./crrcsim
GNU gdb 6.6-3mdv2008.0 (Mandriva Linux release 2008.0)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-mandriva-linux-gnu"...
Using host libthread_db library "/lib/i686/libthread_db.so.1".
(gdb) r
Starting program: /home/steve/kits/crrcsim-0.9.8-2/crrcsim
[Thread debugging using libthread_db enabled]
[New Thread -1226885392 (LWP 7836)]
CRRCsim 0.9.8
Running on Linux 2.6.22.9-desktop586-2mdv
Using plib version 1.8.4
Compiled with SDL version 1.2.12
(Linked SDL version is 1.2.12)
RAND_MAX = 2147483647
Configuration file is /root/.crrcsim/crrcsim.xml
Configuration version is 2
T_Config: Setting location to scenery/cape_cod-orig.xml
Thermals: strength_mean=5.000000 strength_sigma=1.000000 radius_mean=70.000000 radius_sigma=10.000000
Thermals: density=0.000002 lifetime_mean=240.000000 lifetime_sigma=60.000000
Wind: velocity=14.000000 ft/sec direction=270.000000
std::string reconfigureInputMethod()
New input method: JOYSTICK
T_TX_Interface::T_TX_Interface
T_TX_InterfaceSoftware::T_TX_InterfaceSoftware(int method)
T_TX_Mixer::T_TX_Mixer()
T_Calibration::T_Calibration()
int T_TX_InterfaceSoftware::init(SimpleXMLTransfer* config)
int T_TX_Interface::init(SimpleXMLTransfer* config)
T_TX_Mixer::init(cfg, child)
<-- inputMethod.joystick
T_AxisMapper::init(cfg, child)
<-- inputMethod.joystick
T_Calibration::init(cfg, child)
<-- inputMethod.joystick
TInputDev::openJoystick: SDL found 1 joysticks
0: GREAT PLANES I-Controller
Trying to open joystick 0
Opened Joystick 0
Name: GREAT PLANES I-Controller
Number of Axes: 41
Number of Buttons: 5
Loading default videomode from config...
Using the following rendering mode:
Renderer: GeForce4 MX 440 with AGP8X/AGP/SSE/3DNOW!
Vendor: NVIDIA Corporation
GL version: 1.5.8 NVIDIA 96.39
RGBA bpp: 8/8/8/0
Depth bpp: 24
Stencil bpp: 0
[New Thread -1252873328 (LWP 7839)]
Opened audio device: 16 bit signed audio (mono) at 48000 Hz
Initialized sine samples: 480
Initializing scenery CAPE_COD from file: scenery/cape_cod-orig.xml
Default wind from scenery: 14.00 ft/s at 270.00 deg
Sloping.
Wind: velocity=14.000000 ft/sec direction=270.000000
--- void ThermikSchalen::init ---------------------------
inner:
dzu_y = 0.916667
dzl_y = 0.0833333
iu_y = 0.566667
il_y = 0.433333
ol_x = -0.0333333
ol_y = 0.166667
ou_x = -0.05
ou_y = 0.833333
outer:
dzu_y = 0.916667
dzl_y = 0.0833333
iu_y = 0.5
il_y = 0.5
ol_x = 0.108333
ol_y = 0.5
ou_x = 0.108333
ou_y = 0.5
r_ref = 0.0333333
r_max = 0.149953
Upwards velocity at lower end is 1.5625 times upwards velocity at average height.
---------------------------------------------------------
Using Thermal Simulation v3
Sloping.
trimmedFlightVelocity = 10.0486 m/s
--- Airplane description: ---------------------------------------
Wingspan: 1.99644 m
Mass: 0.963198 kg
Velocity in trimmed flight: 10.0486 m/s
-----------------------------------------------------------------
soundfile: sounds/fan.wav
soundserver: 0x85e5810
Using airplane sound sounds/fan.wav, type 0, max vol 1
CRRCAirplaneLaRCSimSSG(xml, branch)
initAnimations: found 2 children
initAnimations: found animation node tail, type ControlSurface
initAnimations: found animation node fin, type ControlSurface
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226885392 (LWP 7836)]
0xb7bf7100 in __malloc_initialize_hook () from /lib/i686/libc.so.6
Current language: auto; currently c
(gdb) bt
#0 0xb7bf7100 in __malloc_initialize_hook () from /lib/i686/libc.so.6
#1 0x080e1c69 in CRRCDialog::setSize (this=0x8740960, w=545, h=275) at GUI/crrc_dialog.cpp:140
#2 0x08103d08 in CGUICalibMapDialog (this=0x8740960) at GUI/crrc_calibmap.cpp:174
#3 0x080e5d47 in CGUICalibrateButtonCallback (obj=0x877b7d0) at GUI/crrc_ctrlgen.cpp:361
#4 0x081aad75 in puButton::doHit (this=0x877b7d0, button=0, updown=1, x=206, y=188) at pu.h:694
#5 0x081b1482 in puOneShot::doHit (this=0x877b7d0, button=0, updown=1, x=206, y=188) at puOneShot.cxx:32
#6 0x081aff28 in puObject::checkHit (this=0x877b7d0, button=0, updown=1, x=206, y=188) at puObject.cxx:508
#7 0x081ad03d in puGroup::checkHit (this=0x873ca40, button=0, updown=1, x=<value optimized out>, y=<value optimized out>) at puGroup.cxx:218
#8 0x081aaa33 in puMouse (button=0, updown=1, x=646, y=460) at pu.cxx:366
#9 0x080de536 in CGUIMain::mouseButtonUpHandler (this=0x86a7a78, btn=1, x=646, y=460) at GUI/crrc_gui_main.cpp:309
#10 0x080546ef in handle_events () at crrc_main.cpp:488
#11 0x080568ae in main (argc=1, argv=0xbf935184) at crrc_main.cpp:977
(gdb) q
The program is running. Exit anyway? (y or n) y
Logged In: YES
user_id=712954
Originator: NO
Please try if the attached patch fixes the problem. Just copy the file into the crrcsim-0.9.8-2 source directory and apply it by typing "patch -p0 < getNumAxes.patch".
Kind regards,
Jan R.
File Added: getNumAxes.patch
Possible fix