Wireshark-bugs: [Wireshark-bugs] [Bug 6035] New: Crash after applying "expert.severity" field as

Date: Sat, 18 Jun 2011 11:06:20 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6035

           Summary: Crash after applying "expert.severity" field as column
           Product: Wireshark
           Version: 1.6.0
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: davide.schiera@xxxxxxxxx


Build Information:
Version 1.6.0 (SVN Rev 37592 from /trunk-1.6)

Copyright 1998-2011 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.22.1, with GLib 2.26.1, with WinPcap (version
unknown), with libz 1.2.5, without POSIX capabilities, without libpcre, without
SMI, with c-ares 1.7.1, with Lua 5.1, without Python, with GnuTLS 2.10.3, with
Gcrypt 1.4.6, without Kerberos, with GeoIP, with PortAudio V19-devel (built Jun 
7 2011), with AirPcap.

Running on 64-bit Windows 7 Service Pack 1, build 7601, with WinPcap version
4.1.2 (packet.dll version 4.1.0.2001), based on libpcap version 1.0 branch
1_0_rel0b (20091008), GnuTLS 2.10.3, Gcrypt 1.4.6, with AirPcap 4.1.1 build
1838.

Built using Microsoft Visual C++ 9.0 build 21022

Wireshark is Open Source Software released under the GNU General Public
License.

Check the man page and http://www.wireshark.org for more information.
--
If you apply expert.severity field as column, Wireshark crashes after applying
the change.

Moreover, since the change has already been saved on preferences file, next
time you start Wireshark and open a capture Wireshark will crash again. To fix
the problem, you have to manually remove the column from preferences file.


How to replicate the issue:
1. Open a trace file
2. Open Preferences dialog
3. User Interfaces -> Columns
4. Add a new column
5. Set type: Custom
6. Set name: expert.severity
7. OK


Result:
Wireshark will crash. Since preferences file already defines:

   column.format: 
      ...
      "New Column", "%Cus:expert.severity:0:R"

next time you open a capture Wireshark will crash again.

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