debugging strategies

Robert Connolly robert at linuxfromscratch.org
Fri Mar 23 16:16:36 PDT 2007


This thread is the same as what you're asking about:
http://grsecurity.net/pipermail/grsecurity/2005-October/000581.html
It says to run 'paxctl -spm' on the program and libraries, but it sounds like 
you tried that.

CFLAGS="-nopie -fno-pic -norelro -nonow -fno-stack-protector -D_FORTIFY_SOURCE=0" 
should disable the compiler flags. There's a chance -fstack-protector-all is 
the cause of the crashes (like with Python and -O3), so you might want to 
leave that in. Even with these flags, you will probably still need to 
use 'paxctl -spm'. Adding '-g3 -ggdb' might also help.

If that doesn't work, rebuild gdb itself with the above flags.

robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20070323/b7a793a2/attachment.sig>


More information about the hlfs-dev mailing list