RipGrep musl binaries occasionally segfault during very-large searches(github.com)
275 points by throwaway2037 1 day ago | 184 comments
tl;dr: RipGrep 15.2.0 musl binaries occasionally segfault during highly concurrent searches over very large trees (~20GiB, 1.8M files), with the crash occurring inside musl's mallocng heap integrity assertion during a calloc from opendir. The reporter reproduced it reliably on a 24-core system by looping rg over a synthetic tree, suggesting a bug in musl's mallocng allocator under heavy multithreaded allocation rather than in ripgrep itself.
HN Discussion:
  • ~Notes that the analysis appears AI-generated and was flagged as such in the kernel patch discussion
  • Musl's mallocng is known to perform poorly under multithreaded contention and should be replaced
  • Points to the detailed analysis document as a better reference for understanding the bug
  • Running ripgrep on HPC cluster filesystems is a workflow problem regardless of the bug
  • Questions the diagnosis, asking why only musl is affected and whether the kernel bug is confirmed