Re: [systemd-devel] stop+start of nspawn scope aborts: 's-state == SCOPE_DEAD'
On Mon, 12.08.13 19:41, Marti Raudsepp (ma...@juffo.org) wrote: Hi list, I hit a bug today in the scope unit support. Reproducible like this: systemd-nspawn -bD /srv/subarch systemctl stop machine-subarch.scope systemctl start machine-subarch.scope I wasn't sure whether start would do anything or not so I gave it a shot, but it turned out to crash the host systemd with: Assertion 's-state == SCOPE_DEAD' failed at src/core/scope.c:246, function scope_start(). Aborting Tested with systemd 206 as well as current git master (206.103.g631c922) on Arch Linux. /srv/subarch is a plain Arch Linux installation created according to: https://wiki.archlinux.org/index.php/Arch_systemd_container OK, I fixed the crash, but this is incomplete as we really should disallow multipl start requests on the same scope. I have added a TODO list item for the latter now. Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] stop+start of nspawn scope aborts: 's-state == SCOPE_DEAD'
Hi list, I hit a bug today in the scope unit support. Reproducible like this: systemd-nspawn -bD /srv/subarch systemctl stop machine-subarch.scope systemctl start machine-subarch.scope I wasn't sure whether start would do anything or not so I gave it a shot, but it turned out to crash the host systemd with: Assertion 's-state == SCOPE_DEAD' failed at src/core/scope.c:246, function scope_start(). Aborting Tested with systemd 206 as well as current git master (206.103.g631c922) on Arch Linux. /srv/subarch is a plain Arch Linux installation created according to: https://wiki.archlinux.org/index.php/Arch_systemd_container Regards, Marti gdb backtrace: #0 0x7fa684ee21c9 in raise () from /usr/lib/libc.so.6 #1 0x7fa684ee35c8 in abort () from /usr/lib/libc.so.6 #2 0x0045d823 in log_assert () #3 0x0045e0c0 in log_assert_failed () #4 0x0047ea2f in scope_start () #5 0x00479721 in job_run_and_invalidate () #6 0x0040e3ee in manager_dispatch_run_queue () #7 0x0041152f in manager_loop () #8 0x00409726 in main () Full log: Aug 12 19:30:32 arch systemd[1]: Stopping Container subarch Aug 12 19:30:33 arch systemd[1]: machine-subarch.scope stopping timed out. Killing Aug 12 19:30:33 arch systemd[1]: Stopped Container subarch Aug 12 19:30:33 arch systemd[1]: Unit machine-subarch.scope entered failed state Aug 12 19:30:33 arch systemd-machined[403]: Machine subarch terminated Aug 12 19:30:33 arch systemd[1]: Stopped Container subarch Aug 12 19:30:35 arch systemd[1]: Starting Container subarch Aug 12 19:30:35 arch systemd[1]: Assertion 's-state == SCOPE_DEAD' failed at src/core/scope.c:246, function scope_start(). Aborting Aug 12 19:30:35 arch systemd[1]: Caught ABRT, dumped core as pid 486 Aug 12 19:30:35 arch systemd[1]: Freezing execution Aug 12 19:30:35 arch systemd-coredump[487]: Process 486 (systemd) dumped core ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel