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 - SDL crashes when using hat
Summary: SDL crashes when using hat
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 1.2.14
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-07 14:38 UTC by nn.dm55
Modified: 2011-12-30 01:06 UTC (History)
1 user (show)

See Also:


Attachments
This is the backtrace after pressing the hat on Battle Tanks, which uses SDL for the joystick (4.67 KB, text/plain)
2010-11-07 14:38 UTC, nn.dm55
Details

Note You need to log in before you can comment on or make changes to this bug.
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.