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

AI-generated summary of reporting by OpenAI News. Read the original for the full story.

Why it matters

OpenAI engineers tracked impossible-seeming crashes in their C++ data infrastructure to a single bad Azure host and an 18-year-old race condition in GNU libunwind, showing population-level core dump analysis beats one-at-a-time debugging.

Read this as

OpenAI engineers spent months chasing crashes in Rockset, a search system that powers ChatGPT's ability to look up information. The crashes looked impossible: programs returning to memory addresses that contained no code. By analyzing a year's worth of crash snapshots like an epidemiologist studying a population, they found two separate causes: one physically faulty computer at Microsoft's Azure cloud, and an 18-year-old race condition bug hidden inside a widely used free software library called GNU libunwind.

OpenAI's ChatGPT search infrastructure, Rockset (acquired in 2024), suffered crashes traced to two unrelated causes: silent CPU corruption on a single Azure physical host, which was denylisted, and an 18-year-old race condition in GNU libunwind that surfaced during C++ exception unwinding. The lesson for engineering leaders: log-based triage produced false positives and negatives; only a pipeline analyzing every core dump revealed the two distinct crash clusters. OpenAI also changed its control plane to reuse VMs, making bad-host detection easier.

Crashes in Rockset's C++ execution layer showed either NULL saved return addresses or %rsp misaligned by 8 bytes, with red-zone preservation via folly's fatal signal handler confirming post-return corruption. Building a parallel pipeline (largely written by ChatGPT) over a year of production core dumps split the population: misaligned-stack crashes clustered on one Azure physical host (silent register corruption, unreproducible under weeks of stress testing), while return-to-null crashes all occurred during exception unwinding, where GNU libunwind, not libgcc, had won symbol resolution and carried an 18-year-old race condition.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

OpenAI Rockset ChatGPT Azure GNU libunwind folly

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading