[systemd-bugs] [Bug 74589] New: systemd segfaults if no cgroups are available
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Feb 5 13:57:47 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=74589
Priority: medium
Bug ID: 74589
Assignee: systemd-bugs at lists.freedesktop.org
Summary: systemd segfaults if no cgroups are available
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: major
Classification: Unclassified
OS: Linux (All)
Reporter: richard at nod.at
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: general
Product: systemd
On systems without cgroups (like linux containers) systemd takes the following
branch in manager_setup_cgroup()
/* 0. Be nice to Ingo Molnar #628004 */
if (path_is_mount_point("/sys/fs/cgroup/systemd", false) <= 0) {
log_warning("No control group support available, not creating
root group.");
return 0;
}
But later it dies due to a NULL pointer exception in
unit_default_cgroup_path().
Full backtrace:
#0 0x00007f735230a8cb in raise () from /lib64/libpthread.so.0
#1 0x000000000040cbcb in crash (sig=11) at src/core/main.c:143
#2 <signal handler called>
#3 0x00007f7351fceeea in strlen () from /lib64/libc.so.6
#4 0x00007f7351fcec0e in strdup () from /lib64/libc.so.6
#5 0x0000000000479a79 in unit_default_cgroup_path (u=u at entry=0x2431690) at
src/core/unit.c:2022
#6 0x000000000044d4a9 in unit_create_cgroups (mask=(unknown: 0), u=0x2431690)
at src/core/cgroup.c:385
#7 unit_realize_cgroup_now (u=0x2431690) at src/core/cgroup.c:445
#8 0x000000000044d4a1 in unit_realize_cgroup_now (u=0x2430fb0) at
src/core/cgroup.c:442
#9 0x000000000044d4a1 in unit_realize_cgroup_now (u=u at entry=0x2448b40) at
src/core/cgroup.c:442
#10 0x000000000044d83f in unit_realize_cgroup (u=u at entry=0x2448b40) at
src/core/cgroup.c:523
#11 0x000000000041e161 in service_spawn (s=s at entry=0x2448b40, c=0x2433350,
timeout=<optimized out>, pass_fds=pass_fds at entry=true,
apply_permissions=apply_permissions at entry=true,
apply_chroot=apply_chroot at entry=true,
apply_tty_stdin=apply_tty_stdin at entry=true, set_notify_socket=false,
is_control=is_control at entry=false,
_pid=_pid at entry=0x7fff9774049c) at src/core/service.c:1813
#12 0x0000000000421b00 in service_enter_start (s=s at entry=0x2448b40) at
src/core/service.c:2240
#13 0x00000000004221b8 in service_enter_start_pre (s=0x2448b40) at
src/core/service.c:2323
#14 service_start (u=0x2448b40) at src/core/service.c:2600
#15 0x0000000000481e91 in job_run_and_invalidate (j=0x243df80) at
src/core/job.c:517
#16 0x000000000040fbfe in manager_dispatch_run_queue (m=m at entry=0x2425540) at
src/core/manager.c:1198
#17 0x0000000000412f3f in manager_loop (m=0x2425540) at src/core/manager.c:1826
#18 0x000000000040ad44 in main (argc=<optimized out>, argv=0x7fff97740ed8) at
src/core/main.c:1652
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140205/14a570f1/attachment.html>
More information about the systemd-bugs
mailing list