This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Wireshark application termination

0
1

Hello All,

I hard-coded some changes to preferences through epan/prefs.c file. I also removed the preferences file present in C:\Doc & Settings\..\preferences. I was successful in reflecting the needed changes, but Wireshark aborts immediately if i click on the Cancel button of the Edit->Preferences dialog box or File->Quit option. Kindly resolve this issue.

Thanks, Regards, Prashanth

asked 12 Sep '11, 05:28

Terrestrial%20shark's gravatar image

Terrestrial ...
96212829
accept rate: 42%

edited 12 Sep '11, 23:31

helloworld's gravatar image

helloworld
3.1k42041

4

You'll probably need to use a debugger to see what's going on....

(12 Sep '11, 07:48) Bill Meier ♦♦

One Answer:

1

Have a look at all the places where you made changes and pay attention to memory allocations and frees, you may have freed memory that will be freed later on by GTK.

Apart from that, it's almost impossible to resolve your issue as we do not have the code to look at, nor debugging output to work with. So I'm afraid I will have to send you home to do some homework ;-)

answered 12 Sep '11, 11:19

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%

How to use the Debugger? Where can i Find it?

(12 Sep '11, 21:30) Terrestrial ...
1

Read this page http://wiki.wireshark.org/Development/Tips?highlight=%28debugger%29

(12 Sep '11, 22:39) Anders ♦

I have used the debugger. The warning is: 11:34:07 Warn C:Documents and SettingsadminApplication DataWiresharkpreferences line 134: Syntax error in preference column.format (applying your preferences once should remove this warning)

(12 Sep '11, 23:05) Terrestrial ...
1

Start Wireshark in the debugger, and then cause the crash (which sounds easily reproducible for you). The debugger should break at/near the crash point.

(12 Sep '11, 23:18) helloworld

I have totally 32 Columns to hardcode. When i add upto 30 Columns its not getting crashed but if i the other two columns too i can see the crashing of the wireshark. How many number of columns can wireshark accept?

(13 Sep '11, 01:23) Terrestrial ...

Thanks for every one!! I have resolved it. Its just due to the mismatch of Column type and Custom_field values.

(13 Sep '11, 02:51) Terrestrial ...
showing 5 of 6 show 1 more comments