All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Cloudflare Discovers Race Condition Bug in Go's ARM64 Compiler

By

jgrahamc

7mo ago· 16 min readenInsight

Summary

Cloudflare engineers discovered a race condition bug in Go's arm64 compiler due to their massive scale of handling 84 million HTTP requests per second. The article details their investigation process from encountering strange panics in production to identifying the root cause in the compiler's code generation. They traced the issue to specific assembly code patterns that could cause data races under certain conditions, ultimately leading to a fix in the Go compiler.

Key quotes

· 4 pulled
Every second, 84 million HTTP requests are hitting Cloudflare across our fleet of data centers in 330 cities.
It means that even the rarest of bugs can show up frequently.
It was our scale that recently led us to discover a bug in Go's arm64 compiler which causes a race condition in the generated code.
This post breaks down how we first encountered the bug, investigated it, and ultimately drove to the root cause.
Snippet from the RSS feed
84 million requests a second means even rare bugs appear often. We'll reveal how we discovered a race condition in the Go arm64 compiler and got it fixed.

You might also wanna read