RipGrep musl binaries segfault on large searches
Original: RipGrep musl binaries occasionally segfault during very-large searches
Why This Matters
RipGrep is a widely adopted developer tool; musl-linked builds are common in containerized and security-sensitive Linux environments.
RipGrep v15.2.0's x86_64-unknown-linux-musl binary has been reported to occasionally segfault during very large searches. The bug was first found in the rg binary bundled with OpenAI Codex, confirmed identical to the official GitHub release tarball.
A GitHub issue (#3494) filed on July 26, 2026 reports that the official x86_64-unknown-linux-musl binary of RipGrep 15.2.0 occasionally segfaults when performing very large searches. The reporter, dfoxfranke, first encountered the issue in the rg binary bundled with OpenAI Codex, then confirmed it independently using the official release tarball from the BurntSushi/ripgrep GitHub releases page. The binary in question is byte-for-byte identical between the two sources. The affected build includes PCRE2 10.45 with JIT support and SSE2/SSSE3/AVX2 SIMD runtime capabilities. The reporter rebuilt RipGrep 15.2.0 with debug symbols enabled using CROSS_CONTAINER_ENGINE=podman and CARGO_PROFILE_RELEASE_DEBUG flags to perform further analysis. The issue is specifically tied to the musl libc target and does not appear to affect glibc-linked builds. The RipGrep repository currently has 66.8k stars and 2.7k forks, indicating widespread usage across developer toolchains.