debugging strategies

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

This thread is the same as what you're asking about:
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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the hlfs-dev mailing list