Segfault when exiting Nautilus
Steps to reproduce
- Run Nautilus
- Open a new tab or two
- Right-click around on the notebook, especially in the space between the tabs
- Hit ctrl-q
Reproducible in:
- Flatpak unstable: didn’t test
- Other: git master
Current behavior
Nautilus crashes when exiting.
Expected behavior
Nautilus does not crash when exiting.
Additional information
Bisected to f278574d.
These warnings appear:
(nautilus:24904): GLib-GObject-WARNING **: 11:57:56.323: /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:2641: instance '0x1402730' has no handler with id '13069'
(nautilus:24904): GLib-GObject-WARNING **: 11:57:56.323: g_object_weak_unref: couldn't find weak ref 0x7ffff57cccf2(0x1843e40)
(nautilus:24904): GLib-GObject-WARNING **: 11:57:56.323: g_object_weak_unref: couldn't find weak ref 0x4e5ccc(0x12401b0)
The stack trace is as follows:
#0 0x00007ffff57f9bc0 in g_type_check_instance (type_instance=0xaaaaaaaaaaaaaaaa) at /home/ernestas/jhbuild/checkout/glib/gobject/gtype.c:4129
#1 0x00007ffff57eddab in g_signal_handler_disconnect (instance=0xaaaaaaaaaaaaaaaa, handler_id=2863311530) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:2627
#2 0x00007ffff57ccd4d in weak_unbind (user_data=0x1843e40, where_the_object_was=0x1402730) at /home/ernestas/jhbuild/checkout/glib/gobject/gbinding.c:217
#3 0x00007ffff57de60b in weak_refs_notify (data=0x17e5ea0) at /home/ernestas/jhbuild/checkout/glib/gobject/gobject.c:2791
#4 0x00007ffff54c5bff in g_data_set_internal (datalist=0x1402740, key_id=57, new_data=0x0, new_destroy_func=0x0, dataset=0x0) at /home/ernestas/jhbuild/checkout/glib/glib/gdataset.c:407
#5 0x00007ffff54c60b8 in g_datalist_id_set_data_full (datalist=0x1402740, key_id=57, data=0x0, destroy_func=0x0) at /home/ernestas/jhbuild/checkout/glib/glib/gdataset.c:670
#6 0x00007ffff57da335 in g_object_real_dispose (object=0x1402730) at /home/ernestas/jhbuild/checkout/glib/gobject/gobject.c:1056
#7 0x00007ffff741fed4 in gtk_widget_dispose (object=0x1402730) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkwidget.c:12117
#8 0x00007ffff70ebcc3 in gtk_box_dispose (object=0x1402730) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkbox.c:244
#9 0x000000000045a64d in nautilus_window_slot_dispose (object=0x1402730) at ../../../../jhbuild/checkout/nautilus/src/nautilus-window-slot.c:2867
#10 0x00007ffff57df386 in g_object_unref (_object=0x1402730) at /home/ernestas/jhbuild/checkout/glib/gobject/gobject.c:3309
#11 0x00007ffff714fa3c in gtk_container_remove (container=0x1236220, widget=0x1402730) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkcontainer.c:1909
#12 0x00007ffff729a73f in gtk_notebook_remove_page (notebook=0x1236220, page_num=0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtknotebook.c:6639
#13 0x000000000045c9d7 in close_slot (window=0x1138450, slot=0x1402730, remove_from_notebook=1) at ../../../../jhbuild/checkout/nautilus/src/nautilus-window.c:784
#14 0x000000000045ff8a in destroy_slots_foreach (data=0x1402730, user_data=0x1138450) at ../../../../jhbuild/checkout/nautilus/src/nautilus-window.c:2387
#15 0x00007ffff54e4756 in g_list_foreach (list=0x1050840, func=0x45ff52 <destroy_slots_foreach>, user_data=0x1138450) at /home/ernestas/jhbuild/checkout/glib/glib/glist.c:1011
#16 0x0000000000460031 in nautilus_window_destroy (object=0x1138450) at ../../../../jhbuild/checkout/nautilus/src/nautilus-window.c:2411
#17 0x00007ffff57d6220 in g_cclosure_marshal_VOID__VOID (closure=0xeb8820, return_value=0x0, n_param_values=1, param_values=0x7fffffffc000, invocation_hint=0x7fffffffbf40, marshal_data=0x45ff8d <nautilus_window_destroy>) at /home/ernestas/jhbuild/checkout/glib/gobject/gmarshal.c:875
#18 0x00007ffff57d3576 in g_type_class_meta_marshal (closure=0xeb8820, return_value=0x0, n_param_values=1, param_values=0x7fffffffc000, invocation_hint=0x7fffffffbf40, marshal_data=0x98) at /home/ernestas/jhbuild/checkout/glib/gobject/gclosure.c:999
#19 0x00007ffff57d2f22 in g_closure_invoke (closure=0xeb8820, return_value=0x0, n_param_values=1, param_values=0x7fffffffc000, invocation_hint=0x7fffffffbf40) at /home/ernestas/jhbuild/checkout/glib/gobject/gclosure.c:806
#20 0x00007ffff57f0fba in signal_emit_unlocked_R (node=0xeb8890, detail=0, instance=0x1138450, emission_return=0x0, instance_and_params=0x7fffffffc000) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:3751
#21 0x00007ffff57efe02 in g_signal_emit_valist (instance=0x1138450, signal_id=120, detail=0, var_args=0x7fffffffc2a8) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:3391
#22 0x00007ffff57f0381 in g_signal_emit (instance=0x1138450, signal_id=120, detail=0) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:3447
#23 0x00007ffff741fe2f in gtk_widget_dispose (object=0x1138450) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkwidget.c:12098
#24 0x00007ffff7432001 in gtk_window_dispose (object=0x1138450) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkwindow.c:3157
#25 0x00007ffff70dd93a in gtk_application_window_dispose (object=0x1138450) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkapplicationwindow.c:804
#26 0x00007ffff57da541 in g_object_run_dispose (object=0x1138450) at /home/ernestas/jhbuild/checkout/glib/gobject/gobject.c:1108
#27 0x00007ffff7412398 in gtk_widget_destroy (widget=0x1138450) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkwidget.c:4728
#28 0x0000000000460f43 in real_window_close (window=0x1138450) at ../../../../jhbuild/checkout/nautilus/src/nautilus-window.c:2836
#29 0x00000000004604c6 in nautilus_window_close (window=0x1138450) at ../../../../jhbuild/checkout/nautilus/src/nautilus-window.c:2523
#30 0x0000000000441366 in action_quit (action=0xf1e940, parameter=0x0, user_data=0x7fc140) at ../../../../jhbuild/checkout/nautilus/src/nautilus-application.c:832
#31 0x00007ffff57d806b in g_cclosure_marshal_VOID__VARIANT (closure=0xfa6fd0, return_value=0x0, n_param_values=2, param_values=0x7fffffffc7b0, invocation_hint=0x7fffffffc6f0, marshal_data=0x0) at /home/ernestas/jhbuild/checkout/glib/gobject/gmarshal.c:2140
#32 0x00007ffff57d2f22 in g_closure_invoke (closure=0xfa6fd0, return_value=0x0, n_param_values=2, param_values=0x7fffffffc7b0, invocation_hint=0x7fffffffc6f0) at /home/ernestas/jhbuild/checkout/glib/gobject/gclosure.c:806
#33 0x00007ffff57f0b08 in signal_emit_unlocked_R (node=0xf07130, detail=0, instance=0xf1e940, emission_return=0x0, instance_and_params=0x7fffffffc7b0) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:3635
#34 0x00007ffff57efe02 in g_signal_emit_valist (instance=0xf1e940, signal_id=250, detail=0, var_args=0x7fffffffca78) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:3391
#35 0x00007ffff57f0381 in g_signal_emit (instance=0xf1e940, signal_id=250, detail=0) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:3447
#36 0x00007ffff5af113d in g_simple_action_activate (action=0xf1e940, parameter=0x0) at /home/ernestas/jhbuild/checkout/glib/gio/gsimpleaction.c:225
#37 0x00007ffff5aef7fd in g_action_activate (action=0xf1e940, parameter=0x0) at /home/ernestas/jhbuild/checkout/glib/gio/gaction.c:397
#38 0x00007ffff5aec0f2 in g_simple_action_group_activate (group=0x7f3250, action_name=0xfc3815 "quit", parameter=0x0) at /home/ernestas/jhbuild/checkout/glib/gio/gsimpleactiongroup.c:138
#39 0x00007ffff5aeb39e in g_action_group_activate_action (action_group=0x7f3250, action_name=0xfc3815 "quit", parameter=0x0) at /home/ernestas/jhbuild/checkout/glib/gio/gactiongroup.c:595
#40 0x00007ffff5ae6b37 in g_application_activate_action (action_group=0x7fc140, action_name=0xfc3815 "quit", parameter=0x0) at /home/ernestas/jhbuild/checkout/glib/gio/gapplication.c:2589
#41 0x00007ffff5aeb39e in g_action_group_activate_action (action_group=0x7fc140, action_name=0xfc3815 "quit", parameter=0x0) at /home/ernestas/jhbuild/checkout/glib/gio/gactiongroup.c:595
#42 0x00007ffff70b9619 in gtk_action_muxer_activate_action (action_group=0x7f3380, action_name=0xfc3811 "app.quit", parameter=0x0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkactionmuxer.c:412
#43 0x00007ffff5aeb39e in g_action_group_activate_action (action_group=0x7f3380, action_name=0xfc3811 "app.quit", parameter=0x0) at /home/ernestas/jhbuild/checkout/glib/gio/gactiongroup.c:595
#44 0x00007ffff70b9643 in gtk_action_muxer_activate_action (action_group=0xf31dc0, action_name=0xfc3811 "app.quit", parameter=0x0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkactionmuxer.c:414
#45 0x00007ffff5aeb39e in g_action_group_activate_action (action_group=0xf31dc0, action_name=0xfc3811 "app.quit", parameter=0x0) at /home/ernestas/jhbuild/checkout/glib/gio/gactiongroup.c:595
#46 0x00007ffff70dbd93 in gtk_application_accels_activate (accels=0x7f1e30, action_group=0xf31dc0, key=113, modifier=GDK_CONTROL_MASK) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkapplicationaccels.c:448
#47 0x00007ffff7442161 in gtk_window_activate_key (window=0x1138450, event=0x15e75a0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkwindow.c:11986
#48 0x00007ffff743ba2c in gtk_window_key_press_event (widget=0x1138450, event=0x15e75a0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkwindow.c:8190
#49 0x0000000000460887 in nautilus_window_key_press_event (widget=0x1138450, event=0x15e75a0) at ../../../../jhbuild/checkout/nautilus/src/nautilus-window.c:2623
#50 0x00007ffff747d85b in _gtk_marshal_BOOLEAN__BOXEDv (closure=0x834d80, return_value=0x7fffffffd2b0, instance=0x1138450, args=0x7fffffffd448, marshal_data=0x460689 <nautilus_window_key_press_event>, n_params=1, param_types=0x834db0) at gtkmarshalers.c:128
#51 0x00007ffff57d35f8 in g_type_class_meta_marshalv (closure=0x834d80, return_value=0x7fffffffd2b0, instance=0x1138450, args=0x7fffffffd448, marshal_data=0x1b0, n_params=1, param_types=0x834db0) at /home/ernestas/jhbuild/checkout/glib/gobject/gclosure.c:1026
#52 0x00007ffff57d31ba in _g_closure_invoke_va (closure=0x834d80, return_value=0x7fffffffd2b0, instance=0x1138450, args=0x7fffffffd448, n_params=1, param_types=0x834db0) at /home/ernestas/jhbuild/checkout/glib/gobject/gclosure.c:869
#53 0x00007ffff57ef142 in g_signal_emit_valist (instance=0x1138450, signal_id=153, detail=0, var_args=0x7fffffffd448) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:3300
#54 0x00007ffff57f0381 in g_signal_emit (instance=0x1138450, signal_id=153, detail=0) at /home/ernestas/jhbuild/checkout/glib/gobject/gsignal.c:3447
#55 0x00007ffff741803f in gtk_widget_event_internal (widget=0x1138450, event=0x15e75a0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkwidget.c:7744
#56 0x00007ffff74174b0 in gtk_widget_event (widget=0x1138450, event=0x15e75a0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkwidget.c:7314
#57 0x00007ffff7260d9e in propagate_event (widget=0x1138450, event=0x15e75a0, captured=0, topmost=0x0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkmain.c:2675
#58 0x00007ffff7260eb7 in gtk_propagate_event (widget=0x1138450, event=0x15e75a0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkmain.c:2719
#59 0x00007ffff725fb0c in gtk_main_do_event (event=0x15e75a0) at /home/ernestas/jhbuild/checkout/gtk+-3/gtk/gtkmain.c:1915
#60 0x00007ffff6caf83a in _gdk_event_emit (event=0x15e75a0) at /home/ernestas/jhbuild/checkout/gtk+-3/gdk/gdkevents.c:73
#61 0x00007ffff6cf2d31 in gdk_event_source_dispatch (source=0x7f3e80, callback=0x0, user_data=0x0) at /home/ernestas/jhbuild/checkout/gtk+-3/gdk/x11/gdkeventsource.c:367
#62 0x00007ffff54e7d82 in g_main_dispatch (context=0x81af40) at /home/ernestas/jhbuild/checkout/glib/glib/gmain.c:3177
#63 0x00007ffff54e8c33 in g_main_context_dispatch (context=0x81af40) at /home/ernestas/jhbuild/checkout/glib/glib/gmain.c:3830
#64 0x00007ffff54e8e18 in g_main_context_iterate (context=0x81af40, block=1, dispatch=1, self=0x7f2ad0) at /home/ernestas/jhbuild/checkout/glib/glib/gmain.c:3903
#65 0x00007ffff54e8edc in g_main_context_iteration (context=0x81af40, may_block=1) at /home/ernestas/jhbuild/checkout/glib/glib/gmain.c:3964
#66 0x00007ffff5ae65f9 in g_application_run (application=0x7fc140, argc=1, argv=0x7fffffffda28) at /home/ernestas/jhbuild/checkout/glib/gio/gapplication.c:2470
#67 0x000000000043fb22 in main (argc=1, argv=0x7fffffffda28) at ../../../../jhbuild/checkout/nautilus/src/nautilus-main.c:84