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

Bug 357839

Summary: /usr/bin/X requires MPROTECT off if mesa-9999 is built with gallium&llvm on hardened
Product: Gentoo Linux Reporter: Piotrek Juzwiak <piotrek.juzwiak>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: major CC: piotrek.juzwiak
Priority: Normal    
Version: 10.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Piotrek Juzwiak 2011-03-07 21:34:58 UTC
X server requires MPROTECT flag disabled if mesa has been built with gallium & llvm use flags. Using classic mesa backend doesn't trigger it since it doesn't use llvm.

I have temporarily fixed by disabling MPROTECT flag on /usb/bin/X but i guess this is very bad idea especially for X. I believe it is due to LLVM having JIT compiler and X on gallium can't start without it?

Reproducible: Always

Steps to Reproduce:
1.Emerge mesa-9999 with gallium&llvm flags on hardened profile
2.(Re)start X server 
3.
Actual Results:  
X server crashes with LLVM stating it can't map memory as RWX

Expected Results:  
X server starts just fine