Skip to content

tests/net/tcp: Page fault #13937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cinlyooi-intel opened this issue Feb 28, 2019 · 3 comments
Closed

tests/net/tcp: Page fault #13937

cinlyooi-intel opened this issue Feb 28, 2019 · 3 comments
Assignees
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@cinlyooi-intel
Copy link
Contributor

Describe the bug
Although the test case ran to completion and report that it is successful. There is a "Page Fault" error

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build; cd build
    2.cmake -DBOARD=qemu_x86 -DARCH=x86
  2. make
  3. make run

Screenshots or console output

***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-60-g9072d34 (delayed boot 1000ms) *****
starting test - test TCP init
passed
starting test - test TCP register/unregister port cb
passed
starting test - test TCP context init
passed
starting test - test IPv6 TCP reset packet creation
passed
starting test - test IPv4 TCP reset packet creation
passed
starting test - test IPv6 TCP syn packet creation
passed
starting test - test IPv4 TCP syn packet creation
passed
starting test - test IPv6 TCP synack packet create
passed
starting test - test IPv4 TCP synack packet create
passed
starting test - test IPv6 TCP fin packet creation
passed
starting test - test IPv4 TCP fin packet creation
passed
starting test - test IPv6 TCP seq check
passed
starting test - test IPv4 TCP seq check
passed
starting test - test TCP seq validity
passed
starting test - test TCP reply context init
passed
starting test - test TCP accept init
passed
starting test - test cleanup
passed
===================================================================
RunID: ci-190212-1245-422:fls2
PROJECT EXECUTION SUCCESSFUL
[00:00:14.123,179] &#1b;[1;31m<err> net_conn: Address families different&#1b;[0m
***** CPU Page Fault (error code 0x00000000)
Supervisor thread read address 0x00000030
PDE: 0x025 Present, Read-only, User, Execute Enabled
PTE: 0x00 Non-present, Read-only, Supervisor, Execute Enabled
Current thread ID = 0x004047fc
eax: 0x00000030, ebx: 0x0040a358, ecx: 0x00000030, edx: 0x0040a358
esi: 0x00000028, edi: 0x00401428, ebp: 0x0041cf70, esp: 0x0041cf6c
eflags: 0x00000206 cs: 0x0008
call trace:
eip: 0x0000db84
0x0000e570 (0x13c0f)
0x0000e6b8 (0x40a358)
0x00004486 (0x4038f8)
0x0000440e (0x4047e0)
Fatal fault in thread 0x004047fc! Aborting.

Environment (please complete the following information):

  • OS: fedora29
  • Toolchain: zephyr
  • Commit SHA or Version used: b75115a
@cinlyooi-intel cinlyooi-intel added the bug The issue is a bug, or the PR is fixing a bug label Feb 28, 2019
@rljordan-zz rljordan-zz added the priority: low Low impact/importance bug label Mar 1, 2019
@jukkar
Copy link
Member

jukkar commented Mar 1, 2019

I could not reproduce this. There was no crash at the end of the test run, there is error print that says
[00:00:10.215,052] <err> net_conn: Address families different but no crashes.
The head of my git tree was b17d9ee
I am using SDK 0.9.5 so the qemu version is most probably different which could explain the different result.

@jukkar jukkar assigned rveerama1 and unassigned jukkar Mar 7, 2019
@rveerama1
Copy link
Collaborator

rveerama1 commented Mar 8, 2019

I tried this today in my environment.

Test is successful with below messages at the end of test.
PROJECT EXECUTION SUCCESSFUL
[00:00:02.540,000] net_conn: Address families different

OS: Ubuntu 18.04
Toolchain: Zephyr
SDK: zephyr-sdk-0.10.0-rc3
git head: rveerama1@2384ebc

I didn't see any crash.

Also fyi, #14069 has a patch for TCP tests are migrated to new net_pkt api.

@rveerama1
Copy link
Collaborator

rveerama1 commented Mar 11, 2019

Also fyi, #14069 has a patch for TCP tests are migrated to new net_pkt api.

PR merged and I tried it with today latest rveerama1@7967829.

Hence closing this issue, re-open if you still find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants