Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 255141

Summary: games-emulation/pcsx segfaults with NX heap
Product: Gentoo Linux Reporter: David Klempner <klempner>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED OBSOLETE    
Severity: normal Keywords: PMASKED
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: NX fix

Description David Klempner 2009-01-16 08:14:57 UTC
PCSX segfaults if the heap is nonexecutable.

It dynamically recompiles into a malloc()'ed buffer, and then executes that code.

As such, it segfaults on the very first instruction it tries to execute.

Reproducible: Always

Steps to Reproduce:
1. Run pcsx on an x86 kernel with PAE (or any amd64?)
2. Try to execute a PSX game
3. Segfault
Comment 1 David Klempner 2009-01-16 08:34:19 UTC
Created attachment 178671 [details, diff]
NX fix

Patch to allocate recompile buffer with mmap, which works for me.