public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10840: any way to catch a segmentation fault error?
@ 2003-05-18  2:06 Andrew Pinski
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Pinski @ 2003-05-18  2:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/10840; it has been noted by GNATS.

From: Andrew Pinski <pinskia@physics.uc.edu>
To: snowboy@orgio.net
Cc: Andrew Pinski <pinskia@physics.uc.edu>, gcc-gnats@gcc.gnu.org,
   "Gcc-Bugs@Gcc. Gnu. Org" <gcc-bugs@gcc.gnu.org>
Subject: Re: c++/10840: any way to catch a segmentation fault error?
Date: Sat, 17 May 2003 22:02:31 -0400

 No, this is a Microsoft extension, use signal(3) to catch seg faults.
 
 Thanks,
 Andrew Pinski
 
 PS Can someone close this bug, as this extension is one which has
 been discussed before and decided we do not want it.
 


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: c++/10840: any way to catch a segmentation fault error?
@ 2003-05-18  2:41 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-05-18  2:41 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, snowboy

Synopsis: any way to catch a segmentation fault error?

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Sun May 18 02:41:31 2003
State-Changed-Why:
    Andrew already answered this.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread
* c++/10840: any way to catch a segmentation fault error?
@ 2003-05-18  1:56 snowboy
  0 siblings, 0 replies; 3+ messages in thread
From: snowboy @ 2003-05-18  1:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10840
>Category:       c++
>Synopsis:       any way to catch a segmentation fault error?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 18 01:56:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     snowboy@orgio.net
>Release:        unknown-1.0
>Organization:
>Environment:
g++ 3.0.4 on Sun Unix
>Description:
Hi.

I am using g++ 3.0.4 on Sun Unix server.
I just wanted to check whether (...) works or not.
This code works after being compiled by  VC++ , but g++ doesn't.
Is this bug?
Is there any way that I can catch the segmentation fault error using standard C++ try/catch expression?


try {
    X *p;    // Uninitialized to test try/catch for unhandled exception...
    p->get();
} catch(...) {
   cout << "Unhandled exception..";
}

Thanks.

.......................................TJ
>How-To-Repeat:
try {
    X *p;    // Uninitialized to test try/catch for unhandled exception...
    p->get();
} catch(...) {
   cout << "Unhandled exception..";
}

>Fix:

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


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

end of thread, other threads:[~2003-05-18  2:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-18  2:06 c++/10840: any way to catch a segmentation fault error? Andrew Pinski
  -- strict thread matches above, loose matches on Subject: below --
2003-05-18  2:41 bangerth
2003-05-18  1:56 snowboy

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).