Wireshark-bugs: [Wireshark-bugs] [Bug 3640] New: crash when loading a profile

Date: Wed, 1 Jul 2009 06:32:45 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3640

           Summary: crash when loading a profile
           Product: Wireshark
           Version: 1.2.0
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: yann.barilly@xxxxxxxxxxxxxxxxxx


Created an attachment (id=3234)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3234)
"protos", "perferences" and "recent" of bugging profile

Build Information:
Version 1.3.0 (SVN Rev 28889)

Compiled with GTK+ 2.16.2, with GLib 2.20.3, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.8,
with c-ares 1.6.0, with Lua 5.1, without Python, with GnuTLS 2.8.1, with Gcrypt
1.4.4, with MIT Kerberos, with GeoIP, with PortAudio V19-devel (built Jul  1
2009), with AirPcap.

Running on Windows XP Service Pack 2, build 2600, with WinPcap version 4.1
beta5
(packet.dll version 4.1.0.1452), based on libpcap version 1.0.0, GnuTLS 2.8.1,
Gcrypt 1.4.4, without AirPcap.

Built using Microsoft Visual C++ 9.0 build 30729

-------------------------------------------------------------------------------

Version 1.2.0 (SVN Rev 28753)

Compiled with GTK+ 2.16.2, with GLib 2.20.3, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.8,
with c-ares 1.6.0, with Lua 5.1, with GnuTLS 2.8.1, with Gcrypt 1.4.4, with MIT
Kerberos, with GeoIP, with PortAudio V19-devel (built Jun 15 2009), with
AirPcap.

Running on Windows XP Service Pack 2, build 2600, with WinPcap version 4.1
beta5
(packet.dll version 4.1.0.1452), based on libpcap version 1.0.0, GnuTLS 2.8.1,
Gcrypt 1.4.4, without AirPcap.

Built using Microsoft Visual C++ 9.0 build 30729

--
On 1.2.0 and 1.3.0 Dev
- Creating a profile with custom columns OK
- Modifying the order of the columns OK
- Save and use OK
- Loading another profile : crash

If one of the added columns is inserted before one of the default ones
WS crashes when loading another profile.
If the column is moved back at the end of the list, it doesn't bug anymore


for 1.3.0: 
/epan/column.c:

gint
get_column_format(gint col) {
  GList    *clp = g_list_nth(prefs.col_list, col);
  fmt_data *cfmt;

  cfmt = (fmt_data *) clp->data;  "STOPS ON THAT LINE"

  return(get_column_format_from_str(cfmt->fmt));
}


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