---
title: "Debugging (hard)"
description: "Tracking down bugs, debugging techniques and war stories"
url: "https://swe.quest/tags/debugging?difficulty=hard&per=48"
---

# Debugging (hard)

Topic in Engineering practices: Tracking down bugs, debugging techniques and war stories

By difficulty: [Easy](https://swe.quest/tags/debugging.md?difficulty=easy) · [Medium](https://swe.quest/tags/debugging.md?difficulty=medium) · [Hard](https://swe.quest/tags/debugging.md?difficulty=hard)

Posts 1–26 of 26, page 1 of 1, newest first.

## 2026-11-09

- [Extending LLDB to Debug Applications That Span CPUs and GPUs](https://swe.quest/articles/extending-lldb-to-debug-applications-that-span-cpus-and-gpus-36dc33c7472e000a.md): Meta Engineering · 2026-11-09 · Hard · 6 min read · Debugging, Developer tools, Hardware, Open source
  LLDB gains a vendor-neutral accelerator plugin architecture in lldb-server that represents the CPU and GPU as separate debugger targets, each with its own architecture, threads, registers and address space, while presenting them in one debugging session.

## 2026-10-13

- [Chasing that 32 ms tail latency in ClickHouse](https://swe.quest/articles/chasing-that-32-ms-tail-latency-in-clickhouse-e6423f2da8a7c8b8.md): ClickHouse · 2026-10-13 · Hard · 11 min read · Networking, Performance engineering, Linux, Databases, Debugging
  An extra full round trip (~32 ms) on simple SELECTs over ClickHouse's Native protocol came from TCP\_NODELAY turning each end-of-query metadata packet (Logs, Progress, ProfileEvents) into its own TCP segment.

## 2026-10-02

- [How recurring network maintenance exposed 6 bugs](https://swe.quest/articles/how-recurring-network-maintenance-exposed-6-bugs-e0c55b4aaea1ee8f.md): Jane Street Tech Blog · 2026-10-02 · Hard · 20 min read · Debugging, DNS, Resilience, Functional programming, Linux
  Recurring weekend network partitions caused Jane Street's Kafka relays and consumer-group monitors to segfault, leak hundreds of thousands of sockets, and crash under recovery-time TCP connection surges, and tracing them uncovered six layered bugs.
- [Results from the ASIC puzzle](https://swe.quest/articles/results-from-the-asic-puzzle-ca06d1b0c156ce5d.md): Jane Street Tech Blog · 2026-10-02 · Hard · 12 min read · Hardware, Debugging, Formal methods
  Jane Street's puzzle chip, shipped as a bare GDS layout, turns out to be a hardware checker for an 11x11 Star Battle ("Two Not Touch") puzzle.

## 2026-10-01

- [A resilient kernel log reporter](https://swe.quest/articles/a-resilient-kernel-log-reporter-6b71e14df313dc47.md): Jane Street Tech Blog · 2026-10-01 · Hard · 6 min read · Linux, Observability, Resilience, Debugging, Operating systems
  Jane Street built a kernel log shipper that keeps working when disk or network fail, so logs from the most interesting crashes still reach central storage.

## 2026-09-11

- [Module Tracking in Swift Debug Info](https://swe.quest/articles/module-tracking-in-swift-debug-info-924221c1e8f2aa55.md): Swift.org · 2026-09-11 · Hard · 9 min read · Swift, Debugging, Build systems, Compilers, Developer tools
  Swift 6.3 and 6.4 change how explicitly-built Swift modules are referenced in debug info so LLDB's expression evaluator can import the exact module for the code at a breakpoint instead of looking it up by base name.

## 2026-09-08

- [Testing race conditions with memory access tracing and stack-based delay injection](https://swe.quest/articles/testing-race-conditions-with-memory-access-tracing-and-stack-based-delay-a9851e9c2152e266.md): Google Project Zero · 2026-09-08 · Hard · 16 min read · Concurrency, Linux, Vulnerability research, Testing, Debugging
  MAccConc is a set of tools for exploring thread interleavings of multi-threaded Linux kernel test cases to confirm, regression-test and eventually fuzz race condition bugs.

## 2026-06-30

- [Core dump epidemiology: fixing an 18-year-old bug](https://swe.quest/articles/core-dump-epidemiology-fixing-an-18-year-old-bug-49f918c45e5e4eb3.md): OpenAI · 2026-06-30 · Hard · 16 min read · Debugging, C & C++, Linux, Hardware, Incidents & postmortems
  Mysterious return-to-bogus-address crashes in Rockset's C++ execution layer turned out to be two unrelated bugs: silent register corruption on a single bad Azure host, and an 18-year-old race in GNU libunwind's \_Ux86\_64\_setcontext, which read the synthesized ucontext\_t after moving %rsp past it, letting a frequent SIGUSR2 CPU-time signal clobber it during exception unwinding.

## 2026-05-06

- [vLLM V0 to V1: Correctness Before Corrections in RL](https://swe.quest/articles/vllm-v0-to-v1-correctness-before-corrections-in-rl-4dc68bef7cff8909.md): Hugging Face · 2026-05-06 · Hard · 7 min read · Model training, Inference & serving, LLMs, Debugging
  Migrating PipelineRL's rollout generation from vLLM V0 (0.8.5) to V1 (0.18.1) caused training metrics (clip rate, KL, entropy, reward) to diverge.

## 2026-01-27

- [Unlocking Agentic RL Training for GPT-OSS: A Practical Retrospective](https://swe.quest/articles/unlocking-agentic-rl-training-for-gpt-oss-a-practical-retrospective-2439023c679282b9.md): Hugging Face · 2026-01-27 · Hard · 21 min read · Model training, LLMs, AI agents, Debugging
  Agentic RL training of GPT-OSS-20B in verl initially failed with exploding gradient norms, KL and entropy, and flat rewards.

## 2025-12-14

- [Progress Report: Linux 6.18](https://swe.quest/articles/progress-report-linux-6-18-d30ed5d919b583a6.md): Asahi Linux · 2025-12-14 · Hard · 8 min read · Linux, Hardware, Debugging, Open source
  Asahi Linux continues upstreaming Apple Silicon support: SMC hwmon and RTC subdevice drivers land in Linux 6.19, and USB3-over-Type-C changes to the Synopsys and TI USB-PD drivers are merged, with only the Apple Type-C PHY driver still awaiting review.

## 2025-12-11

- [A disappearing Service Processor](https://swe.quest/articles/a-disappearing-service-processor-a469beb073a3e15f.md): Oxide · 2025-12-11 · Hard · 8 min read · Debugging, Hardware, Operating systems, Rust
  Oxide's Cosmo sled Service Processor (an STM32H7 Cortex-M7 running Hubris) intermittently dropped off the network and hung so hard a debug probe couldn't halt it.

## 2025-07-08

- [When SIGTERM Does Nothing: A Postgres Mystery](https://swe.quest/articles/when-sigterm-does-nothing-a-postgres-mystery-0ecf6df7cd549d22.md): ClickHouse · 2025-07-08 · Hard · 11 min read · PostgreSQL, Replication, Debugging, Event-driven architecture
  Creating a logical replication slot on a Postgres hot standby (v16+) can hang indefinitely and ignore pg\_cancel\_backend and pg\_terminate\_backend when a transaction is still open on the primary.

## 2025-07-02

- [A Higgs-bugson in the Linux Kernel](https://swe.quest/articles/a-higgs-bugson-in-the-linux-kernel-ee1594bf1b749860.md): Jane Street Tech Blog · 2025-07-02 · Hard · 11 min read · Debugging, Linux, Storage systems, Identity & auth, Networking
  Rare EACCES failures during large file copies over Kerberized NFSv3 came from a Linux kernel bug in RPCSEC\_GSS reply verification.

## 2025-06-06

- [Fuzzer Blind Spots (Meet Jepsen!)](https://swe.quest/articles/fuzzer-blind-spots-meet-jepsen-95901ab1fc56e123.md): TigerBeetle · 2025-06-06 · Hard · 7 min read · Testing, Formal methods, Storage engines, Query engines, Debugging
  Jepsen found a missing-results bug in TigerBeetle's query engine despite four fuzzers covering it, because the VOPR and LSM query fuzzer pre-registered disjoint queries whose matching objects were always consecutive in every secondary index, so zig-zag merge join probing was never exercised.

## 2025-05-28

- [parking\_lot: ffffffffffffffff...](https://swe.quest/articles/parking-lot-ffffffffffffffff-e7cd36eac4ddf5cc.md): Fly.io · 2025-05-28 · Hard · 16 min read · Concurrency, Rust, Debugging, Incidents & postmortems, Load balancing
  Fly.io's Rust Anycast router, fly-proxy, kept deadlocking after Catalog state was moved to lazy loading.

## 2025-03-05

- [The case of the vanishing CPU: A Linux kernel debugging story](https://swe.quest/articles/the-case-of-the-vanishing-cpu-a-linux-kernel-debugging-story-3db1aa1b81ec8319.md): ClickHouse · 2025-03-05 · Hard · 32 min read · Linux, Memory management, Debugging, Performance engineering, Incidents & postmortems
  Intermittent, indefinite CPU saturation of ClickHouse Cloud pods, seen only on GCP, turned out to be a Linux kernel memory-management livelock.

## 2025-01-15

- [Unraveling a Postgres segfault that uncovered an Arm64 JIT compiler bug](https://swe.quest/articles/unraveling-a-postgres-segfault-that-uncovered-an-arm64-jit-compiler-bug-3a4fc2ffe09ef0c2.md): Datadog Engineering · 2025-01-15 · Hard · 19 min read · PostgreSQL, Compilers, Debugging, Hardware, Incidents & postmortems
  Postgres crashes with segfaults on Arm64 instances were traced to JIT-compiled tuple-deforming code, and ultimately to a bug in LLVM's Arm64 code generation.

## 2024-05-22

- [Post-quantum readiness for TLS at Meta](https://swe.quest/articles/post-quantum-readiness-for-tls-at-meta-92c6471e952cc018.md): Meta Engineering · 2024-05-22 · Hard · 8 min read · Cryptography, Networking, Concurrency, Debugging
  Meta has deployed hybrid X25519+Kyber key exchange in its Fizz TLS library for most internal service traffic, prioritizing store-now-decrypt-later protection where it controls both endpoints.

## 2024-01-29

- [Option Soup: the subtle pitfalls of combining compiler flags](https://swe.quest/articles/option-soup-the-subtle-pitfalls-of-combining-compiler-flags-ee7121060b7d1c26.md): Mozilla Hacks · 2024-01-29 · Hard · 8 min read · C & C++, Debugging, Build systems, Linux, Incidents & postmortems
  A Firefox 120 beta crash in std::locale::classic() on Ubuntu 18.04 traced back to a downstream build that combined -static-libstdc++ with the linker flag -Bsymbolic-functions.

## 2022-07-15

- [Spin Infrastructure Adventures: Containers, Systemd, and CGroups](https://swe.quest/articles/spin-infrastructure-adventures-containers-systemd-and-cgroups-5a9e742638fea62c.md): Shopify Engineering · 2022-07-15 · Hard · 8 min read · Containers, Linux, Kubernetes, Debugging, Multi-tenancy
  Spin development instances run systemd inside Kubernetes containers, and processes launched through systemd escaped the pod's memory cgroup, so pod memory limits were not enforced and instances could exceed their allotment and disturb neighbours.

## 2022-01-11

- [Magic-trace: Diagnosing tricky performance issues easily with Intel Processor Trace](https://swe.quest/articles/magic-trace-diagnosing-tricky-performance-issues-easily-with-intel-processor-bf89d988f02b1230.md): Jane Street Tech Blog · 2022-01-11 · Hard · 14 min read · Performance engineering, Hardware, Linux, Debugging, Functional programming
  Magic-trace is an open-source tool that uses Intel Processor Trace in circular-buffer mode to capture roughly the last 10ms of execution before a chosen function call, then renders every function call on a nanosecond-resolution timeline in a forked Perfetto UI.

## 2021-12-02

- [Upgrading MySQL at Shopify](https://swe.quest/articles/upgrading-mysql-at-shopify-bb0f87b54fe985d5.md): Shopify Engineering · 2021-12-02 · Hard · 16 min read · MySQL, Replication, Debugging, Deployment, Cloud platforms
  Shopify moved hundreds of horizontally sharded Percona Server shards, thousands of VMs in all, from 5.7.21 to 5.7.32, mainly to get writeset-based replication parallelism across replication topologies up to four hops deep.

## 2021-10-21

- [Debugging Systems in the Cloud: MySQL, Kubernetes, and Cgroups](https://swe.quest/articles/debugging-systems-in-the-cloud-mysql-kubernetes-and-cgroups-a5ded3f862ca5b21.md): Shopify Engineering · 2021-10-21 · Hard · 8 min read · Debugging, Linux, MySQL, Kubernetes, Performance engineering
  Slow MySQL Pod startup and degraded query performance on long-running GKE nodes in Shopify's KateSQL platform traced back to a Linux kernel memory cgroup leak: roughly 50K zombie memory cgroups made mem\_cgroup\_commit\_charge slow, so each 128MB mmap during InnoDB buffer pool initialization took about 100 ms. The investigation used strace, perf flamegraphs, slabtop and /proc/cgroups, and Google kernel engineers confirmed it as a side effect of slab reparenting on cgroup removal.

## 2021-04-27

- [Reverse debugging at scale](https://swe.quest/articles/reverse-debugging-at-scale-38ad4795201fdcca.md): Meta Engineering · 2021-04-27 · Hard · 7 min read · Debugging, Developer tools, Hardware, Linux, Performance engineering
  Meta continuously records Intel Processor Trace (Intel PT) data for all running processes in production, keeping it in a bounded circular buffer.

## 2021-04-06

- [Eliminating Data Races in Firefox – A Technical Report](https://swe.quest/articles/eliminating-data-races-in-firefox-a-technical-report-5763b33d1a4f6f94.md): Mozilla Hacks · 2021-04-06 · Hard · 11 min read · Concurrency, C & C++, Rust, Debugging, Static analysis
  Mozilla deployed ThreadSanitizer across Firefox's C/C++ and Rust code, using a compiled-in suppression list to gate new races in CI while legacy ones were triaged toward a "no data races" policy.

Same list as RSS: [https://swe.quest/feed.xml?difficulty=hard&tag=debugging](https://swe.quest/feed.xml?difficulty=hard&tag=debugging). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

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)
