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 7846] New: Valgrind errors in filter autocompletion

Date: Wed, 10 Oct 2012 19:28:53 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7846

           Summary: Valgrind errors in filter autocompletion
           Product: Wireshark
           Version: SVN
          Platform: x86-64
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: eapache@xxxxxxxxx


Build Information:
wireshark 1.9.0 (SVN Rev 45459 from /trunk)

Copyright 1998-2012 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 (64-bit) with GTK+ 2.24.13, with Cairo 1.12.2, with Pango 1.30.1, with
GLib 2.34.0, with libpcap, with libz 1.2.7, with POSIX capabilities (Linux),
with libnl 1, with SMI 0.4.8, with c-ares 1.9.1, with Lua 5.2, without Python,
with GnuTLS 2.12.14, with Gcrypt 1.5.0, with MIT Kerberos, with GeoIP, with
PortAudio V19-devel (built Oct  8 2012 16:37:35), without AirPcap.

Running on Linux 3.5.0-17-generic, with locale en_CA.UTF-8, with libpcap
version
1.3.0, with libz 1.2.7, GnuTLS 2.12.14, Gcrypt 1.5.0.

Built using gcc 4.7.2.
--
While trying to reproduce bug #5284 (using the original steps to reproduce and
capture file) I ran across a bunch of valgrind errors similar to the following:

==4467== Invalid read of size 8
==4467==    at 0xB38458F: wcslen (wcslen.S:48)
==4467==    by 0xB38DF62: wcscoll_l (strcoll_l.c:115)
==4467==    by 0x4EA4C89: g_utf8_collate (gunicollate.c:117)
==4467==    by 0x5A58326: ??? (in
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13)
==4467==    by 0x5978441: ??? (in
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13)
==4467==    by 0x4E91533: node_find_closest (gsequence.c:1764)
==4467==    by 0x4E917D5: node_insert_sorted (gsequence.c:2002)
==4467==    by 0x4E92C0C: g_sequence_sort_iter (gsequence.c:897)
==4467==    by 0x5979A08: ??? (in
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13)
==4467==    by 0x450C38: filter_autocomplete_new (filter_autocomplete.c:750)
==4467==    by 0x4516DE: filter_string_te_key_pressed_cb
(filter_autocomplete.c:455)
==4467==    by 0x597F598: ??? (in
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13)
==4467==  Address 0x19f27fa8 is 0 bytes after a block of size 40 alloc'd
==4467==    at 0x4C2B3F8: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4467==    by 0x4E7F6E0: g_malloc (gmem.c:159)
==4467==    by 0x4EA5930: _g_utf8_normalize_wc (gunidecomp.c:398)
==4467==    by 0x4EA4C64: g_utf8_collate (gunicollate.c:114)
==4467==    by 0x5A58326: ??? (in
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13)
==4467==    by 0x5978441: ??? (in
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13)
==4467==    by 0x4E91533: node_find_closest (gsequence.c:1764)
==4467==    by 0x4E917D5: node_insert_sorted (gsequence.c:2002)
==4467==    by 0x4E92C0C: g_sequence_sort_iter (gsequence.c:897)
==4467==    by 0x5979A08: ??? (in
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13)
==4467==    by 0x450C38: filter_autocomplete_new (filter_autocomplete.c:750)
==4467==    by 0x4516DE: filter_string_te_key_pressed_cb
(filter_autocomplete.c:455)

Based on the sizes and offsets I'm guessing it's a 64-bit only bug, but that's
just a guess.

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