---
title: "Core dump epidemiology: fixing an 18-year-old bug"
description: "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."
url: "https://swe.quest/articles/core-dump-epidemiology-fixing-an-18-year-old-bug-49f918c45e5e4eb3"
canonical: "https://openai.com/index/core-dump-epidemiology-data-infrastructure-bug"
source: "OpenAI"
published: "2026-06-30"
difficulty: "hard"
kind: "Case study"
reading_minutes: 16
tags: ["debugging","c-cpp","linux","hardware","incident-response"]
---

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

A post on [OpenAI](https://swe.quest/sources/openai.md), published 2026-06-30, 16 min read, Case study. Original: [https://openai.com/index/core-dump-epidemiology-data-infrastructure-bug](https://openai.com/index/core-dump-epidemiology-data-infrastructure-bug)

## Summary

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. The breakthrough came from switching from close inspection of individual cores to population analysis: an automated pipeline classified every production core dump from the past year, and the clean data set separated the two crash clusters by region, start date and node age. Fixes included denylisting the host, logging register state in the fatal signal handler, reusing VMs to make bad-node detection easier, and patching libunwind.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)

## Prerequisites

- x86-64 System V ABI
- C++ exception unwinding ([easy posts on C & C++](https://swe.quest/tags/c-cpp.md?difficulty=easy))
- Unix signal handling
- core dump analysis with gdb

## Keywords

GNU libunwind, Rockset, folly, red zone, SIGUSR2, timer\_create, Azure, setcontext

## Related posts

- [RocksDB development finds a CPU bug](https://swe.quest/articles/rocksdb-development-finds-a-cpu-bug-3928169c558d3987.md): RocksDB Blog · 2026-02-17 · Medium · 4 min read · Hardware, Testing, Debugging, Storage engines, C & C++
  A RocksDB unit test that generated thousands of SST file unique IDs across many threads exposed a hardware bug: the RDSEED instruction on a newer AMD CPU sometimes returned 0 while reporting success, but only on some cores and only under memory load.
- [Improving Firefox stability on Linux](https://swe.quest/articles/improving-firefox-stability-on-linux-d17615a93e9d8285.md): Mozilla Hacks · 2021-05-19 · Medium · 6 min read · Debugging, Linux, Observability, Open source, Rust
  Mozilla went from being able to symbolicate under 20% of Linux Firefox crash reports to over 99% by scraping debug information for distro-packaged Firefox builds and their dependencies (GTK, Mesa, fontconfig, SQLite, etc.) from Arch, Debian, Fedora, OpenSUSE and Ubuntu repositories.
- [Fuzzing rust-minidump for Embarrassment and Crashes – Part 2](https://swe.quest/articles/fuzzing-rust-minidump-for-embarrassment-and-crashes-part-2-036e58ccd9566822.md): Mozilla Hacks · 2022-06-23 · Medium · 16 min read · Testing, Rust, Debugging, Vulnerability research
  Fuzzing rust-minidump with cargo-fuzz and libfuzzer turned up a series of real bugs in a Rust rewrite of Breakpad's minidump processor that had otherwise shipped cleanly.
- [Everything Is Broken: Shipping rust-minidump at Mozilla – Part 1](https://swe.quest/articles/everything-is-broken-shipping-rust-minidump-at-mozilla-part-1-75139938732d2040.md): Mozilla Hacks · 2022-06-14 · Medium · 19 min read · Rust, Testing, Debugging, Refactoring & migrations
  rust-minidump, a pure-Rust replacement for the minidump-processing half of Google Breakpad, has been Firefox's crash-processing backend for six months, running in about half the time of Breakpad and appearing more reliable.
- [The case of the vanishing CPU: A Linux kernel debugging story](https://swe.quest/articles/the-case-of-the-vanishing-cpu-a-linux-kernel-debugging-story-3db1aa1b81ec8319.md): ClickHouse · 2025-03-05 · Hard · 32 min read · Linux, Memory management, Debugging, Performance engineering, Incidents & postmortems
  Intermittent, indefinite CPU saturation of ClickHouse Cloud pods, seen only on GCP, turned out to be a Linux kernel memory-management livelock.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
