[systemd-devel] stop+start of nspawn scope aborts: 's->state == SCOPE_DEAD'
Marti Raudsepp
marti at juffo.org
Mon Aug 12 09:41:28 PDT 2013
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 0x00007fa684ee21c9 in raise () from /usr/lib/libc.so.6
#1 0x00007fa684ee35c8 in abort () from /usr/lib/libc.so.6
#2 0x000000000045d823 in log_assert ()
#3 0x000000000045e0c0 in log_assert_failed ()
#4 0x000000000047ea2f in scope_start ()
#5 0x0000000000479721 in job_run_and_invalidate ()
#6 0x000000000040e3ee in manager_dispatch_run_queue ()
#7 0x000000000041152f in manager_loop ()
#8 0x0000000000409726 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....
More information about the systemd-devel
mailing list