Multiple Thunar crashes and freezes when copying files, maybe CSS related?
When starting multiple file copy operations in sequence, there is a possibility that Thunar will crash with a segmentation fault or will freeze and the destination file will be corrupted. There were multiple ways to trigger this, two of them:
- Copy a large file (preferably 10 GB+);
- Paste it in another directory;
- Copy another file (preferably large);
- Paste it to the same directory as the first file, which will wait the first file operation to finish;
- Repeat steps 3 and 4 until Thunar crashes.
The following can make Thunar or even the entire desktop environment to freeze (requiring to go to a TTY to kill Thunar):
- Have multiple file operations of copies to the same disk;
- Cancel the operation currently running.
The attached files have backtraces, thunar-segfault-copy-files-3.txt has more debug symbols. In the freeze situation, there was a GTK "Bail out!" message that the code should not reach there, but as the desktop environment froze after additional messages appeared, I was unable to read it entirely.
The attached files contain backtraces:
thunar-segfault-copy-files.txt
thunar-segfault-copy-files-2.txt
thunar-segfault-copy-files-3.txt
$ thunar --version thunar 4.16.8 (Xfce 4.16)
Copyright (c) 2004-2020 Time de desenvolvimento do Thunar. Todos os direitos reservados.
Escrito por Benedikt Meurer benny@xfce.org.
Por favor relate problemas para https://gitlab.xfce.org/xfce/thunar.