Summary: | [systemd-nspawn] out of memory and su system errors | ||
---|---|---|---|
Product: | systemd | Reporter: | U. Artie Eoff <ullysses.a.eoff> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
strace for first issue
strace for second issue strace -s255 -f -o log |
Description
U. Artie Eoff
2014-03-20 19:12:27 UTC
Created attachment 96120 [details]
strace for second issue
Ok, so if I add "audit=0" to the kernel command line then I don't encounter Issue 2. However, I still encounter Issue 1. The second issue is caused by audit being stupid, and needs to be fixed in the kernel, use audit=0 for that, as you found out. For the first issue, could you please run nspawn through "strace -s255 -f -o log" when this fails, and attach the file it generates here? Created attachment 99963 [details]
strace -s255 -f -o log
I'm guessing this: commit a9dd39d9b482c99da6b3af3a7394b290e2019cb2 Author: Philip Lorenz <philip@bithub.de> Date: Wed Apr 9 19:08:45 2014 +0200 nspawn: Fix erroneous OOM when building group list change_uid_gid() never initialises sz which may cause greedy_realloc to skip the initial buffer allocation. Can you try with the latest git or with this patch packported (it applies cleanly to v211)? (In reply to comment #5) > I'm guessing this: > > commit a9dd39d9b482c99da6b3af3a7394b290e2019cb2 > Author: Philip Lorenz <philip@bithub.de> > Date: Wed Apr 9 19:08:45 2014 +0200 > > nspawn: Fix erroneous OOM when building group list > > change_uid_gid() never initialises sz which may cause greedy_realloc to > skip the initial buffer allocation. > > Can you try with the latest git or with this patch packported (it applies > cleanly to v211)? This patch is not on master (In reply to comment #6) > (In reply to comment #5) > > I'm guessing this: > > > > commit a9dd39d9b482c99da6b3af3a7394b290e2019cb2 > > Author: Philip Lorenz <philip@bithub.de> > > Date: Wed Apr 9 19:08:45 2014 +0200 > > > > nspawn: Fix erroneous OOM when building group list > > > > change_uid_gid() never initialises sz which may cause greedy_realloc to > > skip the initial buffer allocation. > > > > Can you try with the latest git or with this patch packported (it applies > > cleanly to v211)? > > This patch is not on master Nevermind, I found it... I was searching for the hash initially. (In reply to comment #5) > I'm guessing this: > > commit a9dd39d9b482c99da6b3af3a7394b290e2019cb2 > Author: Philip Lorenz <philip@bithub.de> > Date: Wed Apr 9 19:08:45 2014 +0200 > > nspawn: Fix erroneous OOM when building group list > > change_uid_gid() never initialises sz which may cause greedy_realloc to > skip the initial buffer allocation. > > Can you try with the latest git or with this patch packported (it applies > cleanly to v211)? Hmm... so I actually downloaded the v212 source rpm from Fedora rawhide (systemd-212-5.fc21.src.rpm). Without backporting the aforementioned patch I recompiled and installed from that source on F20 and now I don't encounter the first issue anymore. The systemd.spec indicates source is from commit f01de96. I can't reproduce this either. valgrind doesn't yield anything useful. Nevertheless, my hypothesis still stands because the error fixed by this patch is compilation dependant, so it is still likely that this is the problem. I'm closing for now, please reopen if you encounter this again. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.