Crystal 1.22.0 is released!
Crystal 1.22.0 makes processes exit immediately on EPIPE when writing to STDOUT/STDERR, mimicking SIGPIPE, with an opt-out via `STDOUT.exit_on_broken_pipe = false`. It also removes the long-deprecated `Process.fork` and adds type declarations on constants. aarch64-linux is promoted to Tier 1, and a reworked DWARF parser scans sections on demand, builds an index once and caches decoded backtrace lines in an LRU cache. Native epoll/kqueue event loops are now the default on all targets with libevent opt-in, alongside many HTTP validation fixes and LLVM 23.1/24.0 support; Kernel TLS was enabled but reverted in 1.22.1.
Related posts
- Crystal 1.22.3 is released!
Crystal Blog mediumAdeptCrystal 1.22.3 is a patch release of 14 changes from 4 contributors, focused on security fixes and regressions. Sockets now reject port numbers above 65535 instead of silently truncating them, for example binding 73616 as 8080. The HTTP parser now rejects invalid headers, chunk lines and Content-Length values that could cause request desync, and a `close` token in the Connection header always closes the connection. The release also fixes `IO::Delimited` matching after a fragmented delimiter and an `Enum.parse?` regression from 1.22.0 that could cause out-of-bounds writes.
- 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.
- 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.
- Improving Firefox stability on Linux
Mozilla Hacks mediumAdeptMozilla 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.
- Porting the Solana eBPF JIT compiler to ARM64
Trail of Bits hardMasterSolana's RBPF JIT compiler, which translates eBPF smart contracts to native code on validators, was ported from x86-only to ARM64, and its x86 backend gained Windows support. The port rewrote the register map, calling convention, shared subroutines (address translation, exceptions, indirect calls, instruction metering) and per-opcode translations. ARM64's fixed 4-byte instructions mean immediates often need several instructions, and the M1 enforces 16-byte stack alignment where QEMU does not. Running the port under MSAN exposed an uninitialized-memory bug: unsafe code read a Rust enum discriminant that was only a u8, so 7 bytes of stack garbage landed in JIT code and weakened its code-reuse mitigations. The fix adds #[repr(u64)] and layout tests, and both new targets remain behind feature gates until reviewed.