Skip to content

Conversation

zephyrbot
Copy link

@zephyrbot zephyrbot commented Aug 6, 2024

Backport 9698df9 from #76045.

Fixes #76762

Account for the scenario when we are doing `esf`-based
unwinding from a function which doesn't have any callee.
In this case the `ra` is not saved on the stack and the
second function from the top of the frame could be missing.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
(cherry picked from commit 9698df9)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: RISCV RISCV Architecture (32-bit & 64-bit) labels Aug 6, 2024
Copy link
Member

@ycsin ycsin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing issue on main branch ATM

@nashif
Copy link
Member

nashif commented Aug 7, 2024

going to close until we have a proper fix that can be backported.

@nashif nashif closed this Aug 7, 2024
@ycsin
Copy link
Member

ycsin commented Aug 8, 2024

This should work now if we backport #76791 first

@nashif nashif deleted the backport-76045-to-v3.7-branch branch November 16, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: RISCV RISCV Architecture (32-bit & 64-bit) Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

v3.7-branch: arch: riscv: stacktrace: trace is incomplete when unwinding from function without callee
6 participants