You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to a new Mac Mini M4 I encountered segmentation faults running MAME with my Speedlink Competition Pro joystick attached. The same joystick worked fine with my Fedora Linux machine and old Intel Mac.
After some investigation I've pinned this down to SDL and the following simple test application exhibits the same behaviour using SDL2 version 2.32.0:
int main()
{
std::cout << "Calling SDL_init\n";
if (SDL_Init(SDL_INIT_JOYSTICK) < 0)
{
std::cout << "Could not initialize\n";
return 1;
}
else
{
std::cout << "init OK\n";
}
if (SDL_NumJoysticks() == 0)
{
std::cout << "No joysticks found\n";
return 1;
}
std::cout << SDL_NumJoysticks() << " joysticks found" << std::endl;
}
With the joystick attached it crashes inside SDL_Init() due to what looks like memory corruption.
I also found that the Amiga emulator FS-UAE works fine. As this is bundled with a much older framework I tried using SDL2 version 2.0.20. With this old version both my test application and MAME work fine. Therefore, this looks like a possible regression error, but I don't know when it was introduced.
I guess I would need to keep trying different releases first to find out when it broke. So far all I've tried is 2.30.10, 2.32.0 and 2.0.20. I don't have time to look tonight but can try next week if nobody has tracked it down by then.
After upgrading to a new Mac Mini M4 I encountered segmentation faults running MAME with my Speedlink Competition Pro joystick attached. The same joystick worked fine with my Fedora Linux machine and old Intel Mac.
After some investigation I've pinned this down to SDL and the following simple test application exhibits the same behaviour using SDL2 version 2.32.0:
With the joystick attached it crashes inside SDL_Init() due to what looks like memory corruption.
I also found that the Amiga emulator FS-UAE works fine. As this is bundled with a much older framework I tried using SDL2 version 2.0.20. With this old version both my test application and MAME work fine. Therefore, this looks like a possible regression error, but I don't know when it was introduced.
Please see original MAME issue report from 2023:
mamedev/mame#11568
Here is my test application stack trace in case that helps:
The text was updated successfully, but these errors were encountered: