Skip to content
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

up_squared: tests/kernel/mem_protect/mem_protect failed. #30305

Closed
chen-png opened this issue Nov 30, 2020 · 4 comments
Closed

up_squared: tests/kernel/mem_protect/mem_protect failed. #30305

chen-png opened this issue Nov 30, 2020 · 4 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@chen-png
Copy link
Collaborator

To Reproduce
Steps to reproduce the behavior:

  1. west build -b up_squared -p auto tests/kernel/mem_protect/mem_protect
  2. west flash ~/up_squared.sh
  3. see error

Logs and console output
Booting Zephyr OS build zephyr-v2.4.0-1845-g6aa16e01dd91
Running test suite memory_protection_test_suite

START - test_permission_inheritance
E: Page fault at address 0x12e990 (error code 0x4)
E: Linear address not present in page tables
E: Access violation: user thread not allowed to read
E: PTE: not present
E: RAX: 0x0000000000000000 RBX: 0x0000000000000000 RCX: 0x0000000000100456 RDX: 0x0000000000000000
E: RSI: 0x0000000000d60fb4 RDI: 0x0000000000d79380 RBP: 0x0000000000000000 RSP: 0x0000000000d60fc8
E: R8: 0x000000000010048c R9: 0x8000000000000006 R10: 0x0000000000000000 R11: 0x0000000000000202
E: R12: 0x0000000000000000 R13: 0x0000000000000000 R14: 0x0000000000000000 R15: 0x0000000000000000
E: RSP: 0x0000000000d60fc8 RFLAGS: 0x0000000000010202 CS: 0x003b CR3: 0x000000000083a000
E: RIP: 0x0000000000100499
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 1
E: Current thread: 0x12a940 (unknown)
Caught system error -- reason 0 1
fatal error expected as part of test case

this error is an expected error, but the test it will stop at there, and fail with timeout.

Environment (please complete the following information):

  • OS: Fedora32
  • Toolchain: zephyr-sdk-0.11.4
  • Commit ID: 6aa16e0
@chen-png chen-png added the bug The issue is a bug, or the PR is fixing a bug label Nov 30, 2020
@nashif nashif added the priority: medium Medium impact/importance bug label Dec 1, 2020
@andrewboie
Copy link
Contributor

Is this a recent regression or has this been broken for some time? On the off chance you have had time to bisect is there an offending commit?

@jenmwms
Copy link
Collaborator

jenmwms commented Dec 2, 2020

This is similar symptom as #30275. The workaround is not scalable #30374. This will pass if sanitycheck is informed to wait 120 seconds for the test to complete (TBD if its related to setup/flash/boot time).

@jenmwms
Copy link
Collaborator

jenmwms commented Dec 3, 2020

Interesting this does look like another case of the test taking longer than the default timeout that sanitycheck is using. The test suite completes quickly back at b8242bf, then next commit we start seeing it take longer for test_permission_inheritance in 1367c4a4b7f1. (note this allows us to see pre-existing fatal error was unexpected, aborting in test_mem_domain_setup). We need to figure out why its taking longer.

@jenmwms
Copy link
Collaborator

jenmwms commented Dec 10, 2020

Closing this, it is now part of cluster in #30573

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

No branches or pull requests

4 participants