Project

General

Profile

Actions

Bug #3943

closed

dump: uncaught exception "unrecognized field 4 cannot be ignored"

Added by Junxiao Shi about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Steps to reproduce:

  1. ndndump -r hobo1486071022.pcap

Actual: program terminates with ERROR: unrecognized field 4 cannot be ignored

Expected: invalid packets, if any, do not cause program termination


Files

hobo1486071022.pcap (101 KB) hobo1486071022.pcap pcap trace Junxiao Shi, 02/02/2017 02:13 PM
hobo1486075800.pcap (90.3 KB) hobo1486075800.pcap Junxiao Shi, 02/02/2017 02:56 PM
Actions #1

Updated by Junxiao Shi about 7 years ago

A similar case: hobo1486075800.pcap causes ndndump to terminate with ERROR: TLV length exceeds buffer length.

Actions #2

Updated by Alex Afanasyev about 7 years ago

  • Assignee set to Alex Afanasyev

Just curious. Are these simply invalid packets?

Actions #3

Updated by Junxiao Shi about 7 years ago

Just curious. Are these simply invalid packets?

Probably not. Both pcap traces are captured on NDN testbed Arizona router using port 6363 filter. I just stripped the trace down to one second that contains the troublemaker.

Actions #4

Updated by Davide Pesavento over 5 years ago

  • Assignee changed from Alex Afanasyev to Davide Pesavento
  • Start date deleted (02/02/2017)
Actions #5

Updated by Davide Pesavento over 5 years ago

ERROR: unrecognized field 4 cannot be ignored

This is caused by a missing try-catch around lp::Packet constructor. I don't know how you managed to capture a packet with an LP field of type 4 since we don't officially define any such field...

Actions #6

Updated by Davide Pesavento over 5 years ago

  • Status changed from New to Code review
  • % Done changed from 0 to 100
Actions #7

Updated by Junxiao Shi over 5 years ago

I don't know how you managed to capture a packet with an LP field of type 4 since we don't officially define any such field...

I kept tcpdump running for several days, fed the traffic to ndndump, and narrowed down to a shorter file that causes a crash.
The troublemakers might come from a non standard compliant node. I didn’t know how to handwrite a pcap back then.

Actions #8

Updated by Davide Pesavento over 5 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF