zephyriot / zep-jira14

0 stars 0 forks source link

[IPv6 TAHI] Section 1: RFC 2460 - IPv6 Specification #1716

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by ethan gao:

The TAHI is used to validate the implementation of Zephyr IPv6 stack, and now all the tests were ran within QEMU using echo_server as the Zephyr NUT peer, please refer to setup guideline here(https://wiki.zephyrproject.org/view/Zephyr_IPv6_testing_with_TAHI) if necessary.

[The gap/issue]

  1. The Pass/Total of Zephyr is 13/54, but the reference of Linux is 100% pass rate.
  2. QEMU crashes at running test "index 9 Part B: Unexpected Next Header in IPv6 Header", as follows: tahi@tahi:~/workspace/Self_Test_5-0-0/spec.p2$ sudo ./IP_NH_Unexpected.seq -pkt ./IP_NH_Unexpected.def -log 9.html -ti "Part B: Unexpected Next Header in IPv6 Header" Calling POSIX::tmpnam() is deprecated at /usr/local/share/perl/5.22.2/V6evalTool.pm line 1220. Start Capturing Packets (Link0) Send Echo Request with Unexpected Next Header Cannot receive ICMP Error message NG --- Cleanup NUT Send Neighbor Advertisement (Link-Local Address with Different Link-layer Address) Send Echo Request Wait for transit target Neighbor Cache Entry to INCOMPLETE/NONCE (10 sec.) Stop Capturing Packets (Link0)

    QEMU Crash [slip] [DBG] slip_send: sent data 70 bytes [slip] [DBG] slip_send: sent data 70 bytes [slip] [DBG] recv_cb: [0x00110ea0] received data 78 bytes CPU exception 6 Current thread ID = 0x00112a80 Faulting segment:address = 0x8:0x10fe41 eax: 0x113fb1, ebx: 0x1145c4, ecx: 0x0, edx: 0x0 esi: 0x0, edi: 0x4, ebp: 0112fc8, esp: 0x112f24 eflags: 0x206 Fatal fault in thread 0x00112a80! Aborting. [slip] [DBG] recv_cb: [0x00110ea0] received data 86 bytes [slip] [DBG] recv_cb: [0x00110ea0] received data 70 bytes

(Imported from Jira ZEP-1868)

nashif commented 7 years ago

by ethan gao:

nashif commented 7 years ago

by ethan gao:

nashif commented 7 years ago

by ethan gao:

nashif commented 7 years ago

by Jukka Rissanen:

It was not clear from the bug description whether you are using master or not branch. Anyway, there is this patch in net called "net: core: Fix IPv6 extra header options handling" that should / might fix the crash issue you are seeing. This patch is not yet in master but is found in net.

nashif commented 7 years ago

by Mark Linkmeyer:

ethan gao , did you see jukka]'s comment above? Can you provide the clarification needed on whether it was found on master or the net branch?

nashif commented 7 years ago

by ethan gao:

The crash can be resolved now and it's not the key point of this ticket, the critical is the run/pass rate.

nashif commented 7 years ago

by Andrei Laperie:

Removing the 1.9 release designation -- we will ensure TAHI support for this RFC in the later releases