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 2648 - Linux: Haptic Subsystem doesn't shutdown cleanly, Segfaults on Second launch.
Summary: Linux: Haptic Subsystem doesn't shutdown cleanly, Segfaults on Second launch.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: haptic (show other bugs)
Version: 2.0.3
Hardware: x86_64 Linux
: P2 normal
Assignee: Edgar Simo
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-17 08:38 UTC by Scott Mansell
Modified: 2014-08-11 06:56 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Mansell 2014-07-17 08:38:12 UTC
When a Haptic compatible joystick is connected, calling SDL_Quit causes the haptic subsystem to corrupt the SDL_hapticlist linked list.

The next time SDL_HapticOpenFromJoystick is called, SDL segfaults trying to read the linked list.

Looks like the bug was introduced in this change: http://hg.libsdl.org/SDL/rev/3b7bb407fcf7
Comment 1 Alex Szpakowski 2014-07-30 01:50:33 UTC
Does this bug still happen with the latest Mercurial revision of SDL?
Comment 2 Tillmann Karras 2014-08-11 06:56:31 UTC
Multiple users (including me) have tried the latest Mercurial revision and say it's fixed.