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

up_backtrace: fix maybe backtrace the exiting thread #12754

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

jasonbu
Copy link
Contributor

@jasonbu jasonbu commented Jul 24, 2024

Summary

when trying to show information at task quit and thread still running, try dump callstack found maybe some problem.
Need this patch to solve dump exiting thread callstack. need another patch to fix dump running thread stack.

Impact

Can dump the exiting thread after patch.

Testing

CI & qemu-armv7a & SMP armv7a board.

@jasonbu jasonbu force-pushed the backtrace branch 2 times, most recently from 27f7b71 to 9da7d30 Compare July 25, 2024 08:46
Copy link
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

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

please fill the commit message

when the thread to backtrace is exiting, get_tcb and up_backtrace in
different critical section may cause try to dump invalid pointer, have
to ensure the nxsched_get_tcb and up_backtrace inside same critical
section procedure.

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit f502102 into apache:master Jul 26, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants