- 60comments
- 129comments
- 6comments
- 40comments
- 20comments
- 77comments
- 104comments
- 210comments
- 6comments
- 109comments
- 181comments
- 539comments
- 3comments
- 64comments
- 76comments
- 23comments
- —discuss
- 9comments
- 3comments
- 68comments
- 13comments
- 176comments
- 156comments
- 1comments
- 118comments
- 44comments
- 194comments
- 61comments
- 646comments
- 16comments
Note: NATS the UK airspace manager, not NATS the pubsub system.
And here I was surprised they would use NATS in their implementation to assign squawk codes.
link to the report (pdf): https://www.nats.aero/wp-content/uploads/2026/09/NATS-Prelim...
Well, that's comforting to know.
BBC: "Flight chaos caused by software defect in space of a millisecond, report says"
Sky: "'Millisecond' software error caused air traffic outage that grounded thousands of flights"
The Guardian: "Flight chaos for hundreds of thousands was caused in ‘millisecond’ by software error"
Sounds like pure bad luck.
Or insufficient testing?
Testing isn't an effective way to catch most race conditions. Code reviews, static analysis, and rigorous enforcement of concurrent coding standards is usually a better approach.
Perhaps something like what TigerBeetle does: deterministic simulation testing.
Or maybe even just reviewing logic that is subject to pre-emption.
Maybe I'm being too harsh.. on the plus side the system has at least failed hard every time there's been a fault. Nobody has died. But it's been 3 times now in the past couple of years, and two of those times resulted in over 2000 flights cancelled and days of backlog, and misery for hundreds of thousands. It's really not acceptable.
You don't know that.
Safety critical systems demand formal verification. This wasn't bad luck, this was poor craft.
Therac-25 called and wants its bug back.
Seriously, for 2026 this is pure amateur hour with no excuse.
2026 … but the code is running from what decade and has to interact with systems from what other decades?
Very interesting. I spent a large part of my career in aerospace and never considered this failure mode before. It makes me wonder: how long is the pathological code allocation time? A few seconds, at most? We're talking about flight identification codes that are normally assigned upon takeoff and change at most a handful of times during a flight.
I assume the "manual request" is an aircraft squawking 7700 or similar, but why does the system need to interrupt an in-flight allocation in the first place? Any controllers here have insight?
One would think it would be sufficient to do something single threaded like
or whatever, but they're not and I'm curious why.
there will be some other tasks in the system that need time guarantees around when they get scheduled for very important (safety?) reasons. so when these higher priority tasks show up the lower priority tasks get suspended.
if they could guarantee hard bounds on how long low priority tasks take to complete they could implement your scheduling algorithm. but i think in reality the low priority tasks are either not boundable or they if they do have a provable bound the bound is too high.
It’s my understanding that this subsystem that failed only allocates codes but I could be wrong there.
It doesn’t make sense to have other non-code allocation things competing for queue space with code allocations.
How often does that original request happen per day? How often does the higher priority activiry take?
If the original request happens 864 times a day and the high priority request ten times, there's a 1 in 25 chance it will happen in a given year.
Interesting! Looks like a race condition (with a 1ms window) during squawk allocation (the process that gives each aircraft a 4 digit identifier for ATC purposes) caused data corruption. They present that window as being small but 1ms is a decent chunk of time in our work lol
More specifically: it sounds like something which was supposed to be an atomic operation was split into two by the preempting task, with corruption happening because that task also interacted with the same piece of (now-temporarily-invalid) data.
Would be interesting if the report actually got into the details. The curiously specific "approx. 1ms window" sounds like an off-the-shelf memory race condition in combination with a preempting thread, for which 1ms is an absolute eternity and Guaranteed To Happen By Tuesday This Week™. But the "database corruption" sounds like database IDs being generated from timestamps with 1ms granularity.
They might have to switch to ULID or similar.
A few years back, NATS went down because a flight plan waypoint confused the system and it crashed. They had to manually find the problematic flight plan, remove it and start the whole system back up.
Considering the last issue they encountered, it looks like in more than one place, there is no error catching and graceful resolution for those errors.
I would assume a system of such importance to handle issues without hiccups and alert the operators of what did not work. Like “this input caused this problem”, not just crash.
Back in 2023 when the previous issue happened, it didn't actually "crash", it detected what it perceived as an inconsistency (which was due to invalid waypoint logic for waypoint codes in multiple countries) and put itself in "maintenance mode".