Improving Firefox stability on Linux
Mozilla went from being able to symbolicate under 20% of Linux Firefox crash reports to over 99% by scraping debug information for distro-packaged Firefox builds and their dependencies (GTK, Mesa, fontconfig, SQLite, etc.) from Arch, Debian, Fedora, OpenSUSE and Ubuntu repositories. The scripts convert that debug info into Breakpad symbol files, which the Socorro crash processor uses to turn minidumps into readable stack traces. With those traces the team caught distro-specific regressions such as a Debian fontconfig backport bug within days and sent fixes upstream to Mesa, GTK and glib. The crash analysis tooling was also rewritten in Rust on top of Sentry's crates, making it much faster and lighter on memory.
Related posts
- Everything Is Broken: Shipping rust-minidump at Mozilla – Part 1
Mozilla Hacks mediumAdeptrust-minidump, a pure-Rust replacement for the minidump-processing half of Google Breakpad, has been Firefox's crash-processing backend for six months, running in about half the time of Breakpad and appearing more reliable. Part 1 covers what minidumps are and why Breakpad's permissive, multi-platform C++ parser became painful to maintain. It also explains why stackwalking over corrupted crash state is heuristic and error-prone. The bulk describes the testing strategy built before fuzzing exposed bugs: a synthetic minidump generator that deliberately shares no layout code with the parser, integration tests on real dumps, insta snapshot tests guarding the stable JSON output, and stackwalker unit tests.
- Core dump epidemiology: fixing an 18-year-old bug
OpenAI hardMaster
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. The breakthrough came from switching from close inspection of individual cores to population analysis: an automated pipeline classified every production core dump from the past year, and the clean data set separated the two crash clusters by region, start date and node age. Fixes included denylisting the host, logging register state in the fatal signal handler, reusing VMs to make bad-node detection easier, and patching libunwind.
- Fuzzing rust-minidump for Embarrassment and Crashes – Part 2
Mozilla Hacks mediumAdeptFuzzing rust-minidump with cargo-fuzz and libfuzzer turned up a series of real bugs in a Rust rewrite of Breakpad's minidump processor that had otherwise shipped cleanly. They include an ARM64 stackwalker infinite loop that grew backtraces until OOM, a flipped comparison that silently emptied the MinidumpLinuxMaps RangeMap, OOMs from Vec::with_capacity on untrusted list lengths, and several integer overflows. The OOM fix checks that the remaining section bytes can actually hold the claimed item count, which bounds reservations to O(n) in the dump size. Rust's debug-build overflow panics and liberal assertions made each bug deterministically reproducible as a tiny checked-in test, and well-scoped issue reports with fixes made the fuzzing contributions genuinely useful to maintainers.
- Behind the Scenes Hardening Firefox with Claude Mythos Preview
Mozilla Hacks mediumAdeptMozilla fixed 271 latent security bugs in Firefox 150 found by Claude Mythos Preview, and 423 security bugs overall in April, using an agentic harness built on its existing fuzzing infrastructure. The harness writes and runs reproducible test cases to confirm or discard bug hypotheses, and jobs run in parallel on ephemeral VMs, each targeting a specific file. The surrounding pipeline handles deduplication, triage, tracking and fixes, and that project-specific work is what made the approach scale. Sample reports cover JIT and WebAssembly GC bugs, IPC sandbox escapes, an RLBox bypass and decades-old XSLT and layout bugs. Mozilla's advice is to start now with simple prompts ("there is a bug here, find it and build a testcase"), iterate, and move toward scanning patches in CI.
- bun.report is Bun's new crash reporter
Bun mediumAdept
Bun v1.1.5 replaces unsymbolicated crash output with a compact ~150-byte bun.report URL that encodes platform, subcommand, commit SHA, a 64-bit feature-usage bitfield, crash type and message, and ASLR-adjusted stack addresses as base64 VLQs, with no personal information. Instead of shipping 9–250 MB of debug symbols or uploading core dumps, Bun computes module-relative addresses using platform APIs (GetModuleHandleExW, dl_iterate_phdr, dyld image slide). A server then fetches symbols by commit and symbolizes them with llvm-symbolizer before pre-filling a GitHub issue. Zig comptime reflection generates the packed feature bitfield automatically from a struct of counters.