[quake3-bugzilla] [Bug 5702] QVM execution crashes when compiled with -fstack-protector
bugzilla-daemon at icculus.org
bugzilla-daemon at icculus.org
Sat Jul 7 12:30:03 EDT 2012
https://bugzilla.icculus.org/show_bug.cgi?id=5702
--- Comment #3 from symlink <brian.webbs at gmx.de> 2012-07-07 12:29:59 EDT ---
Even if I apply /dev/hc's patch to an otherwise unmodified checkout of SVN
r2299 and compile with default (Gentoo Hardened's) settings, I get the same
crash. Appending -fno-stack-protector to CFLAGS for the very same unmodified
checkout runs fine.
Thilo, it might not be just that single flag which is causing trouble. While
I'm hesitant to provide you a shell, here's some more info;
$ emerge --info | head -n1
Portage 2.1.10.65 (hardened/linux/amd64, gcc-4.5.3, glibc-2.14.1-r3,
3.3.8-gentoo x86_64)
$ gcc-config -c
x86_64-pc-linux-gnu-4.5.3
Instead of adding -fno-stack-protector to CFLAGS, you can also select the
*-hardenednossp GCC profile and compile/emerge (see
http://www.gentoo.org/proj/en/hardened/hardenedfaq.xml#hardenedcflags), both
methods result in a working executable.
Doing the reverse and using GCC *-vanilla with -fstack-protector-all also
results in the same crash (with and without /dev/hc's patch).
--
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the quake3-bugzilla
mailing list