FS#46657 - [thunar] random segfaults upon renaming a file
Attached to Project:
Arch Linux
Opened by John (graysky) - Sunday, 11 October 2015, 10:11 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 09 February 2017, 02:42 GMT
Opened by John (graysky) - Sunday, 11 October 2015, 10:11 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 09 February 2017, 02:42 GMT
|
Details
I am experiencing periodic segfaults upon renaming a file
from within Thunar. I cannot get the situation to reproduce
on purpose; it seems to happen randomly.
thunar 1.6.10-2 glibc 2.22-3 Steps to reproduce: What happens is I click a file from within Thunar. I hit F2 to rename it and I enter the new name. Upon hitting Enter for thunar to accept the new name, the entire Thunar window disappears (crashes). I see an entry in dmesg indicating a segfault. The file is renamed on the filesystem. Example dmesg entries: [ 8494.667080] Thunar[4300]: segfault at 0 ip 00007f1ab86b9bda sp 00007ffc3ddcd2c8 error 4 in libc-2.22.so[7f1ab8629000+19b000] [14552.165781] Thunar[13994]: segfault at 0 ip 00007f72a4219bda sp 00007ffdc93b1d88 error 4 in libc-2.22.so[7f72a4189000+19b000] |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Thursday, 09 February 2017, 02:42 GMT
Reason for closing: Fixed
Additional comments about closing: thunar 1.6.10.174.g35e65ab0-1
Thursday, 09 February 2017, 02:42 GMT
Reason for closing: Fixed
Additional comments about closing: thunar 1.6.10.174.g35e65ab0-1
https://bugzilla.xfce.org/show_bug.cgi?id=12253
1. Open а directory within Thunar
2. here run the terminal
3. run
touch file0; for i in {0..1000000}; do mv file$i file$((i+1)); done
(https://www.linux.org.ru/forum/desktop/12352498?#comment-12352998)
Also the bug has to do with renaming a file in Thunar; renaming it in a terminal shouldn't trigger it.
This is the patch: http://git.xfce.org/xfce/thunar/commit/?id=029012f4
So far it appears it hasn't been put upstream. Is there a chance we could get the thunar maintainer to take notice?
1. Renaming in a terminal can reproduce the crash since Thunar monitors such renames via inotify.
2. The "Deactivate SEND_MOVED code paths" patch [1] by Harold Judt (upstream) probably prevents the crash but was meant for debugging and not as a true fix. See [2] where Harold states that it "will not solve the real issue(s) [but] it could give some clues where to look at".
This is my attempt at fixing the root cause:
https://github.com/jlindgren90/thunar/commit/9c6dbb1dae7074e7713f43438f471d75c823a0db
Please consider including this patch in the Arch Linux package. No XFCE developer has made any comment on the upstream bug since February, so waiting for an upstream fix in this case may not be a good plan.
[1] http://bug-attachment.xfce.org/attachment.cgi?id=6530
[2] https://bugzilla.xfce.org/show_bug.cgi?id=12264#c14
1. http://bug-attachment.xfce.org/attachment.cgi?id=6530
is the above patch actually included in the Thunar package extra/thunar 1.6.10-3?
https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/thunar
https://git.archlinux.org/svntogit/packages.git/log/trunk?h=packages/thunar
https://bugzilla.xfce.org/show_bug.cgi?id=12264#c181