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

kernel.timer.tickless is failed due to missing TEST_USERSPACE flag #20904

Closed
erwango opened this issue Nov 21, 2019 · 0 comments · Fixed by #20905
Closed

kernel.timer.tickless is failed due to missing TEST_USERSPACE flag #20904

erwango opened this issue Nov 21, 2019 · 0 comments · Fixed by #20905
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@erwango
Copy link
Member

erwango commented Nov 21, 2019

Describe the bug
Running kernel.timer.tickless test is failing :

***** Booting Zephyr OS build zephyr-v2.0.0-1805-g7e722564df15 *****
Running test suite timer_api
===================================================================
starting test - test_timer_duration_period
ASSERTION FAIL [(options & ((1UL << (2)))) == 0] @ ZEPHYR_BASE/kernel/thread.c:580
	Platform is capable of user mode, and test thread created with K_USER option, but neither CONFIG_TEST_USERSPACE nor CONFIG_USERSPACE is set

E: r0/a1:  0x00000004  r1/a2:  0x00000244  r2/a3:  0x00000040
E: r3/a4:  0x08006efc r12/ip:  0x150b0000 r14/lr:  0x08000771
E:  xpsr:  0x61000000
E: Faulting instruction address (r15/pc): 0x08004e48
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x200003e0 (main)
E: Halting system

To Reproduce
Steps to reproduce the behavior:

  1. ./scripts/sanitycheck --device-testing --device-serial /dev/ttyACM0 -p nucleo_l4r5zi -T tests/kernel/timer/timer_api

Expected behavior
Test should be passed

Enabling CONFIG_TEST_USERSPACE fixes the issue.

@erwango erwango added the bug The issue is a bug, or the PR is fixing a bug label Nov 21, 2019
@ioannisg ioannisg added the priority: low Low impact/importance bug label Nov 21, 2019
erwango added a commit to erwango/zephyr that referenced this issue Nov 21, 2019
timer_api requires TEST_USERSPACE activation which is missing
in tickless configuration of the test.
Enable flag in prj_tickless.cnf

Fixes zephyrproject-rtos#20904


Signed-off-by: Erwan Gouriou <[email protected]>
ioannisg pushed a commit that referenced this issue Dec 9, 2019
timer_api requires TEST_USERSPACE activation which is missing
in tickless configuration of the test.
Enable flag in prj_tickless.cnf

Fixes #20904


Signed-off-by: Erwan Gouriou <[email protected]>
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: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants