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

George T. Talbot george@phat.com
Sun Mar 19 20:43:00 GMT 2000


Geoff Keating wrote:
> 
> "George T. Talbot" <george@phat.com> writes:
> 
> > <whine>
> > It would be a nice patch to GDB and/or GNU/Linux to print:
> >
> >     "Program received SIGSEGV at address 0x2394782 while attempting
> >     to read from address 0xFDFEFFF."
> >
> > Right now, it just gives me the program counter.  Of course, I'm not really
> > sure of how to patch GDB or the kernel to give me such support.
> > </whine>
> 
> The program 'catchsegv' which comes with GNU libc 2.1 and later does
> exactly this.

Thanks for the tip.  I gave it a try, and it hangs, rather than giving
me a segfault, with Xosview showing 100% cpu taken up by SYS rather than
USER.

Oh well.  I'll keep hunting.

Thanks for trying to help, though.  I really do appreciate it.

--
George T. Talbot
george at moberg dot com


More information about the Gcc mailing list