Tag: Crash
4 posts
-
C++ Stack Overflow: Recursion, Large Locals, and How to Fix
Why C++ programs overflow the stack, from runaway recursion to large local arrays, and how to fix it with ulimit or /STACK, heap allocation or iteration.
-
C++ Undefined Behavior : Why Release-Only Crashes Happen
How C++ undefined behavior like out-of-bounds access, signed overflow, uninitialized reads and data races makes release builds crash, and how UBSan finds it.
-
C++ Intermittent Segfault Case Study: Core Dumps, gdb, and rr
Tracing an intermittent C++ server segfault to a data race: core dump setup, reading the gdb backtrace, rr replay with reverse watchpoints, and TSan checks.
-
C++ Static Initialization Order
Why globals in different C++ translation units initialize in an unspecified order, and how function-local statics, constinit, inline constexpr, explicit init functions and std::optional fix it.