This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Q: Catch a segmentation fault
- To: Roger Wernersson <roger dot wernersson at mindark dot com>
- Subject: Re: Q: Catch a segmentation fault
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 25 Jan 2001 19:09:31 -0200
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <5146853DD571D411AC54000102070D610125DD@MINGBGNTS02>
On Jan 25, 2001, Roger Wernersson <roger.wernersson@mindark.com> wrote:
> the Win32-programmers put in some code to catch segmentation faults.
Segmentation faults generate signals on Unix, and signals aren't
translated into C++ exceptions. You'd have to install a signal
handler, but it's not portable to throw from signal handlers either.
It might work for you.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me