Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255141 - games-emulation/pcsx segfaults with NX heap
Summary: games-emulation/pcsx segfaults with NX heap
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2009-01-16 08:14 UTC by David Klempner
Modified: 2018-10-08 11:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
NX fix (PCSX_NX_fix.patch,991 bytes, patch)
2009-01-16 08:34 UTC, David Klempner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.