Wireshark mailing list archives
Re: How to see where exception occurs in Malformed packets
From: Peter Wu <peter () lekensteyn nl>
Date: Tue, 7 Mar 2017 18:22:33 +0100
On Tue, Mar 07, 2017 at 02:08:51PM +0000, Remy Leone wrote:
Hello Le sam. 4 mars 2017 à 00:00, Jaap Keuter <jaap.keuter () xs4all nl> a écrit :Hi, Glib logging won't help you much, as in, malformed packet dissection isn't a problem in the underlying infrastructure of the program (which would cause said log messages to be generated), but a exception caught by the dissection engine itself. The common way to get forward is to retrieve the source code for the dissector the malformation is detected in and find the lines of code on which this exception is raised.How can I do this as efficiently as possible? I could do a bunch of printf but I was wondering if wireshark could help me find the exect lines at which the error occurs. Best regards Rémy
Usually I set a breakpoint at "except_throw" in the debugger and then examine the backtrace when it is hit. This works without modifying the source (but for a helpful trace, debugging symbols are recommended). -- Kind regards, Peter Wu https://lekensteyn.nl ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- How to see where exception occurs in Malformed packets Remy Leone (Mar 03)
- Re: How to see where exception occurs in Malformed packets Jaap Keuter (Mar 03)
- Re: How to see where exception occurs in Malformed packets Remy Leone (Mar 07)
- Re: How to see where exception occurs in Malformed packets Peter Wu (Mar 07)
- Re: How to see where exception occurs in Malformed packets Remy Leone (Mar 07)
- Re: How to see where exception occurs in Malformed packets Jaap Keuter (Mar 03)