You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lots similar exceptions like: xxx(address) is not a valid xxx(object)
E: 0x800070d4 is not a valid k_sem
E: address is not a known kernel object
E: syscall z_vrfy_k_sem_take failed check: access denied
E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
E: Current thread: 0x80002a44 (unknown)
E: Halting system
E: 0x80006cb4 is not a valid sample driver
E: address is not a known kernel object
E: syscall z_vrfy_sample_driver_state_set failed check: access denied
E: couldn't start driver interrupts
E: r0: 0x3 r1: 0x4 r2: 0x4 r3: 0x3
E: r4: 0x0 r5: 0x0 r6: 0xab r7: 0x0
E: r8: 0x0 r9: 0x0 r10: 0x0 r11: 0x0
E: r12: 0x4 r13: 0x80001804 pc: 0x186
E: blink: 0x180 status32: 0x80186886
E: lp_end: 0x34d2 lp_start: 0x34cc lp_count: 0x0
E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
E: Current thread: 0x80002b58 (unknown)
E: Halting system
Environment (please complete the following information):
Let's debug tests/kernel/mutex/mutex_api for example:
$ west build -b nsim_em tests/kernel/mutex/mutex_api/
$ west flash
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner arc-nsim
Console now belongs to UART, hit CRTL-] to return to simulator.
*** Booting Zephyr OS build v2.6.0-rc1-249-gbd122e5ea232 ***
Running test suite mutex_api
===================================================================
START - test_mutex_lock_unlock
E: 0x800064b8 is not a valid k_mutex
E: address is not a known kernel object
E: syscall z_vrfy_k_mutex_init failed check: access denied
E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
E: Current thread: 0x80000a48 (test_mutex_lock_unlock)
E: Halting system
Console now belongs to simulator.
kmutex is at address: 0x800064b8
then enable verbose with gen_kobject_list.py:
gen_kobject_list.py: symbol 'kmutex' at 0x800050b8 contains 1 object(s)
there is an unexpected offset 0x1400 (0b5120), then check the zephyr_prebuilt.map:
Describe the bug
A clear and concise description of what the bug is.
What have you tried to diagnose or workaround this issue?
To Reproduce
Steps to reproduce the behavior:
Logs and console output
Lots similar exceptions like:
xxx(address) is not a valid xxx(object)
Environment (please complete the following information):
Additional context
I use git bisect find this issue is introduced by this commit(@dcpleung ): 8a4d9f7
it seems something broke statically define and initialize a object macro, like:
K_SEM_DEFINE
,K_MUTEX_DEFINE
The text was updated successfully, but these errors were encountered: