Skip to main editorial content
ai tools Breaking Wire

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

OpenAI engineers used large-scale core dump analysis to debug rare infrastructure crashes, uncovering both a hardware fault and a long-standing software bug.

Justin Davis
Justin DavisVerified

Founder & Lead Search Analyst

Reading Time: 4 minutes
Follow Aine (AINE.ws) breaking wire on Google:
Add to Google Preferred SourcesFollow
Core dump epidemiology: fixing an 18-year-old bug
AINE.WS Newsroom analysis referencing OpenAI Official News.
Key Editorial Takeaways
  • 1Primary reporting tracked by AINE.WS Newsroom (OpenAI Official News).
  • 2Key focus: OpenAI engineers used large-scale core dump analysis to debug rare infrastructure crashes, uncovering both a h...
  • 3Full technical documentation and release notes are linked in the primary sources below.

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

SAN FRANCISCO: OpenAI said on June 30, 2026 that engineers traced rare crashes in its Rockset data infrastructure to two separate causes, silent hardware corruption on one Azure host and an 18-year-old race in GNU libunwind. The investigation used fleet-wide core dump analysis to split what first looked like one impossible crash pattern into two different failures.

Why did OpenAI stop treating the crashes like a single case?

OpenAI said manual log searches and one-off core dump reviews were not enough to classify the crashes with confidence. The company shifted to a population-level method because only the full crash set could reveal whether the symptoms came from one bug or several.

The post says Rockset, the ChatGPT data infrastructure component involved here, is written in C++ and uses folly’s fatal signal handler to record a stack trace and upload core dumps to Azure blob storage. OpenAI said replicated query-processing leaves reduce client impact when a crash happens, but each segfault still points to a bug that needs to be fixed.

The team described the new approach as closer to epidemiology than bedside diagnosis. Instead of asking what happened in one crash, engineers asked whether the whole population of crashes showed patterns by release, hardware SKU, region, or kernel version.

What did the crash data show?

The data split cleanly once OpenAI built an automated pipeline. One cluster of crashes belonged to a bad host, while the other turned out to be a software race in the unwinder.

Crash population Observed pattern Cause OpenAI identified
Return to null Spread across many clusters and regions, with no crisp start date A race in GNU libunwind during exception unwinding
Misaligned stack Confined to one region, started on a clear date, absent on long running nodes Silent hardware corruption on one Azure host

OpenAI said ChatGPT helped write a script that downloaded a prefix of each core file, extracted registers, filtered false positives using logs, and labeled each crash as return to null, misaligned stack, or other. The team then ran that analysis over every production Rockset core dump from the previous year.

That process found a clean separation that manual inspection had missed. The misaligned-stack crashes were traced to a single physical host and stopped after the host was removed from service, even though the team could not reproduce the register corruption in a controlled stress test.

How did the libunwind bug actually fail?

The race happened in GNU libunwind’s _Ux86_64_setcontext path. OpenAI said the vulnerable window was one instruction wide, and a signal arriving at the wrong moment could corrupt the target return address before control transferred back to normal code.

The GitHub patch header shows the fix title as “_Ux86_64_setcontext should not read from stack after adjusting %rsp,” with Nathan Grasso Bronson listed as author and a commit date of Thu, 20 Nov 2025. The patch changes the code so post-restore RIP and RDI are staged before %rsp is adjusted, then restored from the post-restore stack location instead of being read after the stack pointer moves.

OpenAI said the problematic sequence began when %rsp was updated and the stack frame that held the unwind target was no longer protected by the red zone. If a signal arrived after that point but before the next instruction loaded the saved RIP, the signal frame could overwrite the data and turn the restored address into NULL.

The company said it was seeing more than a dozen return-to-null crashes per day across the fleet. Its Fermi estimate put the vulnerable window at about 1e-10 seconds, SIGUSR2 delivery at about 1e-2 seconds of CPU time, and the resulting race probability at about 1e-8 per exception cleanup or catch block.

Rockset uses exceptions for internal ingest backpressure, and OpenAI said a single overloaded host can throw on the order of 1e4 exceptions per second. On that basis, the company estimated a mean time between failures of about 1e4 seconds, or a crash every few hours on a host under that kind of pressure.

What changed after the diagnosis?

OpenAI said the immediate mitigation was to switch from GNU libunwind to libgcc’s unwinder. The company also upstreamed a self-contained reproducer and a fix to GNU libunwind, and said it verified that other unwinders do not show the same issue.

For the bad-host problem, the fix was operational rather than code-only: the team denylisted the physical host, improved its fatal signal handler to log register state, and changed the control plane so VMs are usually reused instead of recycled. OpenAI said that makes bad-node detection easier and lets operators catch a recurrence from logs alone without waiting for another core dump.

The report did not disclose a fleet size, outage duration, or a customer-impact count beyond saying replicated leaves minimize impact. It also did not name a release version for the mitigation, so the public record here is a postmortem and an upstream patch, not a formal rollout note.

What made the investigation work, OpenAI said, was not one lucky stack trace. It was a data set good enough to show that two unrelated failures had been hiding inside one crash story, and that the real repair needed both hardware triage and a software fix that had sat unnoticed for 18 years.

},

Primary Source Verification & Attributions

In adherence to Aine fact-checking standards, the statements in this report were verified against the following primary sources:

  • OpenAI Official NewsPrimary wire disclosure.
    View Record
Justin Davis

Reported by Justin Davis

Publisher & Editor-in-Chief

Justin Davis is the founder and publisher of Aine (AINE.ws). He has spent over a decade analyzing programmatic search infrastructure, algorithmic local ranking systems, and autonomous digital business architecture.

Related Investigations