We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1074

Summary: SDL crashes when using hat
Product: SDL Reporter: nn.dm55
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: jspradlin
Version: 1.2.14   
Hardware: x86   
OS: Linux   
Attachments: This is the backtrace after pressing the hat on Battle Tanks, which uses SDL for the joystick

Description nn.dm55 2010-11-07 14:38:43 UTC
Created attachment 544 [details]
This is the backtrace after pressing the hat on Battle Tanks, which uses SDL for the joystick

When I'm playing a game that uses SDL for a Logitech Force 3d Pro joystick on openSUSE 11.3 with kernel 2.6.34, it has a segmentation fault.
Comment 1 Jen Spradlin 2011-04-12 20:09:32 UTC
Thank you for your bug report!

We're busy working on getting SDL 1.3 ready for a high quality release, and want to make sure as many things are fixed there as possible.
Could you check to see if your bug is resolved by the latest SDL 1.3 snapshot?
http://www.libsdl.org/tmp/SDL-1.3.zip

Thanks!
Comment 2 Ryan C. Gordon 2011-12-30 01:06:39 UTC
I think some unrelated fixes to the joystick code probably solved this bug (the patches to read the proper sizeof the kernel event structure), but just in case, I put some sanity checks in. hg changeset ce2493a9cefb should prevent this crash, if we haven't actually fixed this properly elsewhere.

--ryan.