GNOME Bugzilla – Bug 750643
Right-click on link cause a crash
Last modified: 2015-06-09 14:49:32 UTC
From one of the last commits, right click on any link caouse epiphany to crash. [New Thread 0x7fffd9d24700 (LWP 23291)] (WebKitWebProcess:23248): GLib-GObject-WARNING **: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version. Program received signal SIGSEGV, Segmentation fault. g_utf8_strlen (p=0x14 <error: Cannot access memory at address 0x14>, max=-1) at gutf8.c:232 232 gutf8.c: No such file or directory. (gdb) bt
+ Trace 235140
Can you try if this fixes it? diff --git a/src/ephy-window.c b/src/ephy-window.c index 093f5d3..bc77c5b 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1689,7 +1689,7 @@ populate_context_menu (WebKitWebView *web_view, gboolean is_video = FALSE; gboolean is_audio = FALSE; gboolean can_search_selection = FALSE; - const char *selected_text; + const char *selected_text = NULL; is_image = webkit_hit_test_result_context_is_image (hit_test_result);
Look like this patch fixes the crash.
The following fix has been pushed: 3a7e46f ephy-window: fix a context-menu crasher
Created attachment 304867 [details] [review] ephy-window: fix a context-menu crasher Initialize variable.