![]() |
|
running dolphin in valgrind? - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion) +--- Thread: running dolphin in valgrind? (/Thread-running-dolphin-in-valgrind) |
running dolphin in valgrind? - triad - 07-31-2014 Has anyone managed to run dolphin in valgrind with recent master? When I try, I get a bunch of "Executable memory ended up above 2GB!", and then dolphin goes piff. When I run with memcheck, I see: Code: ==7357== Thread 4:Does it just not work right now? Are there some tricks I don't know to get it to work? RE: running dolphin in valgrind? - Sonicadvance1 - 07-31-2014 The real issue is that it can't allocate it's memory space where it is expecting and crashes out. RE: running dolphin in valgrind? - triad - 08-01-2014 (07-31-2014, 03:46 PM)Sonicadvance1 Wrote: The real issue is that it can't allocate it's memory space where it is expecting and crashes out. ...and I see you twiddled with something and I'm getting a different error. Thanks. I'm also getting: Code: ==22613== Thread 4:Expected? Not? (Hmm... is there some flag to tweak valgrind so that it can allocate memory how it wants? Or does it just not work? Are you able to run dolphin in valrind?) RE: running dolphin in valgrind? - Sonicadvance1 - 08-01-2014 It's expected. If you can't allocate ram under 2GB then the x86_64 JIT cores will fail out Valgrind makes it impossible for us to grab memory in that space. The interpreter core will probably still work. May need to forcibly disable the VertexLoader "JIT" in the source as well? RE: running dolphin in valgrind? - triad - 08-01-2014 (08-01-2014, 01:07 PM)Sonicadvance1 Wrote: It's expected. If you can't allocate ram under 2GB then the x86_64 JIT cores will fail out. Valgrind makes it impossible for us to grab memory in that space. Okay, good to know; thanks. Do you know if it's possible to make this work? (Either by changing how dolphin works, or by changing how valgrind works, I mean. Not by turning off the JIT, since that mostly defeats the purpose.) It would be helpful if it were possible to use valgrind with dolphin, for debugging and profiling. Assuming there is a good reason why the JIT must have memory below 2 GiB, for the sake of curiosity / education, is there a short explanation somewhere why that's the case? |