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 - Joystick subsystem is corrupted if you unplug the first of >1 joysticks
Summary: Joystick subsystem is corrupted if you unplug the first of >1 joysticks
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.0
Hardware: All Linux
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 10:55 UTC by (disabled) Jørgen Tjernø
Modified: 2013-03-04 01:10 UTC (History)
0 users

See Also:


Attachments
Proposed fix (1.27 KB, patch)
2013-02-08 11:12 UTC, (disabled) Jørgen Tjernø
Details | Diff

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