Quantcast
Channel: Debugging – Michael Tsai
Viewing all articles
Browse latest Browse all 170

Implementing Plausible Crash Recovery

$
0
0

Landon Fuller:

The  alternative approach, and what is used on Apple’s 64-bit platforms, is the use of so-called zero-cost exceptions. Rather than recording thread state at runtime, the compiler builds a lookup table that covers all codein an executable. This table defines how to accurately unwind a single frame from any valid instruction address, as well as providing language/runtime-specific definitions of where try/catch/finally blocks are defined, and how to handle them.

[…]

As it turns out, this is exactly the same information that debuggers, crash reporters, and evil crash recovery hacks need to perform their own stack unwinding.


Viewing all articles
Browse latest Browse all 170

Trending Articles