Skip to content

Search: Crash on "Open Item Location" if item's parent directory deleted

If you search for files and get a result, and then delete the parent directory of one of those results (in another window, terminal, etc), then try to "Open Item Location" on that search result, thunar will crash.

To reproduce:

  1. Create a test folder with a subfolder and file within that subfolder (/test/folder/pepper.txt)
  2. Open two thunar windows in /test/
  3. Window 1: Search for pepper.txt
  4. Window 2: Delete /folder/
  5. Window 1: Right click pepper.txt and select "Open Item Location"

There thunar crashes with:

'thunar' terminated by signal SIGSEGV (Address boundary error)

Not sure if relevant or helps, but in step 4 when the folder is deleted, I get:

GLib-GIO-CRITICAL **: 14:30:47.010: file ../../../gio/gfileinfo.c: line 1846 (g_file_info_get_size): should not be reached

Using Thunar 4.18.8.

Let me know if there's anything else I can add or do. Thanks!