https://bugzilla.novell.com/show_bug.cgi?id=820454 https://bugzilla.novell.com/show_bug.cgi?id=820454#c0 Summary: [PATCH] systemd assertion fail on running systemd-nspawn on /var/tmp/build-root Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 0 Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mvyskocil@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Hi Frederic, during a well known IO performance topic, I wanted to check what happens in case something bad happens to systemd as PID1. I did not want to bother with making a full lxc container, so I've just called osc build -x gdb -x strace -x systemd on devel:libraries:c_c++/zlib source code. However the nspawn got aborted with systemd-nspawn -D /var/tmp/build-root /bin/systemd Spawning namespace container on /var/tmp/build-root (console is /dev/pts/5). /etc/localtime is not a symlink, not updating container timezone. systemd 202 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ) Detected virtualization 'systemd-nspawn'. Welcome to Linux! /etc/mtab is not a symlink or not pointing to /proc/self/mounts. This is not supported anymore. Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8) output. Assertion 'u' failed at src/core/unit.c:1835, function unit_add_dependency_by_name(). Aborting. Caught <ABRT>, dumped core as pid 8. Freezing execution. Looking at core, it was easy to find a guilty code, the backtrace look like #7 0x00000000004785da in unit_add_dependency_by_name (u=0x0, d=d@entry=UNIT_WANTS, name=name@entry=0x48e582 "remote-fs-pre.target", path=path@entry=0x0, add_reference=add_reference@entry=true) at src/core/unit.c:1835 #8 0x0000000000425326 in sysv_parse_insserv_conf (mgr=mgr@entry=0x23cd540, filename=0x48e53a "/etc/insserv.conf") at src/core/service.c:3553 #9 0x0000000000425a05 in sysv_facility_in_insserv_conf (mgr=0x23cd540) at src/core/service.c:3612 #10 service_enumerate (m=0x23cd540) at src/core/service.c:3778 #11 0x000000000040f374 in manager_enumerate (m=0x23cd540) at src/core/manager.c:740 #12 0x0000000000411208 in manager_startup (m=0x23cd540, serialization=0x0, fds=0x7f31e9c25020) at src/core/manager.c:853 #13 0x000000000040aaaf in main (argc=1, argv=0x7fff36cc9878) at src/core/main.c:1629 so the line with a bug is in #ifdef HAVE_SYSV_COMPAT static void sysv_parse_insserv_conf(Manager *mgr, const char* filename) { ... u = manager_get_unit(mgr, SPECIAL_REMOTE_FS_TARGET); unit_add_dependency_by_name(u, UNIT_WANTS, SPECIAL_REMOTE_FS_PRE_TARGET, NULL, true); free (facility); So I'd say attached (untested) fix will help to prevent the issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.