Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

False-positive from GNU compiler's stack smash detector?

13 views
Skip to first unread message

Frederick Gotham

unread,
Aug 19, 2020, 10:42:17 AM8/19/20
to

If I compile my program with the GNU compiler and the flag "-fstack-protector", it prints out the following:

*** stack smashing detected ***: <unknown> terminated

However if I compile my program with "-fno-stack-protector", then it runs fine and doesn't seem to malfunction in any way.

I have used "gdb" and "valgrind" on both versions of my program (the one with stack protection and the one without), and neither 'gdb' nor 'valgrind' can spot the problem.

Have any of you ever experienced a false positive from the GNU compiler's stack-smashing detector?

0 new messages