GNOME Bugzilla – Bug 755444
Rename bookmark crashes nautilus
Last modified: 2015-09-24 03:30:25 UTC
Steps to reproduce (Fedora 23, packages updated, nautilus 3.17.91) 1. start nautilus 2. create a bookmark 3. rename the bookmark (right-click and rename) 4. press enter Expected: bookmark is renamed What happens instead: bookmark is renamed and nautilus crashes More details: Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6f8ffeb in gtk_widget_hide () from /usr/lib64/libgtk-3.so.0 (gdb) backtrace
+ Trace 235486
Created attachment 311949 [details] [review] gtkplacessidebar: avoid accesing destroyed popover The row and rename popovers are always relative_to a row. We also keep a pointer to them so we can interact with them in callbacks. However, if the row is destroyed its associated popovers will be destroyed as well as relative_to destroyes and frees memory of its associated widget when its relative_to widget is destroyed. If we, for example, update the places while the popover is shown we are going to access and invalid widget on the next time. To avoid that, connect to the destroy signal of the popovers and clean the sidebar pointers when that happens.
Review of attachment 311949 [details] [review]: a bit ugly, but ok