C++ Undefined Behavior Pitfalls
A guided tour of the most common undefined behavior traps in C++ and the habits, tools, and language features that help you avoid them in production code.
6 posts · page 1 of 1
A guided tour of the most common undefined behavior traps in C++ and the habits, tools, and language features that help you avoid them in production code.
Use git bisect to binary-search through history and pinpoint the commit that introduced a regression, with manual and automated examples.
Use strace to inspect every system call a process makes. Learn the essential flags, how to filter noise, and the patterns for debugging hangs, slowness, and crashes.
Step through Node.js code with Chrome DevTools and VS Code by attaching to the built-in inspector, including remote and production debugging tips.
Find and fix memory leaks in Node.js using heap snapshots, sampling, and a few reliable patterns to avoid leaks.
Diagnose and eliminate flaky tests caused by timing, ordering, shared state, and the network. Build a culture that stops flakes at the source.