I am getting this error:
What is the possible reason? asked 27 Jan '12, 04:04 Sanny_D edited 27 Jan '12, 06:20 multipleinte... |
2 Answers:
I believe the problem is likely because of a bug that was fixed in revision 39873. Unfortunately, the fix was not back-ported to the 1.6 branch, but I have scheduled it for 1.6.6. Of course, without a capture file to test against, it's impossible to say for sure if this is the actual problem or not. If you can apply the patch yourself and test it, that would confirm it. Alternatively, you could post a small capture file to either the wireshark-dev or wireshark-users mailing lists, and someone could probably test it. Another option would be to download and install a development version of the Wireshark installer post-r39873, such as one of those found here, then test it to see if the problem is resolved. answered 27 Jan '12, 17:29 cmaynard ♦♦ |
You should try running Wireshark using a debugger; this will help you isolate what line in your dissector code is failing. Looking at
What version of the source are you using, and have you made any modifications to Edit: The line in question for 1.6.4 is this:
I'm going to guess that the problem is really from line 2522:
I'm going to guess that you have called answered 27 Jan '12, 06:23 multipleinte... edited 27 Jan '12, 07:03 wireshark 1.6.4 no.. i havent done any modification to proto.c (27 Jan '12, 06:54) Sanny_D |
http://code.google.com/p/loganon/source/browse/lib/tests/libwireshark-dissection/shark-test.c?r=929dc4492abf156d1cdc1b492361f2e1c7a80830
this is the code m using!
its not reading a capture file.. directly its dissecting the u_char* packet
None of that matters; the dissection code neither knows nor cares whether you're reading a capture file.
As Chris noted, there's a bug in the MySQL dissector that can cause it to report an exception, and there's nothing you can do in your code to avoid it (other than not calling
epan_dissect_run()
, but then your code wouldn't actually dissect anything :-)) - you need to get a version of libwireshark that doesn't have the bug, either by waiting for Wireshark 1.6.6, using the development version, or patching the Wireshark source yourself.thanks harris :-) patching the 1.6.4 is the solution :-)