Description of problem: One when a USB disk is physically unplug without umounting it first, systemd froze and reboot/... commands are no more working On console, one can sees: Broadcast message from systemd-journald@localhost.localdomain (Sun 2016-02-14 16:54:32 CET): systemd[1]: Caught <ABRT>, dumped core as pid 12723. Broadcast message from systemd-journald@localhost.localdomain (Sun 2016-02-14 16:54:32 CET): systemd[1]: Freezing execution. Version-Release number of selected component (if applicable): systemd-229-1.mga6 How reproducible: Always Steps to Reproduce: 1. physically unplug a usb disc without umounting it first => systemd freeze 2. try reboot 3. Reproducible: Steps to Reproduce:
Created attachment 7456 [details] what's relevant in dmesg
Example of failling reboot: [root@localhost ~]# LC_ALL=C reboot Failed to start reboot.target: Failed to activate service 'org.freedesktop.systemd1': timed out See system logs and 'systemctl status reboot.target' for details. Failed to open /dev/initctl: No such device or address Failed to talk to init daemon.
CC: (none) => doktor5000
I don't see any commits yet upstream, and I cannot reproduce here.. I presume it's easily reproducible for you? Has anyone else confirmed?
Yes. It's easily reproducible. Actually it happened for a clean umount/unplug too at least once. I guess I'll have to attach gdb to systemd tonight in order to get a trace
It doesn't happen anymore. I guess it was fixed by one of glib2/... update
Status: NEW => RESOLVEDResolution: (none) => FIXED
It happens again for a few days: Meu 04 17:14:11 systemd[1208]: Assertion 'b' failed at src/basic/path-util.c:390, function path_compare(). Aborting. Meu 04 17:14:11 systemd[1]: Caught <ABRT>, dumped core as pid 32138. Meu 04 17:14:11 systemd[1]: Freezing execution. And then: # reboot Failed to start reboot.target: Connection timed out See system logs and 'systemctl status reboot.target' for details. Failed to open /dev/initctl: No such device or address Failed to talk to init daemon.
Summary: systemd freeze when hysically unplug a usb disc without umounting it first => systemd freeze when physically unplug a usb disc without umounting it firstStatus: RESOLVED => REOPENEDResolution: FIXED => (none)
Created attachment 7513 [details] GDB trace (with symbols)
You should probably report that upstream: https://github.com/systemd/systemd/issues
I added a patch and submitted upstream. It should avoid the crash but not sure if it's the "real" fix. https://github.com/systemd/systemd/pull/2834
Should be in cauldron shortly.
In reply to Colin Guthrie from comment #9) > I added a patch and submitted upstream. It should avoid the crash but not > sure if it's the "real" fix. > > https://github.com/systemd/systemd/pull/2834 This seems upstream and fixed. Merged pull request. Trying reproduce: no systemd freeze.
Status: REOPENED => RESOLVEDResolution: (none) => WORKSFORME