-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AttributeError: 'NoneType' object has no attribute 'proto' #617
Comments
To add another data point, I've encountered the exact same bug on an M1 Mac with the same |
I came to this issue because I have code that's crashing with the same error while listening on I tried your pcap file with (a few moments later)[1] I went back a rev and downloaded Oh. Python version I will try to add some specific crash info for my situation. At least I can replicate that part. Sorry I can't help much more (for now). [1] Spongebob |
(a few hours later) I found the cause; but not the solution (yet). In
It's the call to I believe (in my case) that because the input The following code show
I didn't debug any further. BTW: The following parts of the xml file could well be what's triggering the error (if it really is a Unicode issue):
or:
|
Further testing (on a large public network - in this case an airport wifi) shows that the above crash can be triggered by Secondly ... In a modification to my previous code, I could stop BTW: I'm not actually snooping on a public network - that was just a way to get a lot of inbound random packets. The received packets from pyshark were sent to |
(sorry - I've been traveling and hence unable to dedicate some focus time to this). However ... Here's the fix (which must be tested in more cases than just this one):
The real fix is Once again ... I'm testing on an M1 MacPool Air. |
I've added PR #624. |
Describe the bug
Running pyshark on a specific pcap file makes it crash with the exception:
AttributeError: 'NoneType' object has no attribute 'proto'
Full backtrace:
To Reproduce
Run the following code on the PCAP-file attached:
Expected behavior
The library should not crash parsing tshark output.
Versions (please complete the following information):
Example pcap / packet
The following PCAP-file can be used for testing:
crash.pcap.gz
The text was updated successfully, but these errors were encountered: