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

Summary: Linux: Haptic Subsystem doesn't shutdown cleanly, Segfaults on Second launch.
Product: SDL Reporter: Scott Mansell <phiren>
Component: hapticAssignee: Edgar Simo <bobbens>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: amaranth72, Sonicadvance1, tilkax
Version: 2.0.3   
Hardware: x86_64   
OS: Linux   

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.