Replies: 1 comment
-
Thanks @agesome, I converted this to and issue: #80542, those are triaged and monitored |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. When building Zephyr with GCC 14.1.0 (arch linux package), it seems that on startup,
z_thread_entry
is called withentry = NULL
, when normally it would= _main
, which leads to a fault.zephyr/lib/os/thread_entry.c
Line 48 in 4d0a8c1
If we break in
arch_switch_to_main_thread
, it looks like this,_main
(which is passed toz_thread_entry
asentry
) is OK:but if we then break in
z_thread_entry
, it looks as ifarch_switch_to_main_thread
had_main = 0
After some experimenting, I fixed this by commenting
zephyr/arch/arm/core/cortex_m/thread.c
Line 593 in 4d0a8c1
With GCC 12 included in Zephyr SDK, this problem does not appear.
So at this point I'm not sure if it's some incompatible change 12->14, or a bug in 14. Any advice?
I also made a comparison of assembly on GCC 14 with/without
CODE_UNREACHABLE
and GCC 12: https://gist.github.com/agesome/bfc1e15b561df353fd5f340c0413e348Beta Was this translation helpful? Give feedback.
All reactions