Public bug reported: I created a container with lxc-create -t ubuntu -n test1; started it (lxc-start -n test1); installed plan9port and some x-related packages (xterm, xdm, xserver-xorg-core, xserver-xorg). Then, while it was still running, logged out and run lxc-destroy -n test1, which hung and I had to break it and then calling lxc-list also hung forever. Trying to remove the container from /var/lib/lxc/test1/ failed with: rm: cannot remove ‘/var/lib/lxc/test1/rootfs/dev/pts’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/dev/ptmx’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/dev/lxc/console’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/dev/lxc/tty1’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/dev/lxc/tty4’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/dev/lxc/tty3’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/dev/lxc/tty2’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/proc’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/sys’: Device or resource busy rm: cannot remove ‘/var/lib/lxc/test1/rootfs/run’: Device or resource busy
Running ps -xa | grep lxc produced: 121 1509 1 0 09:01 ? 00:00:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/lxc/dnsmasq.pid --conf-file= --listen-address 10.0.3.1 --dhcp-range 10.0.3.2,10.0.3.254 --dhcp-lease-max=253 --dhcp-no-override --except-interface=lo --interface=lxcbr0 --dhcp-leasefile=/var/lib/misc/dnsmasq.lxcbr0.leases --dhcp-authoritative root 5604 1 0 14:32 ? 00:00:00 sudo lxc-start -n test1 root 5605 5604 0 14:32 ? 00:00:00 lxc-start -n test1 root 8977 8771 0 15:12 pts/9 00:00:00 sudo lxc-destroy -n test1 root 8978 8977 0 15:12 pts/9 00:00:00 /bin/sh /usr/bin/lxc-destroy -n test1 root 8984 8978 0 15:12 pts/9 00:00:00 lxc-info -n test1 -P /var/lib/lxc --state-is STOPPED dimitern 8995 8901 0 15:13 pts/10 00:00:00 grep --color=auto lxc Finally, killing -9 the lxc-info with pid 8984 caused the hung lxc- destroy to return and lxc-list afterwards did not hang anymore. Attached the /var/crash/ file. ** Affects: lxc (Ubuntu) Importance: Undecided Status: New ** Attachment added: "_usr_bin_lxc-ls.0.crash" https://bugs.launchpad.net/bugs/1177583/+attachment/3669265/+files/_usr_bin_lxc-ls.0.crash -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1177583 Title: lxc-list crash after lxc-destory of a running container To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1177583/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs