This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcc/81383] -fstack-protector doesn't work well


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81383

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|                            |2017-07-10
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> __stack_chk_fail was called so this is not a bug.

The problem is

[hjl@gnu-6 tmp]$ gcc  ssp-1.c -g -fstack-protector
[hjl@gnu-6 tmp]$ ./a.out 
Segmentation fault

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]