[SDL] segfault when trying to close joystick

Ryan C. Gordon icculus at icculus.org
Mon Mar 11 12:21:52 PDT 2013

> In SDL_sysjoystick.c (around line 984) it crashes just after the close(
> joystick->hwdata->fd ), when the function returns from this,
> joystick->hwdata is reset to a NULL pointer, and the following if
> statement crashes.

Are you closing the joystick (or quitting the subsystem) from two 
threads at once?


More information about the SDL mailing list