Skip to content

[lldb] Restore missing call to ThreadPlanStack::SetTID #4996

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

Conversation

kastiglione
Copy link

@kastiglione kastiglione commented Jul 16, 2022

This call to ThreadPlanStack::SetTID seems to have been unintentionally deleted in #3172. This call sets the TID of all thread plans in the stack, and must be called before calling Activate.

This resulted in downstream misbehavior, one example of which is in ThreadPlanStackMap::Update where a base plan was being queued multiple times on to the same plan stack because the TID wasn't correct.

https://github.com/apple/llvm-project/blob/be3823b722c461f7c11f81601e33a3e53ea76565/lldb/source/Target/ThreadPlanStack.cpp#L418-L422

rdar://96534399
(cherry-picked from commit 24f4737)

Unintentionally deleted in #3172

(cherry-picked from commit 24f4737)
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione merged commit 3348866 into stable/20220421 Jul 16, 2022
@kastiglione kastiglione deleted the lldb-Restore-deleted-call-to-ThreadPlanStackMap-SetTID-stable-20220421 branch July 16, 2022 17:03
kastiglione added a commit that referenced this pull request Jul 19, 2022
This call to `ThreadPlanStack::SetTID` seems to have been unintentionally deleted in #3172. This call sets the TID of all thread plans in the stack, and must be called before calling `Activate`.

This resulted in downstream misbehavior, one example of which is in `ThreadPlanStackMap::Update` where a base plan was being queued multiple times on to the same plan stack because the TID wasn't correct.

https://github.com/apple/llvm-project/blob/be3823b722c461f7c11f81601e33a3e53ea76565/lldb/source/Target/ThreadPlanStack.cpp#L418-L422

rdar://96534399
(cherry-picked from commit 24f4737)

(cherry-picked from commit 3348866)
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.

1 participant