| RipGrep musl binaries occasionally segfault during very-large searches(github.com) | |
| 278 points by throwaway2037 46 days ago | 194 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:
| |