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 1714

Summary: Joystick subsystem is corrupted if you unplug the first of >1 joysticks
Product: SDL Reporter: (disabled) Jørgen Tjernø <jorgen>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Linux   
Attachments: Proposed fix

Description (disabled) Jørgen Tjernø 2013-02-08 10:55:34 UTC
If you connect two joysticks, then remove the first one, the internal state of the joystick subsystem is corrupted. Calling things like SDL_JoystickOpen(0) and SDL_JoystickGetDeviceGUID(0) will segfault (dereference NULL).
Comment 1 (disabled) Jørgen Tjernø 2013-02-08 11:12:31 UTC
Created attachment 1038 [details]
Proposed fix