Dissector bug: failed assertion saved_layers_len < 500 in Wireshark

asked 2019-10-06 16:02:59 +0000

tamnguyen_287 gravatar image

updated 2019-10-06 16:38:32 +0000

Can someone help me explain what this error means and how to fix it this error

edit retag flag offensive close merge delete

Comments

Screen shot of error with full text here:

Code from packet.c:

 733  * XXX packet_info.curr_layer_num is a guint8 and *_MAX_RECURSION_DEPTH is
 734  * 100 elsewhere in the code. We should arguably use the same value here,
 735  * but using that makes suite_wslua.case_wslua.test_wslua_dissector_fpm fail.
 736  */
 737 #define PINFO_LAYER_MAX_RECURSION_DEPTH 500

 758         saved_proto = pinfo->current_proto;
 759         saved_can_desegment = pinfo->can_desegment;
 760         saved_layers_len = wmem_list_count(pinfo->layers);
 761         DISSECTOR_ASSERT(saved_layers_len < PINFO_LAYER_MAX_RECURSION_DEPTH);

Is it possible to upload part of the capture that included the section that makes the error?

Chuckc gravatar imageChuckc ( 2019-10-06 17:25:21 +0000 )edit

yeah. this is file .pcap and these error packets are at no.18744 and 18934. https://drive.google.com/open?id=1w0S...

tamnguyen_287 gravatar imagetamnguyen_287 ( 2019-10-06 17:28:24 +0000 )edit

Related bug: 15197

Chuckc gravatar imageChuckc ( 2019-10-06 17:29:09 +0000 )edit

Thank for the capture. It crashes Wireshark 3.0.4 on load. Can see the warnings with tshark:

Z:\>tshark -r ./2k-flows-b.pcap > tshark.out

** (tshark.exe:5920): WARNING **: Dissector bug, protocol IPv4, in packet 18150: C:\buildbot\builders\wireshark-3.0-32\windows-2019-x86\build\epan\packet.c:761: failed assertion "saved_layers_len < 500"

** (tshark.exe:5920): WARNING **: Dissector bug, protocol IPv4, in packet 18150: C:\buildbot\builders\wireshark-3.0-32\windows-2019-x86\build\epan\packet.c:761: failed assertion "saved_layers_len < 500"

** (tshark.exe:5920): WARNING **: Dissector bug, protocol IPv4, in packet 18774: C:\buildbot\builders\wireshark-3.0-32\windows-2019-x86\build\epan\packet.c:761: failed assertion "saved_layers_len < 500"

** (tshark.exe:5920): WARNING **: Dissector bug, protocol IPv4, in packet 18774: C:\buildbot\builders\wireshark-3.0-32\windows-2019-x86\build\epan\packet.c:761: failed assertion "saved_layers_len < 500"

** (tshark.exe:5920): WARNING **: Dissector bug, protocol IPv4, in packet 18934: C:\buildbot\builders\wireshark-3.0-32 ...
(more)
Chuckc gravatar imageChuckc ( 2019-10-06 17:35:00 +0000 )edit

Help me ! I can't see C:\buildbot\builders\wireshark-3.0-32\windows-2019-x86\build\epan\packet.c. I search file packet.c and nothing to be here

tamnguyen_287 gravatar imagetamnguyen_287 ( 2019-10-06 17:46:38 +0000 )edit