Project

General

Profile

Actions

Emulator Issues #7486

closed

SDL/Linux: segfault on second game launch if haptic compatible controller plugged in.

Added by phire almost 10 years ago.

Status:
Fixed
Priority:
High
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Current
Regression:
Yes
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Issue with sdl 2.03

This bug has been forwarded upstream.

https://bugzilla.libsdl.org/show_bug.cgi?id=2648


Related issues 5 (0 open5 closed)

Has duplicate Emulator - Emulator Issues #7268: Segfault on Debian SidDuplicate

Actions
Has duplicate Emulator - Emulator Issues #7559: Segfault when refreshing available input sources in GCPad menuDuplicate

Actions
Has duplicate Emulator - Emulator Issues #7885: Dolphin crashes every other startup (linux)Duplicate

Actions
Has duplicate Emulator - Emulator Issues #7931: [Linux] Launching a game directly after changing settings will crashDuplicate

Actions
Blocks Emulator - Emulator Issues #8630: SDL: Dolphin ignores SIGTERM and SIGINTFixedphire

Actions
Actions #1

Updated by phire almost 10 years ago

Bug also effects sdl 2.02

Another way to trigger this bug is the refresh button in the controller settings.

Actions #2

Updated by phire almost 10 years ago

  • Milestone set to Current

Doesn't look like upstream are rushing to fix this. We might need a work around for this.

(Maybe as simple as disabling haptic support in dolphin if sdl 2.02 or 2.03 is detected.)

Actions #3

Updated by phire almost 10 years ago

Issue 7268 has been merged into this issue.

Actions #4

Updated by flacs over 9 years ago

Issue 7559 has been merged into this issue.

Actions #5

Updated by flacs over 9 years ago

Fixed upstream. No stable release yet, so Dolphin could still use a workaround.

Actions #6

Updated by JMC4789 over 9 years ago

Any update on this?

Actions #7

Updated by littlegreendude55 over 9 years ago

IT sounds like the sdl project is looking at a 2.0.4 release. I'm assuming that that will fix this issue. http://forums.libsdl.org/viewtopic.php?t=10532 Could still be a while before that is released and gets into ubuntu.

Actions #8

Updated by thePalindrome over 9 years ago

I installed the version that's posted in the link, and it doesn't seem to fix the issue. I think it's strange because it should've been fixed upstream already :/

Actions #9

Updated by Sonicadvance1 over 9 years ago

Issue 7885 has been merged into this issue.

Actions #10

Updated by guitaristocrat3 over 9 years ago

this issue no longer occurs for me in latest mater (4.0-4843). i can refresh my controller inputs in config and close and start multiple games in one session without the emulator crashing now. this is using Ubuntu 14.10 and a dualshock 3 controller.

Actions #11

Updated by littlegreendude55 over 9 years ago

This is still an issue for me with sdl2.0.3 on 5099 using the 2 port mayflash adaptor. (Archlinux)

Actions #12

Updated by sergiobenrocha2 about 9 years ago

I'm having this issue in both ubuntu 14.04 and 14.10 (4.0-5456). @guitaris, had you tested with newer version?

Actions #13

Updated by zype.zype about 9 years ago

Problem solved for me.

It happened last time in 5100, after building and installing 5474 it was solved.

I use an up-to-date debian Sid:
libsdl1.2-dev 1.2.15-10+b1
libsdl2-dev 2.0.2+dfsg1-6

Actions #14

Updated by phire about 9 years ago

  • Regression set to Yes
  • Priority set to High

As there is still no 2.0.4 release upstream (and some OS releases will never upgrade to it, this needs a workaround.

Actions #15

Updated by wifomstaff about 9 years ago

The current work around I'm using is the mercurial dev build.
https://www.libsdl.org/hg.php

This works as far back as 4.0-652 (as far back a build I use) and still works in the latest master I tried 4.0-5734.

I'm using Linux Mint 17.1 and Mayflash 2 port GC adapter

Actions #16

Updated by wifomstaff about 9 years ago

Well my work-around(mercurial dev build) now appears to have been breaking netplay for any build starting with 4.0-5681 and SDL 2.0.2 works fine with 4.0-5886 (didn't test anything earlier).

Actions #17

Updated by corona.gabriel almost 9 years ago

A (crappy) workaround is to add this to any source file of dolphin:

#include <dlfcn.h>
static int (*real_strcmp)(const char *str1, const char *str2);
extern "C" int strcmp(const char *str1, const char *str2)
{
if (str1 == NULL)
return str2 == NULL ? 0 : 1;
else if (str2 == NULL)
return -1;

if (!real_strcmp)
real_strcmp = (int (*)(const char *str1, const char *str2)) dlsym(RTLD_NEXT, "strcmp");
return real_strcmp(str1, str2);
}

Actions #18

Updated by phire almost 9 years ago

It's not the worst workaround I've seen...

Actions #19

Updated by tueidj almost 9 years ago

You could be a bit less crappy and actually implement strcmp, instead of praying it's exported by something else and crashing when it's not.

Actions #21

Updated by phire almost 9 years ago

  • Status changed from New to Work started

Rather than do anything crazy like overriding strcmp, disabling rumble or statically building sdl into dolphin; I'm going to remove SDL and replace it with a evdev based input backend.

SDL is more or less just a thin wrapper around evdev anyway.

Actions #23

Updated by JMC4789 almost 9 years ago

Issue 7931 has been merged into this issue.

Actions #24

Updated by phire almost 9 years ago

  • Status changed from Work started to Fix pending
Actions #25

Updated by phire almost 9 years ago

  • Status changed from Fix pending to Fixed

Now in Master

Actions

Also available in: Atom PDF