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/timer/timer_api failed on frdm_k64f board. #21813

Closed
chen-png opened this issue Jan 10, 2020 · 6 comments
Closed

tests/kernel/timer/timer_api failed on frdm_k64f board. #21813

chen-png opened this issue Jan 10, 2020 · 6 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 frdm_k64f -p auto tests/kernel/timer/timer_api/
  2. west flash
  3. See error

Screenshots or console output
*** Booting Zephyr OS build zephyr-v2.1.0-803-gf05cbb421ddf ***

Running test suite timer_api
starting test - test_time_conversions

PASS - test_time_conversions
starting test - test_timer_duration_period

PASS - test_timer_duration_period
starting test - test_timer_period_0

PASS - test_timer_period_0
starting test - test_timer_expirefn_null

PASS - test_timer_expirefn_null
starting test - test_timer_periodicity

PASS - test_timer_periodicity
starting test - test_timer_status_get

PASS - test_timer_status_get
starting test - test_timer_status_get_anytime

PASS - test_timer_status_get_anytime
starting test - test_timer_status_sync

PASS - test_timer_status_sync
starting test - test_timer_k_define

Assertion failed at ZEPHYR_BASE/tests/kernel/timer/timer_api/src/main.c:64: duration_expire: interval >= 100 is false
FAIL - test_timer_k_define
starting test - test_timer_user_data

PASS - test_timer_user_data
starting test - test_timer_remaining_get

PASS - test_timer_remaining_get
Test suite timer_api failed.
PROJECT EXECUTION FAILED

Environment (please complete the following information):

  • OS: fedora28
  • Toolchain: zephyr-sdk-0.10.3
  • Commit ID: f05cbb4
@chen-png chen-png added the bug The issue is a bug, or the PR is fixing a bug label Jan 10, 2020
@jhedberg jhedberg assigned MaureenHelm and dleach02 and unassigned MaureenHelm Jan 14, 2020
@jhedberg jhedberg added the priority: medium Medium impact/importance bug label Jan 14, 2020
@dleach02
Copy link
Member

@chen-png, I have not been able to reproduce the failure. Does this error happen to you on every run or only occasionally?

@yingmingx
Copy link
Collaborator

I have reproduce this failure only on the commit id f05cbb4. The error does not happen in the later version version 5c1a3f and the commit 4e13 which is before f05cbb4.
I add 1ms sleep before the second test in the function test_timer_k_define, it passed, I think it probably have some issues on arch related porting.

@@ -412,6 +413,7 @@ void test_timer_k_define(void)
* one will get added.
*/
busy_wait_ms(DURATION / 2);

  •   k_sleep(1);
      k_timer_start(&ktimer, DURATION, PERIOD);
      tdata.timestamp = k_uptime_get();
      busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2);
    

@chen-png
Copy link
Collaborator Author

it failed occasionally.
i saw it again with commit ebaed21, but it seems that it's difficult to reproduce.

@yingmingx
Copy link
Collaborator

I used git bisect command and found that it was first failed at commit-id 8bdabcc.

@dleach02
Copy link
Member

Okay, I was using the tip of master to try to reproduce and was not able to have it occur.

@MaureenHelm
Copy link
Member

This test still passes on master at e4479e2

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

Successfully merging a pull request may close this issue.

6 participants