After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755021 - context menu in empty file folder -> crash
context menu in empty file folder -> crash
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
3.17.x
Other Linux
: Normal critical
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2015-09-15 05:17 UTC by sangu
Modified: 2015-09-16 14:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description sangu 2015-09-15 05:17:28 UTC
1. launch gtk3 program (like a gedit)
2. ctrol + o in empty file folder ( file dialog)
3. click right mouce key (context menu)

$ gdb gedit 

Program received signal SIGSEGV, Segmentation fault.
file_list_show_popover (impl=impl@entry=0x555555a0d710 [GtkFileChooserWidget], 
    x=174.44906616210938, y=<optimized out>) at gtkfilechooserwidget.c:2315
2315	  path = list->data;
(gdb) bt
  • #0 file_list_show_popover
    at gtkfilechooserwidget.c line 2315
  • #1 list_button_press_event_cb
    at gtkfilechooserwidget.c line 2412
  • #6 <emit signal ??? on instance 0x555555add720 [GtkTreeView]>
    at gsignal.c line 3428
  • #7 gtk_widget_event_internal
    at gtkwidget.c line 7820
  • #8 propagate_event
    at gtkmain.c line 2511
  • #9 propagate_event
    at gtkmain.c line 2613
  • #10 gtk_main_do_event
    at gtkmain.c line 1844
  • #11 gdk_event_source_dispatch
    at gdkeventsource.c line 364
  • #12 g_main_context_dispatch
    at gmain.c line 3154
  • #13 g_main_context_dispatch
    at gmain.c line 3769
  • #14 g_main_context_iterate
    at gmain.c line 3840
  • #15 g_main_context_iteration
    at gmain.c line 3901
  • #16 g_application_run
    at gapplication.c line 2311
  • #17 main


---
gtk3-3.17.8-2.fc23.x86_64
glib2-2.45.7-1.fc23.x86_64
gedit-3.17.90-1.fc23.x86_64
Comment 1 Matthias Clasen 2015-09-16 14:41:44 UTC
commit 450056cdfe5cbf6fdff9c9def77570d37c0b3cd4
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Wed Sep 16 07:39:19 2015 -0700

    file chooser: Avoid a crash
    
    When right-clicking in an empty folder, you should get a context
    menu, not a crash. The code for positioning the popover was not
    handling the eventuality of no row under the pointer. Just position
    the popover right at the click location in this case.