Project

General

Profile

Actions

Emulator Issues #7467

closed

Sabayon and Gentoo Linux, WriteRest: op out of range

Added by allekmott almost 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
DSPLLE
% 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

Game Name?
All I have attempted (Kirby Air Ride, Mario Kart DoubleDash, Sonic Adventure 2 Battle, Super Mario Sunshine)

Game ID?
Respectively: GKYE01, GM4E01, GSNE8P, GMSE01

What's the problem? Describe what went wrong in few words.

(Running in Gentoo Linux 64-bit or Sabayon Linux 64-bit (have tried both), built from github. Latest attempt: commit 99d4ab0b71)

Upon launch, assortment of warning windows appear displaying "WriteRest: op out of range [memory address] uses [memory address]" or "CALL out of range ([memory address] calls [memory address]). Upon proceeding after all of the warnings, dolphin exits with a segmentation fault.

JIT Recompiler and JITIL Recompiler both error out, Interpreter works...

What did you expect to happen instead?
Clean initialization of game.

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. Attempt to run any of the listed (and possibly any) games with a similar system in Gentoo 64-bit or Sabayon 64-bit (GNOME)

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?
4.0-1953? , commit 99d4ab0b71, another commit from a few weeks prior to posting, probably a few others.

Does using an older version of Dolphin solve your issue? If yes, which
versions of Dolphin used to work?
Don't believe so (vaguely remember trying 3.5 in past to no avail)

What are your PC specifications? (including, but not limited to: Operating
System, CPU and GPU)

System 1
Operating System: Sabayon Linux (have run in kernel sabayon-3.9.0 and 3.12.0)
CPU: Intel Core 2 Duo E4700 @ 2.60GHz
GPU: Nvidia GTX 660Ti, driver version 337.25

System 2
Operating System: Gentoo Linux (kernel 3.12)
CPU: AMD Athlon 5000+
GPU: Nvidia GTX 660Ti, driver version 337.25

System 3
Operating System: Sabayon Linux (kernel sabayon-3.12.0)
CPU: Intel Core i7 3820 @ 3.60GHz
GPU: Nvidia GTX 780, driver version 337.25

^ Same issue on all

Are you using the 32 or the 64 bit version of Dolphin?
64 bit

Is there any other relevant information? (e.g. logs, screenshots,
configuration files)
[Upload big files to a hosting service and post links here!]
Dolphin fails to load a resource (/usr/local/share/dolphin-emu/sys/Themes/Clean/fullscreen.png) at start, don't know if this would allude to any possible causes of the issue

Actions #1

Updated by phire over 9 years ago

Are you using the gentoo hardening patches?

Dolphin is currently incompatible with the position-independent executable option in gcc, as it requires the binary .text and .data sections to be within 2gb of jitted code (and below the 4gb boundary)

Actions #2

Updated by RGamma83 over 9 years ago

I can confirm this (current master (e32d63c43d7b03ec5137d3764ce9eb9309805809) and latest stable (4.0.2)) on Funtoo Hardened (3.14.27-hardened + hardened (PIE) toolchain).
As detailed in http://wiki.gentoo.org/wiki/Hardened/FAQ#How_do_I_turn_off_hardened_building.3F you can turn off the specific feature causing this. A workaround would be to alter the corresponding dolphin ebuild to compile with -nopie or do this: http://wiki.gentoo.org/wiki/Knowledge_Base:Overriding_environment_variables_per_package.
Note, that you also need to disable MPROTECT on the dolphin-emu executable!
I presume solving this in dolphin has low priority (or even is WONTFIX)?

Actions #3

Updated by flacs almost 9 years ago

  • Status changed from New to Fix pending
  • Category changed from dsplle to ppc
Actions

Also available in: Atom PDF