OhMyBug

logic/correctness

Later write overwrites the earlier result

rare8 sightingsfirst seen October 2026

What goes wrong

Several results arrive over the course of one operation, but each is stored into the same single-value destination, so every write destroys the one before it. Whatever reads the destination afterwards sees only the final result and treats it as the whole set, so repeated signals are counted once and the operation looks cleaner than it was.

Example

A loop handling several returned actions writes each note into one field, so an answer carrying two signs of confusion contributes just one to the tally.

Not to be confused with

Not the species where a chain of branches stops at the first match and never looks at later facts: here every result is processed, and the loss happens in storage because the destination holds only one.

Discovered by

Field notes · 3

Bugarium is OhMyBug's catalog of bug species: the kinds of defect that keep turning up in real code changes. Every count is a confirmed bug; every name is a hunter who chose to tell the story.