Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 11719] wireshark-gtk coredumps when trying to "Decode As"

Date: Tue, 17 Nov 2015 23:15:11 +0000

changed bug 11719


What Removed Added
CC   [email protected]

Comment # 1 on bug 11719 from
Does not happen with Qt, only on GTK+.

It crashes right here:

0x0000555555ce3a66 in proto_tree_model_iter_nth_child
(tree_model=0x61d000657450, iter=0x7fffffffaf60, parent=0x0, n=0) at
ui/gtk/proto_tree_model.c:109
109                     if (model->with_hidden || !PROTO_ITEM_IS_HIDDEN(node))
{
(gdb) p model->with_hidden
$1 = 0
(gdb) p node->finfo
$2 = (field_info *) 0x0

before crashing, UBSan reports this:

ui/gtk/proto_tree_model.c:109:30: runtime error: member access within
misaligned address 0x000300520281 for type 'proto_node' (aka 'struct
_proto_node'), which requires 8 byte alignment
0x000300520281: note: pointer points here
<memory cannot be printed>
    #0 0x555555ce39fe in proto_tree_model_iter_nth_child
ui/gtk/proto_tree_model.c:109:30
    #1 0x555555cdea08 in proto_tree_model_get_iter
ui/gtk/proto_tree_model.c:139:7
    #2 0x7ffff77e9ce8 in gtk_tree_view_unref_and_check_selection_tree
/build/src/gtk+-3.18.2/gtk/gtktreeview.c:9892
    #3 0x7ffff77f333b in gtk_tree_view_set_model
/build/src/gtk+-3.18.2/gtk/gtktreeview.c:11418
    #4 0x555555c6929a in proto_tree_draw_resolve ui/gtk/packet_panes.c:1409:5
    #5 0x555555c69a60 in proto_tree_draw ui/gtk/packet_panes.c:1429:5
    #6 0x555555c08b12 in main_cf_cb_packet_selected ui/gtk/main.c:1742:5
    #7 0x555555c01d0e in main_cf_callback ui/gtk/main.c:1833:9
    #8 0x555555b475fc in cf_callback_invoke file.c:169:5
    #9 0x555555b746e9 in cf_select_packet file.c:3603:3

ui/gtk/proto_tree_model.c:109:30: runtime error: load of misaligned address
0x0003005202a1 for type 'field_info *' (aka 'struct field_info *'), which
requires 8 byte alignment
0x0003005202a1: note: pointer points here
<memory cannot be printed>
    #0 0x555555ce3a5a in proto_tree_model_iter_nth_child
ui/gtk/proto_tree_model.c:109:30
    #1 0x555555cdea08 in proto_tree_model_get_iter
ui/gtk/proto_tree_model.c:139:7
    #2 0x7ffff77e9ce8 in gtk_tree_view_unref_and_check_selection_tree
/build/src/gtk+-3.18.2/gtk/gtktreeview.c:9892
    #3 0x7ffff77f333b in gtk_tree_view_set_model
/build/src/gtk+-3.18.2/gtk/gtktreeview.c:11418
    #4 0x555555c6929a in proto_tree_draw_resolve ui/gtk/packet_panes.c:1409:5
    #5 0x555555c69a60 in proto_tree_draw ui/gtk/packet_panes.c:1429:5
    #6 0x555555c08b12 in main_cf_cb_packet_selected ui/gtk/main.c:1742:5
    #7 0x555555c01d0e in main_cf_callback ui/gtk/main.c:1833:9
    #8 0x555555b475fc in cf_callback_invoke file.c:169:5
    #9 0x555555b746e9 in cf_select_packet file.c:3603:3


You are receiving this mail because:
  • You are watching all bug changes.