Wireshark-dev: Re: [Wireshark-dev] Plugin crash

From: "Matt Poduska" <mpoduska.intermec@xxxxxxxxx>
Date: Fri, 20 Jun 2008 10:41:44 -0500
I believe I've found the problem. It was with a line like:

    { &hf_llrp_field_value_s8, { "Value", PROTO_NAME_LLRP ".field.s8value",
FT_INT8,
                                  BASE_HEX, NULL, 0x00, "llrp field s8
value", HFILL }}, 

The problem appears to be that I've specified BASE_HEX along with FT_INT8.
Doesn't really make sense, I know, but previously it didn't crash Wireshark
- now it does.

Thanks, Matt 

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Stephen Fisher
Sent: Thursday, June 19, 2008 10:51 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Plugin crash

On Wed, Jun 18, 2008 at 10:08:53AM -0500, Matt Poduska wrote:

> I'm working to build a new protocol dissector as a plugin. My plugin 
> used to load and work properly, but I've recently (within the last few 
> weeks or so) updated to the SVN head and now my plugin crashes 
> Wireshark at startup (while loading plugins). I've been able to trace 
> the crash to a call to proto_register_field_array (line 682 of the 
> attached file). If I remove the line, the dissector loads properly 
> (but won't dissect properly, of course). I don't know why it's now 
> crashing (I haven't changed the dissector), and I haven't found an 
> acceptable way to debug this type of problem. Any suggestions?

What platform are you developing on, Unix or Windows?  Did you get any other
information from the method you used to track down which line it's crashing
on (what method did you use to determine where it was crashing?)?


Steve

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev