Advanced Usage of the C++23 Stacktrace Library
summary
C++23 supplies a standardized stacktrace API used with GCC (needs debug info and libbacktrace linked; GCC 13.3 flips the flag by default), and examples show a recursive Fibonacci that records a stack depth 133 and inspects entries, plus a working Boost.Beast coroutine web server that captures and pretty-prints frames at request time. The library is not signal-safe so use Boost stacktrace or CPPTrace’s safe dump for handlers; source and demos are on GitHub.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:11Stacktraces
- 3:43Stacktrace in C
- 8:09Compilation Leaking
- 11:07Observations
- 13:04BoostAIO
- 18:46Asynchronous Signal Safety
- 20:27Summary
- 22:09Resources
related talks
51mC++ Exceptions and Stack Unwinding
01h 02mExceptional C++
44mA Guide to Debugging C++ Code: Practical and Interactive Examples
50mC++: The Beast Is Back
06mMy favorite feature in Visual C++ Update 3
01h 05mHow to Write a Heap Memory Profiler
45mTo Err is Human - Robust Error Handling in C++26
57mLessons from 20 years of Debugging C++ Code
