This is the mail archive of the gcc@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]

-fstack-check on Linux x86--Dumb question...


I've got a program which fails with a SIGSEGV when -fstack-check is turned
on.  Would anyone have more information about how -fstack-check works on an
Intel processor under Linux?

I'm specifically interested in two things:

1)  How does -fstack-check determine whether the stack has been overrun?
2)  Is there a way using GDB, or some other tool of which I'm not aware,
    to find the specific instruction and access address of the SIGSEGV?

I'm using gcc 2.95.2 on Mandrake Linux 7.0 (glibc 2.1.2, I believe).

Thanks.

--
George T. Talbot
george at moberg dot com

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