Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.3] thread cleanup profiler bug 21441 #13672

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

Merged

Conversation

luke-gruber
Copy link
Contributor

We clear the CFP first so that if a sampling profiler interrupts the current thread during rb_ec_set_vm_stack, thread_profile_frames returns early instead of trying to walk the stack that's no longer set on the ec.

The early return in thread_profile_frames was introduced at eab7f46.

Fixes [Bug #21441]

We clear the CFP first so that if a sampling profiler interrupts the current thread during `rb_ec_set_vm_stack`,
`thread_profile_frames` returns early instead of trying to walk the stack that's no longer set on the ec.

The early return in `thread_profile_frames` was introduced at eab7f46.

Fixes [Bug #21441]
@hsbt hsbt added the Backport label Jun 25, 2025
@nagachika nagachika merged commit a52a2e8 into ruby:ruby_3_3 Jun 29, 2025
95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants