public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/9186: async exception from a signal handler not working as before
@ 2003-01-06 13:46 rabins
  0 siblings, 0 replies; 2+ messages in thread
From: rabins @ 2003-01-06 13:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9186
>Category:       target
>Synopsis:       async exception from a signal handler not working as before
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 06 05:46:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     rabins@msil.sps.mot.com
>Release:        3.2
>Organization:
>Environment:

>Description:
The asyn execption hanlding is not functianl in the 3.2.x
while it was functional on 2.9x.
Here is a smaple code
compile with:
/usr/local/egcs/3.2/bin/g++ -g -static -fnon-call-exceptions -fasynchronous-unwind-tables b.cc
or
 /usr/local/egcs/2.95.2/bin/g++ -static -fsjlj-exceptions  b.cc
////b.cc
#include <iostream>
#include <signal.h>
static void MyErrHandler(int intruptNumber)
{
  std::cerr<<"seg fault signal, throwing 1...\n";
  throw 1;
}

int main (int argc, char **argv)
{
  std::cerr<<"hellow world\n";
  signal(SIGSEGV,MyErrHandler);
  try {
    strcpy(NULL,"blabla");
  } catch (...) {
    std::cerr<<"cauth some exception\n";
  }
  std::cerr<<"Normal finish\n";
  return 0;
}
// end of b.cc


/usr/local/egcs/3.2/bin/g++ -v
 Reading specs from /usr/local/egcs/3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
 Configured with: ./configure --prefix=/usr/local/egcs/3.2
 Thread model: posix
 gcc version 3.2

 /usr/local/egcs/2.95.2/bin/g++ -v
 Reading specs from /usr/local/egcs/2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
 gcc version 2.95.2 19991024 (release)

uname -a
 Linux pc524L 2.4.18-17.7.x #1 Tue Oct 8 13:33:14 EDT 2002 i686 unknown

uname -a
Linux pc524L 2.4.18-17.7.x #1 Tue Oct 8 13:33:14 EDT 2002 i686 unknown
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: target/9186: async exception from a signal handler not working as before
@ 2003-01-07  0:56 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-07  0:56 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rabins

Synopsis: async exception from a signal handler not working as before

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Jan  6 16:56:04 2003
State-Changed-Why:
    Confirmed. The documentation of -fnon-call-exceptions seems
    to imply that the program should work as expected. On the other
    hand, this would be an interesting case for a language
    lawyer -- I'd say this is just asking for too much.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9186


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-07  0:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-06 13:46 target/9186: async exception from a signal handler not working as before rabins
2003-01-07  0:56 bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).