This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
4.3.0 - Throw from signal handler - dumps core
- From: "Arne Steinarson" <asteinarson at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 12 Mar 2008 16:57:32 +0100
- Subject: 4.3.0 - Throw from signal handler - dumps core
Hello,
Excepton translation is broken in GCC 4.3.0 again (i686-pc-linux-gnu).
After accessing a NULL pointer and with this handler:
void stSigSegvHandler( int signum, siginfo_t * siginfo, void * p ){
throw "SIGSEGV signaled";
}
and with a couple of destructors to unwind, gcc dumps core.
It was working in 4.2.1 (with patches mentioned in 34152).
I submitted a new bug report (35555).
It strikes me that if one wants to support this feature in GCC, a test
should be included when verifying the compiler build.
Regards
// ATS.