This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Possible future NX ON_STACk regression Re: [patch 3/3] Use ON_STACK for i386/amd64 (gdb2495.exp regression)
On Mon, 18 Jun 2012 10:09:07 +0200, Jan Kratochvil wrote:
> In https://bugzilla.redhat.com/show_bug.cgi?id=832534 Nathan Sidwell reports
> that inferior calls segfault with inferior non-executable stack and Fedora GDB
> already containing this patch.
I have heuristically found the problem affects only one Fedora kernel
version/arch:
https://bugzilla.redhat.com/show_bug.cgi?id=832534#c9
So the GDB patch should be compatible with Linux kernels in general I hope.
Feel free to run the testcase on your kernel/CPU:
http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/ret-to-nxpage.c?cvsroot=systemtap
gcc -o ret-to-nxpage ret-to-nxpage.c -Wall -g; ./ret-to-nxpage; echo $?
0 == PASS
Regards,
Jan