public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39319] New: sigsegv occurs when an exception handler rethrows an excpetion and tries to return from the catch
@ 2009-02-27 18:27 phamorsky at yahoo dot com
2009-02-27 18:32 ` [Bug c++/39319] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 3+ messages in thread
From: phamorsky at yahoo dot com @ 2009-02-27 18:27 UTC (permalink / raw)
To: gcc-bugs
The sample program fails to run on Linux x86_64.
I'm using ...
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
... and compiling with command line ...
g++ -Os catch.cpp -o catch.exe
=== Program Output ===
./catch.exe
file = catch.cpp
Segmentation fault
=== SAMPLE Program ===
#include <stdexcept>
#include <exception>
#include <iostream>
void MyExceptionHandler(const char* p_file)
{
try
{
throw;
}
catch (std::exception& stdexc)
{
std::cerr << "file = " << p_file << std::endl;
}
}
int main(int argc, char** argv)
{
try
{
throw std::runtime_error("Throw some error, this should get caught.");
}
catch(...)
{
MyExceptionHandler(__FILE__);
}
printf("RETURNED SAFELY\n");
return 0;
}
--
Summary: sigsegv occurs when an exception handler rethrows an
excpetion and tries to return from the catch
Product: gcc
Version: 3.4.6
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: phamorsky at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39319
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/39319] sigsegv occurs when an exception handler rethrows an excpetion and tries to return from the catch
2009-02-27 18:27 [Bug c++/39319] New: sigsegv occurs when an exception handler rethrows an excpetion and tries to return from the catch phamorsky at yahoo dot com
@ 2009-02-27 18:32 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-02-27 18:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-02-27 18:31 -------
3.4.6 is old and 3.4.x to 4.1.x are no longer maintained. This is most
likely a duplicate of bug 26530.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39319
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/39319] sigsegv occurs when an exception handler rethrows an excpetion and tries to return from the catch
[not found] <bug-39319-4@http.gcc.gnu.org/bugzilla/>
@ 2011-09-29 23:02 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-29 23:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39319
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC|gcc-bugs at gcc dot gnu.org |
Resolution| |FIXED
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-29 22:52:55 UTC ---
Fixed loooong ago.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-29 22:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-27 18:27 [Bug c++/39319] New: sigsegv occurs when an exception handler rethrows an excpetion and tries to return from the catch phamorsky at yahoo dot com
2009-02-27 18:32 ` [Bug c++/39319] " pinskia at gcc dot gnu dot org
[not found] <bug-39319-4@http.gcc.gnu.org/bugzilla/>
2011-09-29 23:02 ` paolo.carlini at oracle dot com
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).