GNOME Bugzilla – Bug 722692
g_volume_mount() on non-mountable entry from /etc/fstab causes 100% CPU load.
Last modified: 2014-04-10 19:09:40 UTC
The attached file is a GTK application source to help testing the issue. After pressing "test" button it will try to mount all unmounted volumes. If volume cannot be mounted (the simplest example is an entry for /dev/cdrom without medium inserted) then g_volume_mount_finish() should return FALSE and finish the operation. But it returns TRUE instead and leaves pipes open which causes unstoppable loop in g_main_loop_run(). Tested with GLib 2.36.4, 2.38.2, and GVFS 1.12.3, 1.16.3, 1.18.3 on Debian testing and on FC20, the same issue was reported on Arch and on Ubuntu as well: https://bbs.archlinux.org/viewtopic.php?pid=1268411 https://bugs.launchpad.net/ubuntu/+source/pcmanfm/+bug/913273
Created attachment 266868 [details] Test application.
Glib handles mounting stuff from fstab, not gvfs. This has actually been fixed now in bug 724916. Also see bug 726122. Thanks! *** This bug has been marked as a duplicate of bug 724916 ***