Project

General

Profile

Actions

Emulator Issues #7268

closed

Segfault on Debian Sid

Added by zype.zype almost 10 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
% Done:

0%

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

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


Related issues 1 (0 open1 closed)

Is duplicate of Emulator - Emulator Issues #7486: SDL/Linux: segfault on second game launch if haptic compatible controller plugged in.Fixedphire

Actions
Actions #1

Updated by Sonicadvance1 almost 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.

Actions #2

Updated by pauldacheez almost 10 years ago

FYI, you can disable that behavior by appending "Fastmem = false" (or something like that) to ~/.dolphin-emu/Config/Dolphin.ini.

Actions #3

Updated by zype.zype almost 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

Actions #4

Updated by degasus almost 10 years ago

Could you please also post a gdb backtrace? strcmp could be everywhere in our code.

Actions #5

Updated by zype.zype almost 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 ?

Actions #6

Updated by flacs almost 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.

Actions #7

Updated by flacs almost 10 years ago

I actually meant issue 5419, issue 6664 is a different problem.

Actions #8

Updated by zype.zype almost 10 years ago

Well I'm unfamiliar with this option, I tried to set it to False, 0 and off but it kept failing :

http://pastie.org/9186450

Actions #9

Updated by flacs almost 10 years ago

The CMake option doesn't work. You need to edit the source.

Actions #10

Updated by zype.zype almost 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.

Actions #11

Updated by flacs almost 10 years ago

By "edit the source" I meant "edit AVIDump.cpp".

Actions #12

Updated by zype.zype almost 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

http://pastie.org/9193275

Actions #13

Updated by flacs almost 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.

Actions #14

Updated by zype.zype almost 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 ^^

Actions #15

Updated by videogamefanatic89 almost 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.

Actions #16

Updated by phire almost 10 years ago

  • Status changed from Accepted to Duplicate

This is a SDL issue, Duplicate of Issue 7486

Actions

Also available in: Atom PDF