Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Debugging Remove topic Debugging Clear all 26 posts RSS

2026

OpenAI

Core dump epidemiology: fixing an 18-year-old bug

Case study 16 min +160 XP

Mysterious return-to-bogus-address crashes in Rockset's C++ execution layer turned out to be two unrelated bugs: silent register corruption on a single bad Azure host, and an 18-year-old race in GNU libunwind's _Ux86_64_setcontext, which read the synthesized ucontext_t after moving %rsp past it, letting a frequent SIGUSR2 CPU-time signal clobber it during exception unwinding.

2025

TigerBeetle

Fuzzer Blind Spots (Meet Jepsen!)

Case study 7 min +70 XP

Jepsen found a missing-results bug in TigerBeetle's query engine despite four fuzzers covering it, because the VOPR and LSM query fuzzer pre-registered disjoint queries whose matching objects were always consecutive in every secondary index, so zig-zag merge join probing was never exercised.

2024

2022

Magic-trace: Diagnosing tricky performance issues easily with Intel Processor Trace

Deep dive 14 min +140 XP

Magic-trace is an open-source tool that uses Intel Processor Trace in circular-buffer mode to capture roughly the last 10ms of execution before a chosen function call, then renders every function call on a nanosecond-resolution timeline in a forked Perfetto UI.

2021

Debugging Systems in the Cloud: MySQL, Kubernetes, and Cgroups

Incident 8 min +80 XP

Slow MySQL Pod startup and degraded query performance on long-running GKE nodes in Shopify's KateSQL platform traced back to a Linux kernel memory cgroup leak: roughly 50K zombie memory cgroups made mem_cgroup_commit_charge slow, so each 128MB mmap during InnoDB buffer pool initialization took about 100 ms. The investigation used strace, perf flamegraphs, slabtop and /proc/cgroups, and Google kernel engineers confirmed it as a side effect of slab reparenting on cgroup removal.

The quest for software engineering knowledge.

Look:
Layout: