Floating Point Exception with sdl 1.2.7 and joystick

Hello,

i have attached a thrustmaster enzo ffb usb wheel
to a linux 2.4.26 box. All sdl applications that
use sdl for joystick handling bail out with
sdl-parachute message: Floating Point Exception

strace outputs:

open("/dev/input/event0", O_RDONLY) = 10
fcntl64(10, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
ioctl(10, 0x80a04521, 0xbffff410) = 64
ioctl(10, 0x80a04523, 0xbffff370) = 4
ioctl(10, 0x80a04522, 0xbffff2d0) = 4
ioctl(10, 0x80144540, 0xbffff2b0) = 0
ioctl(10, 0x80144541, 0xbffff2b0) = 0
ioctl(10, 0x80144542, 0xbffff2b0) = 0
ioctl(10, 0x8014454b, 0xbffff2b0) = 0
ioctl(10, 0x8014454c, 0xbffff2b0) = 0
ioctl(10, 0x8014454d, 0xbffff2b0) = 0
ioctl(10, 0x8014454e, 0xbffff2b0) = 0
ioctl(10, 0x8014455c, 0xbffff2b0) = 0
— SIGFPE (Floating point exception) @ 0 (0) —

the applications i tested are all threading applications,
so gdb output is useless.

I asume on the strace output, that sdl inits
the 3 axis + 8 buttons. So this is just an
idea: The wheel has 3 axis + 14 buttons…
could this be the problem?

Is this a known problem, if so, are there any
workarounds or fixes available?

Thanx,
Heiko

Heiko Irrgang wrote:

Hello,

i have attached a thrustmaster enzo ffb usb wheel
to a linux 2.4.26 box. All sdl applications that
use sdl for joystick handling bail out with
sdl-parachute message: Floating Point Exception

strace outputs:

open("/dev/input/event0", O_RDONLY) = 10
fcntl64(10, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
ioctl(10, 0x80a04521, 0xbffff410) = 64
ioctl(10, 0x80a04523, 0xbffff370) = 4
ioctl(10, 0x80a04522, 0xbffff2d0) = 4
ioctl(10, 0x80144540, 0xbffff2b0) = 0
ioctl(10, 0x80144541, 0xbffff2b0) = 0
ioctl(10, 0x80144542, 0xbffff2b0) = 0
ioctl(10, 0x8014454b, 0xbffff2b0) = 0
ioctl(10, 0x8014454c, 0xbffff2b0) = 0
ioctl(10, 0x8014454d, 0xbffff2b0) = 0
ioctl(10, 0x8014454e, 0xbffff2b0) = 0
ioctl(10, 0x8014455c, 0xbffff2b0) = 0
— SIGFPE (Floating point exception) @ 0 (0) —

the applications i tested are all threading applications,
so gdb output is useless.

I asume on the strace output, that sdl inits
the 3 axis + 8 buttons. So this is just an
idea: The wheel has 3 axis + 14 buttons…
could this be the problem?

Is this a known problem, if so, are there any
workarounds or fixes available?

There’s a workaround for something similar (although for 2.6 kernels) in
cvs. Does it work for you if you use latest cvs ?

Stephane

Stephane Marchesin <stephane.marchesin wanadoo.fr> writes:

There’s a workaround for something similar (although for 2.6 kernels) in
cvs. Does it work for you if you use latest cvs ?

Yes, cvs works, thanx

Heiko