Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Handling Segfaults

Name: Anonymous 2016-09-09 22:18

What is the most portable way to catch segfaults together with their addresses and then resuming at the place where it happened? I.e. to handle array out of bounds exception by expanding array.

I know it is done with signal() on POSIX and with SetUnhandledExceptionFilter() on Windows. But you cant define signal() for Windows, because it has its own stripped down version, useful only for the purpose of handling CTRL-C.

Both don't signal() and SetUnhandledExceptionFilter() have no means of recovering from error.

Name: Anonymous 2016-09-20 6:12

>>41

In other words you have Python, which has bindings to C++/Boost, which wraps over libc, which wraps over kernel32, which wraps over ntdll, which wraps over ntoskrnl.exe, which wraps over device drivers, which wrap over some virtualization framework or Wine running on some OSX or Linux or even Windows. And so ad infinitum.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List