Stack smashing attack in statically compiled binaries

mclinden at mclinden at
Wed Mar 23 04:55:34 PST 2005

Try 'dmesg'.  You'll note:

grsec: signal 6 sent to <path to your executable>

I suspect (but have not verified) that the problem is in your kernel 
security configuration.


Robert Connolly <robert at>
Sent by: hlfs-dev-bounces at
03/16/2005 09:05 PM
Please respond to Hardened LFS Development List
        To:     Hardened LFS Development List 
<hlfs-dev at>
        Subject:        Re: Stack smashing attack in statically compiled 

On March 16, 2005 04:54 pm, Manolis Tzanidakis wrote:
> Hello all,
> I' ve just finished building an hlfs system based on
> SVN-20050310 and I have a problem.
> When I compile something statically (even a simple main(){}) and run
> it I get the following msg:
> prog_name: stack smashing attack in function __do_global_ctors_aux()
> Aborted
> I tried building with -fno-stack-protector, -no-pie and even restore
> vanilla gcc specs with 'gcc -dumpspecs > $(gcc --print-file specs)'
> but still the same.
> btw. I omitted removing .a libs during building gcc,glibc,binutils.
> These programs I want to build must get statically linked in order to
> work correctly so any help will be really appreciated.
> TIA,

I have no idea what this could be. Be sure to check that you didn't use 
--disable-static on various packages. Though, libc, binutils, and gcc 
be the only packages that affect this.

Unsubscribe: See the above information page

More information about the hlfs-dev mailing list