Exception Stack Frames are not correct in coredumps #78788
Labels
area: Coredump
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Exception Stack Frames are not correct in coredumps
The stack pointer in the Zephyr ARM Coredumps are imprecise due to an error in the stack offset calculation:
zephyr/arch/arm/core/cortex_m/fault.c
Lines 1115 to 1117 in c343890
The stackpointer can't be calculated without EXC_RETURN. We don't have a reliable way to calculate it outside of the coredump handler.
I see we have an existing PR that would resolve this issue: PR #73189.
To Reproduce
With an ARM M4 MCU with FPU extension (e.g. nRF52833):
Expected behavior
I expect the SP to be accurate :)
Impact
This prevents us from using upstream Zephyr.
Interesting Docs
The text was updated successfully, but these errors were encountered: