GNOME Bugzilla – Bug 669186
nautilus segfaults in nautilus_window_pane_close_slot() (valgrind invalid write error)
Last modified: 2012-02-08 14:58:06 UTC
The bug has been reported on https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/918907 using nautilus 3.2.1 "Nautilus crashed when I closed a nautilus tab from a local folder.
+ Trace 229575
Using nautilus 3.3.4, running it under valgrind opening and closing some tabs using ctrl-W or clicking on the tab buttons I get this error: "==20349== Invalid write of size 4 ==20349== at 0x80CB3D9: nautilus_window_pane_close_slot (nautilus-window-pane.c:1070) ==20349== by 0x80CB492: nautilus_window_pane_slot_close (nautilus-window-pane.c:985) ==20349== by 0x4BCF53B: g_cclosure_marshal_VOID__VOID (gmarshal.c:85) ==20349== by 0x4BCDF8B: g_closure_invoke (gclosure.c:774) ==20349== by 0x4BDF844: signal_emit_unlocked_R (gsignal.c:3302) ==20349== by 0x4BE70C1: g_signal_emit_valist (gsignal.c:3033) ==20349== by 0x47E2FF3: ??? (in /usr/lib/i386-linux-gnu/libgtk-3.so.0.312.0) ==20349== Address 0x1387bcc0 is 24 bytes inside a block of size 268 free'd ==20349== at 0x402906C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==20349== by 0x4C5CB5A: standard_free (gmem.c:98) ==20349== by 0x4C5CCCF: g_free (gmem.c:252) ==20349== by 0x4C710FA: g_slice_free1 (gslice.c:1111) ==20349== by 0x4BEF401: g_type_free_instance (gtype.c:1937) ==20349== by 0x4BD1A7A: g_object_unref (gobject.c:3021) ==20349== by 0x4BD1AB1: g_value_object_free_value (gobject.c:3291) ==20349== by 0x4BF35C5: g_value_unset (gvalue.c:276) ==20349== by 0x4BE70E5: g_signal_emit_valist (gsignal.c:3062) ==20349== by 0x4BE7252: g_signal_emit (gsignal.c:3090) ==20349== by 0x43EE745: gtk_container_remove (gtkcontainer.c:1559) ==20349== by 0x44C41E2: gtk_notebook_remove_page (gtknotebook.c:6999) ==20349== by 0x80CB387: nautilus_window_pane_close_slot (nautilus-window-pane.c:1062) ==20349== by 0x80CB492: nautilus_window_pane_slot_close (nautilus-window-pane.c:985) ==20349== by 0x4BCF53B: g_cclosure_marshal_VOID__VOID (gmarshal.c:85) ==20349== by 0x4BCDF8B: g_closure_invoke (gclosure.c:774) ==20349== by 0x4BDF844: signal_emit_unlocked_R (gsignal.c:3302) ==20349== by 0x4BE70C1: g_signal_emit_valist (gsignal.c:3033) ==20349== by 0x47E2FF3: ??? (in /usr/lib/i386-linux-gnu/libgtk-3.so.0.312.0)"
(In reply to comment #1) > Using nautilus 3.3.4, running it under valgrind opening and closing some tabs > using ctrl-W or clicking on the tab buttons I get this error I fixed this invalid memory access in git master. Not 100% sure about the original crash, but I reworked the slot/pane creation and closing code recently specifically to prevent those crashes from happening, so it might be fixed as well.
let's assume it's fixed, I will reopen if we still get report about it