Wireshark-bugs: [Wireshark-bugs] [Bug 5285] New: Wireshark crashes with "Gtk-ERROR **: Byte inde
Date: Fri, 8 Oct 2010 08:38:09 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5285

           Summary: Wireshark crashes with "Gtk-ERROR **: Byte index 6 is
                    off the end of the line" if clieck on last PDU
           Product: Wireshark
           Version: SVN
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: gabarsig@xxxxxxxxx


Created an attachment (id=5278)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=5278)
The pcap file to replicate the crash

Build Information:
wireshark 1.5.0 (SVN Rev 34434 from /trunk)

Copyright 1998-2010 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GTK+ 2.10.4, (64-bit) with GLib 2.12.3, with libpcap 0.9.4, with
libz 1.2.3, without POSIX capabilities, with libpcre (version unknown), without
SMI, without c-ares, without ADNS, without Lua, without Python, without GnuTLS,
without Gcrypt, without Kerberos, without GeoIP, without PortAudio, without
AirPcap.

Running on Linux 2.6.27.46, with libpcap version 0.9.4, with libz 1.2.3.

Built using gcc 4.1.2 20080704 (Red Hat 4.1.2-46).

--
I have also confirmed this problem to exist on the latest Release (1.4.0) on
both Linux and Windows (binary release). It seems similar to Bug 4894. It
exists in latest svn (compiled on linux)

If we click on the last PDU of a decoded packet (shown in attached screenshot)
wireshark crashes with an error:
"(lt-wireshark:6818): Gtk-WARNING **: gtktextbtree.c:3960: byte index off the
end of the line"

To Reproduce:
Load the attached pcap file "wireshark_crash.pcap", expand the "TCP" view as
shown in the screenshot and then click on the last PDU. It will crash.


GDB backtrace:

(lt-wireshark:6818): Gtk-WARNING **: gtktextbtree.c:3960: byte index off the
end of the line

Gtk-ERROR **: Byte index 6 is off the end of the line
aborting...

Program received signal SIGABRT, Aborted.
0x00000039b6c30265 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00000039b6c30265 in raise () from /lib64/libc.so.6
#1  0x00000039b6c31d10 in abort () from /lib64/libc.so.6
#2  0x00000039b8c34eb0 in g_logv () from /lib64/libglib-2.0.so.0
#3  0x00000039b8c34f33 in g_log () from /lib64/libglib-2.0.so.0
#4  0x000000305d3c57d4 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#5  0x000000305d3c5bf5 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#6  0x0000000000453fa6 in packet_hex_apply_reverse_tag (buf=0x268bbb0,
bstart=<value optimized out>, bend=<value optimized out>,
    mask=1, mask_le=0, use_digits=<value optimized out>, create_mark=1) at
main_proto_draw.c:1161
#7  0x0000000000454976 in packet_hex_update (bv=0x266e2e0, pd=0x7b35e0 "",
len=1514, bstart=1396, bend=1618, bmask=0, bmask_le=0,
    astart=0, aend=-1, encoding=0) at main_proto_draw.c:1536
#8  0x0000000000454d39 in packet_hex_print (bv=0x266e2e0, pd=0x7b35e0 "",
fd=0x26fcc80, finfo=<value optimized out>, len=1514)
    at main_proto_draw.c:1618
#9  0x0000000000449893 in tree_view_selection_changed_cb (sel=0x2650f40,
user_data=<value optimized out>) at main.c:892
#10 0x00000039b9c0b08a in g_closure_invoke () from /lib64/libgobject-2.0.so.0
#11 0x00000039b9c1b2ed in ?? () from /lib64/libgobject-2.0.so.0
#12 0x00000039b9c1c748 in g_signal_emit_valist () from
/lib64/libgobject-2.0.so.0
#13 0x00000039b9c1c923 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#14 0x000000305d41003b in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#15 0x000000305d41cb25 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#16 0x000000305d32ffbd in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#17 0x00000039b9c0b08a in g_closure_invoke () from /lib64/libgobject-2.0.so.0
#18 0x00000039b9c1b8e6 in ?? () from /lib64/libgobject-2.0.so.0
#19 0x00000039b9c1c516 in g_signal_emit_valist () from
/lib64/libgobject-2.0.so.0
#20 0x00000039b9c1c923 in g_signal_emit () from /lib64/libgobject-2.0.so.0
#21 0x000000305d42d78e in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#22 0x000000305d3296ad in gtk_propagate_event () from
/usr/lib64/libgtk-x11-2.0.so.0
#23 0x000000305d32a6c1 in gtk_main_do_event () from
/usr/lib64/libgtk-x11-2.0.so.0
#24 0x000000305ce468cc in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
#25 0x00000039b8c2cdb4 in g_main_context_dispatch () from
/lib64/libglib-2.0.so.0
#26 0x00000039b8c2fc0d in ?? () from /lib64/libglib-2.0.so.0
#27 0x00000039b8c2ff1a in g_main_loop_run () from /lib64/libglib-2.0.so.0
#28 0x000000305d32aa53 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#29 0x000000000044b5e1 in main (argc=0, argv=0x7fffb5243c18) at main.c:3057

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.