[scudo] `cat -v` and `dd` report `memory exhausted`
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
When Scudo malloc is in use, coreutils `cat -v` fails with `memory exhausted` before doing anything. `dd` can also faiil with this error, though it seems intermittent. Other programs, including complex ones like Chromium and the COSMIC desktop environment, work as expected.
This was originally reported to Nixpkgs as https://github.com/NixOS/nixpkgs/issues/459884, but https://github.com/NixOS/nixpkgs/issues/459884#issuecomment-3513994924 recommended that I report this here.
In case it matters, Scudo is loaded via NixOS’s `environment.memoryAllocator.provider`, which uses what I believe is the equivalent of `/etc/ld.so.preload` on non-NixOS. Switching to GrapheneOS’s hardened allocator makes the problem go away, which indicates that it is not simply due to overriding libc malloc..
Contributor guide
Assessment
This issue has not been assessed yet.