<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemd segfaults if no cgroups are available"
href="https://bugs.freedesktop.org/show_bug.cgi?id=74589">74589</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemd segfaults if no cgroups are available
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>richard@nod.at
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>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@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@entry=0x2448b40) at
src/core/cgroup.c:442
#10 0x000000000044d83f in unit_realize_cgroup (u=u@entry=0x2448b40) at
src/core/cgroup.c:523
#11 0x000000000041e161 in service_spawn (s=s@entry=0x2448b40, c=0x2433350,
timeout=<optimized out>, pass_fds=pass_fds@entry=true,
apply_permissions=apply_permissions@entry=true,
apply_chroot=apply_chroot@entry=true,
apply_tty_stdin=apply_tty_stdin@entry=true, set_notify_socket=false,
is_control=is_control@entry=false,
_pid=_pid@entry=0x7fff9774049c) at src/core/service.c:1813
#12 0x0000000000421b00 in service_enter_start (s=s@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@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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>