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

tests/kernel/mem_protect/sys_sem: qemu_x86_64 intermittent failure #28881

Closed
pabigot opened this issue Oct 2, 2020 · 1 comment
Closed

tests/kernel/mem_protect/sys_sem: qemu_x86_64 intermittent failure #28881

pabigot opened this issue Oct 2, 2020 · 1 comment
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@pabigot
Copy link
Collaborator

pabigot commented Oct 2, 2020

This sometimes shows up in buildkite, e.g. https://buildkite.com/zephyr/zephyr/builds/9752

It can be reproduced on master with:

sanitycheck -p qemu_x86_64 -s tests/kernel/mem_protect/sys_sem/kernel.memory_protection.sys_sem

When the failure occurs the output is:

SeaBIOS (version rel-1.12.1-0-ga5cab58-dirty-20200625_115407-9426dddc0a1f-zephyr)
Booting from ROM..*** Booting Zephyr OS build zephyr-v2.4.0-207-gc02eb30bbfbe  ***
Running test suite test_sys_sem
===================================================================
START - test_basic_sem_test
 PASS - test_basic_sem_test
===================================================================
START - test_simple_sem_from_isr
 PASS - test_simple_sem_from_isr
===================================================================
START - test_sem_take_timeout_isr
 PASS - test_sem_take_timeout_isr
===================================================================
START - test_sem_give_take_from_isr
 PASS - test_sem_give_take_from_isr
===================================================================
START - test_simple_sem_from_task
 PASS - test_simple_sem_from_task
===================================================================
START - test_sem_take_no_wait
 PASS - test_sem_take_no_wait
===================================================================
START - test_sem_take_no_wait_fails
 PASS - test_sem_take_no_wait_fails
===================================================================
START - test_sem_take_timeout_fails
 PASS - test_sem_take_timeout_fails
===================================================================
START - test_sem_take_timeout

    Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/mem_protect/sys_sem/src/main.c:277: test_sem_take_timeout: (ret_value == 0 is false)
sys_sem_take failed when its shouldn't have
 FAIL - test_sem_take_timeout
===================================================================
START - test_sem_take_timeout_forever
 PASS - test_sem_take_timeout_forever
===================================================================
START - test_sem_take_multiple
 PASS - test_sem_take_multiple
===================================================================
START - test_sem_give_limit
 PASS - test_sem_give_limit
===================================================================
START - test_sem_multiple_threads_wait
 PASS - test_sem_multiple_threads_wait
===================================================================
Test suite test_sys_sem failed.
===================================================================
PROJECT EXECUTION FAILED
@pabigot pabigot added the bug The issue is a bug, or the PR is fixing a bug label Oct 2, 2020
@andrewboie
Copy link
Contributor

there's nothing we can do about this, qemu_x86_64 doesn't implement icount if multiple CPUs are enabled and you will occasionally get timing sensitive tests to fail.

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
Projects
None yet
Development

No branches or pull requests

2 participants