Clicking on Edit Menu when two Midori windows are open causes SIGSEGV

Projekt:Trisquel mini
Version:7.0
Komponente:Code
Kategorie:Fehlerbericht
Priorität:normal
Zugewiesen:nicht zugewiesen
Status:active
Beschreibung

To recreate:

Launch Midori
Select File -> New Window
In the first window click on Edit

Here's a gdb backtrace of one on mine with midori-dbg installed

Program received signal SIGSEGV, Segmentation fault.
0x00007ffa7aa70e06 in webkit_web_view_can_undo () from
/usr/lib/x86_64-linux-gnu/libwebkitgtk-1.0.so.0
(gdb) bt
#0 0x00007ffa7aa70e06 in webkit_web_view_can_undo () from
/usr/lib/x86_64-linux-gnu/libwebkitgtk-1.0.so.0
#1 0x00007ffa7cfc64d5 in midori_tab_update_actions_co
(_data_=0x7ffa7fd28690) at
/tmp/makepackage/PACKAGES/midori/source/midori/midori-tab.vala:291
#2 0x00007ffa7cfc63f3 in midori_tab_update_actions
(self=0x7ffa7fc6a230, actions=0x7ffa7fa903a0, _callback_=0x0,
_user_data_=0x0) at
/tmp/makepackage/PACKAGES/midori/source/midori/midori-tab.vala:36
#3 0x00007ffa7cf92c73 in _action_edit_activate
(action=0x7ffa7f91ee10, browser=0x7ffa7f7620b0) at
/tmp/makepackage/PACKAGES/midori/source/midori/midori-browser.c:2788
#4 0x00007ffa7cce73b8 in g_closure_invoke () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5 0x00007ffa7ccf8d3d in ?? () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6 0x00007ffa7cd00a29 in g_signal_emit_valist () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7 0x00007ffa7cd00ce2 in g_signal_emit () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8 0x00007ffa7a0411b0 in ?? () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#9 0x00007ffa7cce75e7 in ?? () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007ffa7cd00088 in g_signal_emit_valist () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffa7cd00ce2 in g_signal_emit () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffa7a20959c in gtk_widget_activate () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#13 0x00007ffa7a10bd74 in ?? () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#14 0x00007ffa7a0fa815 in ?? () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#15 0x00007ffa7cce73b8 in g_closure_invoke () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffa7ccf8afb in ?? () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffa7cd006f9 in g_signal_emit_valist () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffa7cd00ce2 in g_signal_emit () from
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffa7a20a724 in ?? () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x00007ffa7a0f8fc4 in gtk_propagate_event () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#21 0x00007ffa7a0f937b in gtk_main_do_event () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#22 0x00007ffa79d741ec in ?? () from
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#23 0x00007ffa7ca17e04 in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007ffa7ca18048 in ?? () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffa7ca1830a in g_main_loop_run () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffa7a0f8447 in gtk_main () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#27 0x00007ffa7d45ec6e in main (argc=1, argv=0x7fff213bf958) at
/tmp/makepackage/PACKAGES/midori/source/midori/main.c:392

Note if you're debugging midori when this happens the SIGSEGV causes X to freeze until you gdb kill midori.

I've searched upstream both in midori and webkit and I can't find the bug listed there.

Do, 09/18/2014 - 18:39

The above method doesn't recreate the problem all the time. A more reliable method is to click on Edit in the second window. Go back to the first, select some text on the webpage, then click Edit.

The problem occurs in fresh installs of both the amd64 and i386 versions of trisquel-mini_7.0-20140831 . The machines in question have different GPUs, (nVidia - amd64 and Intel - i686).

Mi, 10/08/2014 - 22:00

Here's a proper backtrace

#0 0x00007f3f2984f896 in webkit_web_view_can_undo (webView=0x700000008) at ../Source/WebKit/gtk/webkit/webkitwebview.cpp:5134
#1 0x00007f3f2bda64d5 in midori_tab_update_actions_co (_data_=0x7f3f2ceabea0) at /tmp/makepackage/PACKAGES/midori/source/midori/midori-tab.vala:291
#2 0x00007f3f2bda63f3 in midori_tab_update_actions (self=0x7f3f2d518190, actions=0x7f3f2d1cfba0, _callback_=0x0, _user_data_=0x0) at /tmp/makepackage/PACKAGES/midori/source/midori/midori-tab.vala:36
#3 0x00007f3f2bd72c73 in _action_edit_activate (action=0x7f3f2d2c0610, browser=0x7f3f2d3130b0) at /tmp/makepackage/PACKAGES/midori/source/midori/midori-browser.c:2788
#4 0x00007f3f2bac73b8 in g_closure_invoke (closure=0x7f3f2d0886d0, return_value=0x0, n_param_values=1, param_values=0x7ffff06fc210, invocation_hint=0x7ffff06fc1b0) at /build/buildd/glib2.0-2.40.0/./gobject/gclosure.c:768
#5 0x00007f3f2bad8d3d in signal_emit_unlocked_R (node=node@entry=0x7f3f2d168100, detail=detail@entry=0, instance=instance@entry=0x7f3f2d2c0610, emission_return=emission_return@entry=0x0,
instance_and_params=instance_and_params@entry=0x7ffff06fc210) at /build/buildd/glib2.0-2.40.0/./gobject/gsignal.c:3551
#6 0x00007f3f2bae0a29 in g_signal_emit_valist (instance=, signal_id=, detail=, var_args=var_args@entry=0x7ffff06fc398) at /build/buildd/glib2.0-2.40.0/./gobject/gsignal.c:3307
#7 0x00007f3f2bae0ce2 in g_signal_emit (instance=instance@entry=0x7f3f2d2c0610, signal_id=, detail=detail@entry=0) at /build/buildd/glib2.0-2.40.0/./gobject/gsignal.c:3363
#8 0x00007f3f28e231b0 in _gtk_action_emit_activate (action=0x7f3f2d2c0610) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkaction.c:795
#9 0x00007f3f2bac75e7 in _g_closure_invoke_va (closure=0x7f3f2cf95e70, return_value=0x0, instance=0x7f3f2d08a500, args=0x7ffff06fc668, n_params=0, param_types=0x0) at /build/buildd/glib2.0-2.40.0/./gobject/gclosure.c:831
#10 0x00007f3f2bae0088 in g_signal_emit_valist (instance=0x7f3f2d08a500, signal_id=, detail=0, var_args=var_args@entry=0x7ffff06fc668) at /build/buildd/glib2.0-2.40.0/./gobject/gsignal.c:3215
#11 0x00007f3f2bae0ce2 in g_signal_emit (instance=instance@entry=0x7f3f2d08a500, signal_id=, detail=detail@entry=0) at /build/buildd/glib2.0-2.40.0/./gobject/gsignal.c:3363
#12 0x00007f3f28feb59c in IA__gtk_widget_activate (widget=0x7f3f2d08a500) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkwidget.c:5041
#13 0x00007f3f28eedd74 in gtk_menu_shell_button_press (widget=0x7f3f1400bc70, event=0x7f3f2d6e9750) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmenushell.c:636
#14 0x00007f3f28edc815 in _gtk_marshal_BOOLEAN__BOXED (closure=0x7f3f2cfd3d80, return_value=0x7ffff06fc8b0, n_param_values=, param_values=0x7ffff06fc960, invocation_hint=,
marshal_data=0x7f3f28eedb80 ) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmarshalers.c:86
#15 0x00007f3f2bac73b8 in g_closure_invoke (closure=0x7f3f2cfd3d80, return_value=0x7ffff06fc8b0, n_param_values=2, param_values=0x7ffff06fc960, invocation_hint=0x7ffff06fc900) at /build/buildd/glib2.0-2.40.0/./gobject/gclosure.c:768
#16 0x00007f3f2bad8afb in signal_emit_unlocked_R (node=node@entry=0x7f3f2cfd3dd0, detail=detail@entry=0, instance=instance@entry=0x7f3f1400bc70, emission_return=emission_return@entry=0x7ffff06fca30,
instance_and_params=instance_and_params@entry=0x7ffff06fc960) at /build/buildd/glib2.0-2.40.0/./gobject/gsignal.c:3589
#17 0x00007f3f2bae06f9 in g_signal_emit_valist (instance=, signal_id=, detail=, var_args=var_args@entry=0x7ffff06fcaf8) at /build/buildd/glib2.0-2.40.0/./gobject/gsignal.c:3317
#18 0x00007f3f2bae0ce2 in g_signal_emit (instance=instance@entry=0x7f3f1400bc70, signal_id=, detail=detail@entry=0) at /build/buildd/glib2.0-2.40.0/./gobject/gsignal.c:3363
#19 0x00007f3f28fec724 in gtk_widget_event_internal (widget=widget@entry=0x7f3f1400bc70, event=event@entry=0x7f3f2d6e9750) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkwidget.c:5010
#20 0x00007f3f28fec9f9 in IA__gtk_widget_event (widget=widget@entry=0x7f3f1400bc70, event=event@entry=0x7f3f2d6e9750) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkwidget.c:4807
#21 0x00007f3f28edafc4 in IA__gtk_propagate_event (widget=0x7f3f1400bc70, event=0x7f3f2d6e9750) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmain.c:2509
#22 0x00007f3f28edb37b in IA__gtk_main_do_event (event=0x7f3f2d6e9750) at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmain.c:1699
#23 0x00007f3f28b561ec in gdk_event_dispatch (source=, callback=, user_data=) at /build/buildd/gtk+2.0-2.24.23/gdk/x11/gdkevents-x11.c:2403
#24 0x00007f3f2b7f7e04 in g_main_dispatch (context=0x7f3f2ce547a0) at /build/buildd/glib2.0-2.40.0/./glib/gmain.c:3064
#25 g_main_context_dispatch (context=context@entry=0x7f3f2ce547a0) at /build/buildd/glib2.0-2.40.0/./glib/gmain.c:3663
#26 0x00007f3f2b7f8048 in g_main_context_iterate (context=0x7f3f2ce547a0, block=block@entry=1, dispatch=dispatch@entry=1, self=) at /build/buildd/glib2.0-2.40.0/./glib/gmain.c:3734
#27 0x00007f3f2b7f830a in g_main_loop_run (loop=0x7f3f2cf2a2e0) at /build/buildd/glib2.0-2.40.0/./glib/gmain.c:3928
#28 0x00007f3f28eda447 in IA__gtk_main () at /build/buildd/gtk+2.0-2.24.23/gtk/gtkmain.c:1271
#29 0x00007f3f2c23ec6e in main (argc=1, argv=0x7ffff06fd3a8) at /tmp/makepackage/PACKAGES/midori/source/midori/main.c:392

So, 10/12/2014 - 23:31
Priorität:normal» minor
Zugewiesen zu:anonymous» leny2010

I'm lowering the priority as this isn't a Midori show stopper.

Also assigning the bug to myself as to indicate I'm doing work investigating, collecting diagnostics etc as a back burner task.

Mi, 10/22/2014 - 02:16

This isn't present in Lubuntu 14.04.1 at current service level nor with the ppa used as the source of the Trisquel Mini Belenos version.

Mi, 10/22/2014 - 02:34
Priorität:minor» normal
Zugewiesen zu:leny2010» anonymous

Returning this to normal priority because I think Trisquel originated bugs should be fixed in a beta and minor class bugs can sometimes be left unfixed. Also unassigning myself until I've spoken to quidam as he might well fix it before I talk to him.