Glossary · Term

race condition

← all terms

Definition

Plain language

A bug that only shows up when two things happen at just the wrong moment relative to each other.

As stated in the literature

A concurrency defect where correctness depends on the timing or interleaving of operations on shared state; the vulnerability class (use-after-free, double-free) that slyp autonomously discovers in Windows COM services.

Also called: race conditions

Why it matters: These timing-dependent bugs are hard to reproduce yet can be serious security holes, making them valuable for automated tools to find.

For example, two threads both try to free the same chunk of memory, and depending on which goes first the program crashes only once in a while.

Heard on the show

“… one-point-two, you used this much shared memory, you had this register pressure, you hit this race condition on the small input" — each of those becomes a dimension on the frontier. …”
Episode 065 — One Loop to Optimize Them All: A Universal API for LLM-Driven Discovery

Mentioned in 3 episodes

  1. 065
    One Loop to Optimize Them All: A Universal API for LLM-Driven Discovery
  2. 014
    Why a Constrained Pipeline Beat a Full Coding Agent at Finding Bugs 30-to-1
  3. 012
    Why AI Coding Agents Keep Trying to Debug Without a Debugger

Related terms