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: workq: work_queue: kernel.workqueue fails #83047

Open
katgiadla opened this issue Dec 16, 2024 · 0 comments
Open

kernel: workq: work_queue: kernel.workqueue fails #83047

katgiadla opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug

Comments

@katgiadla
Copy link
Collaborator

Describe the bug
Test tests/kernel/workq/work_queue/kernel.workqueue fails.

Observed for

  • nrf52dk/nrf52832
  • nrf5340dk/nrf5340/cpuapp
  • nrf5340dk/nrf5340/cpunet
  • nrf54l15dk/nrf54l15/cpuflpr
  • [email protected]/nrf9160

To Reproduce
Steps to reproduce the behavior:

  1. have nrf5340dk/nrf5340/cpuapp connected
  2. go to your zephyr dir
  3. call ./scripts/twister -s kernel.workqueue -p nrf5340dk/nrf5340/cpuapp --device-testing --device-serial /dev/ttyACM1 -v --inline-logs --west-flash="--erase"
  4. See console output with error (using e.g. minicom)

Expected behavior
Console output

Impact
Not clear

Logs and console output

Logs for nrf52dk/nrf52832 and [email protected]/nrf9160

Running TESTSUITE workqueue_api
===================================================================
START - test_k_work_queue_stop

    Assertion failed at zephyr/tests/kernel/workq/work_queue/src/start_stop.c:35: workqueue_api_test_k_work_queue_stop: (k_work_queue_stop(&work_q, K_FOREVER) not equal to -EALREADY)
Succeeded to stop work queue on non-initialized work queue
 FAIL - test_k_work_queue_stop in 0.024 seconds
===================================================================

Logs for nrf5340dk/nrf5340/cpuapp:

*** Booting Zephyr OS build v4.0.0-2065-ga8b5cfd79183 ***
Running TESTSUITE workqueue_api
===================================================================
START - test_k_work_queue_stop
E: ***** USAGE FAULT *****
E:   Unaligned memory access
E: r0/a1:  0x5d5ffbf3  r1/a2:  0x00000000  r2/a3:  0x00000000
E: r3/a4:  0x20000790 r12/ip:  0xade8f6e7 r14/lr:  0x000078f5
E:  xpsr:  0x81000000
E: Faulting instruction address (r15/pc): 0x000078fe
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
E: Current thread: 0x20000790 (test_k_work_queue_stop)
E: Halting system

Logs for nrf54l15dk/nrf54l15/cpuflpr:

*** Booting Zephyr OS build v4.0.0-2065-ga8b5cfd79183 ***
Running TESTSUITE workqueue_api
===================================================================
START - test_k_work_queue_stop
E: 
E:  mcause: 6, Store/AMO address misaligned
E:   mtval: 0
E:      a0: ffffffff    t0: ffffffff
E:      a1: 00000000    t1: ffffffff
E:      a2: 00000000    t2: ffffffff
E:      a3: 00000008
E:      a4: 00000000
E:      a5: ffffffff
E:      sp: 20038fa8
E:      ra: 2003098a
E:    mepc: 2003099c
E: mstatus: 00001800
E: 
E: call trace:
E:       0: sp: 20038fa8 ra: 2003099c
E:       1: sp: 20038fc0 ra: 200298e8
E:       2: sp: 20039140 ra: 2002a244
E:       3: sp: 20039154 ra: 2002a202
E:       4: sp: 20039158 ra: 20029cf6
E: 
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
E: Current thread: 0x200366d8 (test_k_work_queue_stop)
E: Halting system

Environment (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • Toolchain Zephyr SDK 0.16.8
  • Commit SHA or Version used: v4.0.0-1995-g2ed879

Additional information:
Probably introduced by 8934b81

@katgiadla katgiadla added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug platform: nRF Nordic nRFx labels Dec 16, 2024
@github-project-automation github-project-automation bot moved this to To triage in nRF platform Dec 16, 2024
@zephyrbot zephyrbot assigned anangl and masz-nordic and unassigned anangl Dec 16, 2024
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 platform: nRF Nordic nRFx priority: low Low impact/importance bug
Projects
Status: To triage
Development

No branches or pull requests

3 participants