You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Call to /proc/sys/vm/overcommit_memory breaks jemalloc-enabled application when running as unprivileged user #430
I noticed that rsyslog's test suite suddenly stopped working on my build cluster.
After inspecting changes I noticed that dev-libs/jemalloc was recently updated from v4.1.0 to v4.2.0.
I cannot tell you any error message because I don't see anyone. However I bisected jemalloc and this is the bad commit:
commit c2f970c
Author: Jason Evans
Date: Thu May 5 17:45:02 2016 -0700
Modify pages_map() to support mapping uncommitted virtual memory.
If the OS overcommits:
- Commit all mappings in pages_map() regardless of whether the caller
requested committed memory.
- Linux-specific: Specify MAP_NORESERVE to avoid
unfortunate interactions with heuristic overcommit mode during
fork(2).
This resolves #193.
I am attaching two strace logs. One when running the test suite as unprivileged user (that's why I don't think this is a dupe of #399 because the file isn't opened yet; however I don't understand why it is hanging here because the user can access the file, i.e. $ cat /proc/sys/vm/overcommit_memory works) and one when running the same test as root.
Activity
stefantalpalaru commentedon Jul 31, 2016
It's the interaction with sys-apps/sandbox that triggers this for me. See https://bugs.gentoo.org/show_bug.cgi?id=589378
kspinka commentedon Aug 12, 2016
I think you've hit issue #443.
Whissi commentedon Aug 12, 2016
You are right. Closing my issue in favor of your excellent analysis in #443.