! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar process hangs on poll() when trying to unmount USB storage
Status:
RESOLVED: MOVED

Comments

Description Sam Varshavchik 2017-07-21 14:26:22 CEST
Thunar 1.6.11, Fedora 26.

A request to unmount a mounted USB storage volume results in the following strace of the thunar process:

eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK)   = 17
futex(0x7fd7fe8f6218, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x7fd7fe8f6218, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x560aed102fb0, FUTEX_WAKE_PRIVATE, 1) = 0
write(9, "\1\0\0\0\0\0\0\0", 8)         = 8
futex(0x560aed100380, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x560aed1000a0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x560aed0f80a8, FUTEX_WAKE_PRIVATE, 1) = 1
poll([{fd=17, events=POLLIN}], 1, 25000 <unfinished ...>) = ?

Thunar creates a new event file descriptor, and get stuck poll()ing it.

Someone else, with a lot more patience than me, captured a fuller strace that shows multiple instances of this pattern repeated (multiple poll() timeouts, with each one taking 25 seconds). More info here:

https://bugzilla.redhat.com/show_bug.cgi?id=1469789

Specifically here:

https://bugzilla.redhat.com/attachment.cgi?id=1302303

Eventually Thunar does succeed in unmounting the volume, but this apparently take many, many minutes, for all of these poll()s to time out. Until it's over, Thunar is completely dead in the water, and does not respond to any X events.
Comment 1 akostadinov 2017-07-23 22:28:46 CEST
Same here vs Thunar 1.6.12. On two different machines.

Very frustrating to have your window freeze for no apparent reason. FYI umount actually is instantaneous: 

> gio mount -e /path/to/drive

That's why I think the issue is with thunar.
Comment 2 Git Bot editbugs 2020-05-26 23:31:03 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/167.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #13729

Reported by:
Sam Varshavchik
Reported on: 2017-07-21
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
5 users

Version

Version:
1.6.11

Attachments

Additional information