Bug#755160: Segfault when starting new system instance in a systemd-nspawn environment

Christoph Berg myon at debian.org
Fri Jul 18 12:56:46 BST 2014


Package: systemd
Version: 204-14
Severity: normal

Hi,

my host system is jessie. In my sid-amd64 chroot which I entered using
systemd-nspawn, I tried to start a new systemd --system instance:

$ sudo systemd-nspawn -D /srv/src/chroot/sid-amd64
Spawning namespace container on /srv/src/chroot/sid-amd64 (console is /dev/pts/4).
Init process in the container running as PID 27787.
/etc/localtime is not a symlink, not updating container timezone.

(sid-amd64)root at sid-amd64:~# apt-get install systemd
[...]
Setting up libsystemd-daemon0:amd64 (208-6) ...
Setting up libsystemd-journal0:amd64 (208-6) ...
Setting up libsystemd-login0:amd64 (208-6) ...
Setting up acl (2.2.52-1) ...
Setting up libcap2-bin (1:2.22-2) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.85-2) ...
Setting up libcryptsetup4:amd64 (2:1.6.4-4) ...
Setting up systemd (208-6) ...
Initializing machine ID from random generator.
Setting up dmsetup (2:1.02.85-2) ...
Processing triggers for libc-bin (2.19-4) ...
(plus apt-get dist-upgrade...)

(sid-amd64)root at sid-amd64:/# ulimit -c unlimited
(sid-amd64)root at sid-amd64:/# systemd --system
systemd 208 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
Detected virtualization 'systemd-nspawn'.

Welcome to Debian GNU/Linux jessie/sid!

Set hostname to <lehmann>.
No control group support available, not creating root group.
Cannot add dependency job for unit systemd-logind.service, ignoring: Unit dbus.socket failed to load: No such file or directory.
Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Delayed Shutdown Socket.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
[  OK  ] Listening on Journal Socket.
[  OK  ] Reached target Syslog.
         Mounting FUSE Control File System...
Segmentation fault (core dumped)

(sid-amd64)root at sid-amd64:/# apt-get install systemd-dbg
[...]
Setting up systemd-dbg (208-6) ...
(sid-amd64)root at sid-amd64:/# gdb /bin/systemd core
GNU gdb (Debian 7.7.1-2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /bin/systemd...Reading symbols from /usr/lib/debug/.build-id/a6/d7a796c91ef008550f9ba93b6ac028f59655b2.debug...done.
done.
[New LWP 6892]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `systemd --system'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f2a73c7ce1a in strlen () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007f2a73c7ce1a in strlen () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f2a73c7cb5e in strdup () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x000000000047aa81 in unit_default_cgroup_path (u=0xa2cb10) at ../src/core/unit.c:2145
#3  0x000000000044cdcb in unit_create_cgroups (mask=<optimized out>, u=<optimized out>)
    at ../src/core/cgroup.c:385
#4  unit_realize_cgroup_now (u=0xa2cb10) at ../src/core/cgroup.c:447
#5  0x000000000044cdc3 in unit_realize_cgroup_now (u=0xa23240) at ../src/core/cgroup.c:444
#6  0x000000000044cdc3 in unit_realize_cgroup_now (u=0xa72e00) at ../src/core/cgroup.c:444
#7  0x000000000044d1af in unit_realize_cgroup (u=u at entry=0xa72e00) at ../src/core/cgroup.c:525
#8  0x00000000004267b3 in mount_spawn (m=m at entry=0xa72e00, c=0xa730c8, _pid=_pid at entry=0xa733bc)
    at ../src/core/mount.c:779
#9  0x0000000000429869 in mount_enter_mounting (m=0xa72e00) at ../src/core/mount.c:959
#10 mount_start (u=0xa72e00) at ../src/core/mount.c:1058
#11 0x0000000000482e29 in job_run_and_invalidate (j=0xa85690) at ../src/core/job.c:517
#12 0x000000000040fad0 in manager_dispatch_run_queue (m=0x9f3130) at ../src/core/manager.c:1236
#13 0x000000000041283c in manager_loop (m=0x9f3130) at ../src/core/manager.c:1891
#14 0x000000000040ab4d in main (argc=2, argv=0x7fff018b46c8) at ../src/core/main.c:1669
(gdb) 


-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd depends on:
ii  acl                  2.2.52-1
ii  adduser              3.113+nmu3
ii  initscripts          2.88dsf-53.2
ii  libacl1              2.2.52-1
ii  libaudit1            1:2.3.7-1
ii  libc6                2.19-7
ii  libcap2              1:2.22-1.2
ii  libcap2-bin          1:2.22-1.2
ii  libcryptsetup4       2:1.6.4-4
ii  libdbus-1-3          1.8.6-1
ii  libgcrypt11          1.5.3-4
ii  libkmod2             18-1
ii  liblzma5             5.1.1alpha+20120614-2
ii  libpam0g             1.1.8-3
ii  libselinux1          2.3-1
ii  libsystemd-daemon0   204-14
ii  libsystemd-journal0  204-14
ii  libsystemd-login0    204-14
ii  libudev1             204-14
ii  libwrap0             7.6.q-25
ii  sysv-rc              2.88dsf-53.2
ii  udev                 204-14
ii  util-linux           2.20.1-5.8

Versions of packages systemd recommends:
ii  libpam-systemd  204-14

Versions of packages systemd suggests:
pn  systemd-ui  <none>

-- no debconf information

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/



More information about the Pkg-systemd-maintainers mailing list