Exceptional C++
summary
Deep dive into Windows exception internals: how hardware faults and OS signals become structured exceptions, how the compiler maps C++ throw/unwind to sch frames, and which CRT hooks like set_se_translator and unhandled-exception filters actually run. Shows concrete tools — stack walking with DebugHelp, using rtl capture context to snapshot frames, shimming std::thread to install translators, and building production crash archives; examples demonstrate real recoveries, symbolized stack traces, and where the approach fails.
AI-written summary · about
chapters (15)
- 0:00Start
- 7:55Exception Handling Mechanisms in Windows
- 9:12Structured Exceptions
- 10:03Enable Structured Exception
- 12:51Exception Unwinding
- 15:0064-Bit and 32-Bit Implementations
- 19:52Exception Handling Chain
- 20:56Exception Registration
- 26:52Get Exception Information
- 27:48Exceptions Pointer Structure
- 28:13Exception Filter
- 50:27Chase from Context
- 53:48Unhandled Exceptions
- 56:01Unhandled Exception Filter
- 57:03Stack Trace Facility
related talks
01h 02mExceptional C++
50mInternals of Exceptions
44mDebugging memory corruptions in C++
59m“The Exception Situation"
01h 03mExceptionally Bad: The Misuse of Exceptions in C++ & How to Do Better
36mUnwinding the Stack for Fun and Profit
32mIntroduction to Windows Kernel Mode Debugging
58mDebugging one layer deeper
