---
title: "parking_lot: ffffffffffffffff..."
description: "Fly.io's Rust Anycast router, fly-proxy, kept deadlocking after Catalog state was moved to lazy loading."
url: "https://swe.quest/articles/parking-lot-ffffffffffffffff-e7cd36eac4ddf5cc"
canonical: "https://fly.io/blog/parking-lot-ffffffffffffffff/"
source: "Fly.io"
published: "2025-05-28"
difficulty: "hard"
kind: "Incident"
reading_minutes: 16
tags: ["concurrency","rust","debugging","incident-response","load-balancing"]
---

# parking\_lot: ffffffffffffffff...

A post on [Fly.io](https://swe.quest/sources/flyio.md), published 2025-05-28, 16 min read, Incident. Original: [https://fly.io/blog/parking-lot-ffffffffffffffff/](https://fly.io/blog/parking-lot-ffffffffffffffff/)

## Summary

Fly.io's Rust Anycast router, fly-proxy, kept deadlocking after Catalog state was moved to lazy loading. The cause was traced to parking\_lot RwLock words being set to 0xFFFFFFFFFFFFFFFF. The hunt ran from a known if-let lock-lifetime footgun through closure-scoped lock refactors with timeouts and telemetry, parking\_lot's deadlock detector, gdb core-dump inspection, read\_recursive experiments and miri. Core dumps showed threads waiting on a lock nobody held, and logging the raw lock word revealed every bit set, including the unused UPGRADEABLE flag. The post also covers Corrosion, Fly.io's CRDT-structured SQLite replicated over SWIM gossip, and the watchdog that bounces stuck proxies to keep deadlocks survivable.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Concurrency](https://swe.quest/tags/concurrency.md) (Compilers & runtimes)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)

## Prerequisites

- read-write locks
- Rust ownership and lifetimes ([easy posts on Rust](https://swe.quest/tags/rust.md?difficulty=easy))
- async runtimes like Tokio ([easy posts on Concurrency](https://swe.quest/tags/concurrency.md?difficulty=easy))

## Keywords

parking\_lot, fly-proxy, Corrosion, Tokio, miri, gdb, SWIM, CRDT

## Related posts

- [Corrosion](https://swe.quest/articles/corrosion-041c41646926d669.md): Fly.io · 2025-10-22 · Medium · 9 min read · Distributed systems, Replication, SQLite, Incidents & postmortems, Rust
  Corrosion is Fly.io's open-source service discovery system: a Rust program that propagates a SQLite database across thousands of workers via SWIM gossip and QUIC, using the cr-sqlite CRDT extension with last-write-wins logical timestamps instead of distributed consensus.
- [How posix\_spawn & close\_range “fixed” cold starts](https://swe.quest/articles/how-posix-spawn-close-range-fixed-cold-starts-0c769ed6733a0a1b.md): Neon · 2024-02-21 · Medium · 14 min read · Linux, Performance engineering, Debugging, Rust, PostgreSQL
  Neon's Pageserver regressed cold-start and first-query-after-idle latency to seconds after it began shutting down idle per-tenant walredo sidecar processes.
- [How to deadlock Tokio application in Rust with just a single mutex](https://swe.quest/articles/how-to-deadlock-tokio-application-in-rust-with-just-a-single-mutex-8d0964c04bebf8f2.md): Turso · 2024-09-02 · Medium · 3 min read · Rust, Concurrency, Debugging
  A Tokio program can deadlock with a single std::sync::Mutex when a spawn\_blocking task holds the lock while calling Handle::block\_on on a future, and an async task on a worker thread tries to take the same lock.
- [May 18 Replit downtime](https://swe.quest/articles/may-18-replit-downtime-8ded63600c4e370b.md): Replit · 2023-05-20 · Medium · 4 min read · Incidents & postmortems, Go, Concurrency, Deployment, Configuration management
  A latent Go bug leaked RWMutex read-locks whenever a configuration kind had no handler.
- [Well, That Wasn't Fun: October 16 '26](https://swe.quest/articles/well-that-wasn-t-fun-october-16-26-83d1120fe160ef39.md): Fly.io · 2026-11-06 · Medium · 7 min read · Incidents & postmortems, Vulnerability research, Linux, Virtualization, Networking
  A Linux kernel bug in IPv4 checksum offload validation let a guest VM direct the host to write its computed checksum into an already-trusted IPv4 header field.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
