Emulator Issues #7268
closedSegfault on Debian Sid
0%
Description
What's the problem? Describe what went wrong in few words.
The emulator itself makes segfaults on new thread opening.
More exactly, it segfaults on the second window (game/menu)
What did you expect to happen instead?
Not segfaulting i guess ^^
What steps will reproduce the problem?
[Don't assume we have ever played the game and know any level names. Be as
specific as possible.]
1.Open any menu
2.Close it
3.Play a game
Dolphin 3.5 and 3.5-367 are old versions of Dolphin that have
known issues and bugs, so don't report issues about them and test the
latest Dolphin version first.
Which versions of Dolphin did you test on?
Does using an older version of Dolphin solve your issue? If yes, which
versions of Dolphin used to work?
What are your PC specifications? (including, but not limited to: Operating
System, CPU and GPU)
OS
Debian Sid with free radeon drivers.
Processeur CPU
Intel Core i7 920 @ 2.67GHz
Technologie Bloomfield 45nm
RAM
4,00 Go Canal-Triple DDR3 @ 534 MHz (8-8-8-20)
Carte mère Mothercard
ASUSTeK Computer INC. P6T (LGA1366)
Graphiques
PL2409HD (1920x1080@60Hz)
SyncMaster (1280x1024@60Hz)
ATI Radeon HD 5800 Series (XFX Pine Group)
Disques durs HDD/SSD
932 Go SAMSUNG HD103SJ ATA Device (SATA)
112 Go Corsair Force 3 SSD SCSI Disk Device (SSD)
224 Go INTEL SS DSC2CT240A3 SCSI Disk Device (SSD)
Disques optiques
SJE 6RGDM3K5MZK SCSI CdRom Device
HL-DT-ST BD-RE BH08LS20 ATA Device
Audio
Creative X-Fi Audio Processor (WDM)
Are you using the 32 or the 64 bit version of Dolphin?
64
Is there any other relevant information? (e.g. logs, screenshots,
configuration files)
I build dolphin-emu with CMAKE_BUILD_TYPE=Debug and ran it into gdb :
http://pastie.org/9160417
Updated by Sonicadvance1 over 10 years ago
- Status changed from New to Questionable
Don't run Dolphin under GDB, our JIT core relies on sigsegv to happen for quick memory accesses.
Updated by pauldacheez over 10 years ago
FYI, you can disable that behavior by appending "Fastmem = false" (or something like that) to ~/.dolphin-emu/Config/Dolphin.ini.
Updated by zype.zype over 10 years ago
@Sonicadvance1:
Do you mean that segfaults happen all the time in dolphin ?
Anyway, here this segfault make dolphin crash and quit immediately after without any messages nor log.
@pauldacheez:
I deactivated fastmem, and I ran dolphin again into gdb, it reacted exactly same wise.
Here is the debug log :
http://pastie.org/9160417
Updated by degasus over 10 years ago
Could you please also post a gdb backtrace? strcmp could be everywhere in our code.
Updated by zype.zype over 10 years ago
Ok, but now the linux building is broken.
/usr/local/src/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp:318:85: error: ‘avcodec_encode_video’ was not declared in this scope
Maybe should I open a new issue for that ?
Updated by flacs over 10 years ago
- Status changed from Questionable to Accepted
- Priority set to High
- Operating system N/A added
No, we already have issue 6664 and PR 362 (unfinished and broken). Theoretically, turning off ENCODE_FRAMEDUMPS in the CMake options should allow you to compile Dolphin without ffmpeg/libav, but, alas, that just turns off the check and you'll probably get an error at compile time...
If you just want to get a build compiled and you don't care about frame dumping, just comment out the function call as a quick workaround.
And yes, memory accesses to variable offsets are optimized optimistically and if they ever access MMIO addresses Dolphin segfaults and patches in a function call.
Updated by flacs over 10 years ago
I actually meant issue 5419, issue 6664 is a different problem.
Updated by zype.zype over 10 years ago
Well I'm unfamiliar with this option, I tried to set it to False, 0 and off but it kept failing :
Updated by flacs over 10 years ago
The CMake option doesn't work. You need to edit the source.
Updated by zype.zype over 10 years ago
I set this in CMakeLists.txt
option(ENCODE_FRAMEDUMPS "Encode framedumps in AVI format" OFF)
Despite this, the build is still broken.
Updated by flacs over 10 years ago
By "edit the source" I meant "edit AVIDump.cpp".
Updated by zype.zype over 10 years ago
OK, now it builds !
Sorry for the confusion, I didn't get that I had to edit the cpp !
Here's a gdb log + backtrace
Updated by flacs over 10 years ago
I've seen this before but I have no idea why this is happening and I'm not familiar with the SDL code. IIRC, it works when you link against the SDL version in Externals.
Updated by zype.zype over 10 years ago
Well, I use libsdl-image1.2, now its the version 1.2.12-5+b2 from the debian sid repo.
In Externals, I didn't found SDL. Does dolphin actually use SDL ?
I doubt it because I didn't install the dev packages for SDL, and they are no "*.h" files for SDL anywhere in Externals.
On the other side in the backtrace, I see that SDL is used for the controller which confuses me quite a lot ^^
Updated by videogamefanatic89 over 10 years ago
I'm getting the same issue as the OP but on Arch Linux. Everything builds fine in both G++/GCC and Clang++/Clang, but the second window (it seems the controller and render windows are affected) will cause a segfault. I could run it through gdb and provide a backtrace if that would help.
Updated by phire over 10 years ago
- Status changed from Accepted to Duplicate
This is a SDL issue, Duplicate of Issue 7486