FreeBSD Bugzilla – Attachment 172529 Details for
Bug 211123
Throw C++ exception from a signal handler.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Throwing C++ exception from a signal handler.
Exceptions.cpp (text/plain), 562 bytes, created by
Chris Wittmann
on 2016-07-14 19:01:13 UTC
(
hide
)
Description:
Throwing C++ exception from a signal handler.
Filename:
MIME Type:
Creator:
Chris Wittmann
Created:
2016-07-14 19:01:13 UTC
Size:
562 bytes
patch
obsolete
>// Exceptions.cpp : Defines the entry point for the console application. >// > >#include "stdafx.h" >#include <iostream> >#include <signal.h> > > >using namespace std; > >void handler(int signal) >{ > throw 23; >} > > >int _tmain(int argc, _TCHAR* argv[]) >{ > signal(SIGINT, handler); > signal(SIGSEGV, handler); > > try > { > int* p = NULL; > *p += *p; > > //raise(SIGINT); > cout << "... no catchie ..." << endl; > } > catch (...) > { > cout << "CAUGHT THE MOFO!" << endl; > } > > return 0; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 211123
: 172529