Skip to content

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:

  1. Copy a large file (preferably 10 GB+);
  2. Paste it in another directory;
  3. Copy another file (preferably large);
  4. Paste it to the same directory as the first file, which will wait the first file operation to finish;
  5. 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):

  1. Have multiple file operations of copies to the same disk;
  2. 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-freeze-copy-files.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.