Summary: | sys-devel/gcc-5.4.0 segfault on x11-libs/wxGTK-3.0.2.0-r2 with -march=amdfam10 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Anthoine Bourgeois <anthoine.bourgeois> |
Component: | Hardened | Assignee: | The Gentoo Linux Hardened Team <hardened> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info '=x11-libs/wxGTK-3.0.2.0-r2::gentoo'
emerge -pqv '=x11-libs/wxGTK-3.0.2.0-r2::gentoo' The ebuild environment file build |
Description
Anthoine Bourgeois
2017-05-12 22:46:29 UTC
Created attachment 472446 [details]
emerge --info '=x11-libs/wxGTK-3.0.2.0-r2::gentoo'
Created attachment 472448 [details]
emerge -pqv '=x11-libs/wxGTK-3.0.2.0-r2::gentoo'
Created attachment 472450 [details]
The ebuild environment file
Created attachment 472452 [details]
build
If I set "echo 1 > /proc/sys/kernel/pax/softmode" the gcc doesn't segfault. So it's a gcc with hardened profile, pax enabled and march=amdfam10 issue, quite a corner case :-) paxctl -r /usr/libexec/gcc/x86_64-pc-linux-gnu/5.4.0/cc1plus fixes the problem. Is it a PAX or GCC problem ? (In reply to Anthoine Bourgeois from comment #6) > paxctl -r /usr/libexec/gcc/x86_64-pc-linux-gnu/5.4.0/cc1plus fixes the > problem. Is it a PAX or GCC problem ? Your kernel config and the Gcc ebuild should allready set the needed pax marks on the bin. (In reply to Magnus Granberg from comment #7) > (In reply to Anthoine Bourgeois from comment #6) > > paxctl -r /usr/libexec/gcc/x86_64-pc-linux-gnu/5.4.0/cc1plus fixes the > > problem. Is it a PAX or GCC problem ? > > Your kernel config and the Gcc ebuild should allready set the needed pax > marks on the bin. Your right my kernel config didn't set the CONFIG_PAX_XATTR_PAX_FLAGS=y and the PAX flags are only set in XATTR now. |