Skip to content

[scudo] cat -v and dd report memory exhausted #167406

@DemiMarie

Description

@DemiMarie

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 NixOS/nixpkgs#459884, but NixOS/nixpkgs#459884 (comment) 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..

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions