This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fstack-check on Linux x86--Dumb question...
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