Files crashes after you undo moving file to Trash

Bug #1496369 reported by Vlad Orlov
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Files
Fix Released
High
Jeremy Wootten

Bug Description

Steps to reproduce:

1. Run Ubuntu 15.10.
2. Create an empty file.
3. Move it to trash.
4. Press Ctrl-Z to undo that action.
5. Files crashes.

The crash occurs only in Ubuntu 15.10.
For some reason, in 15.10 any file that's moved to trash doesn't have "trash::orig-path" and "trash::deletion-date" attributes like it normally should. The undostack manager doesn't check for their existence and crashes when it tries to call g_hash_table_lookup with NULL pointer.

Full backtrace obtained via gdb is in the attachment.

Tags: trash wily

Related branches

Revision history for this message
Vlad Orlov (monsta) wrote :
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Thank for diagnosing the bug as well as reporting it!

Changed in pantheon-files:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

This could be considered a bug of Ubuntu 15.10 but FIles should not crash nevertheless.

Changed in pantheon-files:
assignee: nobody → Jeremy Wootten (jeremywootten)
Changed in pantheon-files:
status: Confirmed → In Progress
Cody Garver (codygarver)
Changed in pantheon-files:
milestone: none → loki-beta1
status: In Progress → Fix Committed
Changed in pantheon-files:
milestone: loki-beta1 → loki-alpha1
Cody Garver (codygarver)
Changed in pantheon-files:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.