fix(profiling): fix invalid lookups for asyncio frames#17057
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intoMar 23, 2026
Merged
Conversation
|
Bits Dev status: ✅ Done Comment @DataDog to request changes |
Contributor
|
I can only run on private repositories. |
Codeowners resolved as |
Co-authored-by: KowalskiThomas <14239160+KowalskiThomas@users.noreply.github.com>
c9048a0 to
e0824b9
Compare
taegyunkim
approved these changes
Mar 23, 2026
Contributor
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This fixes a rare crash in the asyncio / uvloop sampling logic which could happen due to unwrapping a
Resultthat was notok.I am planning to add a build option to the Profiler which will allow to add additional debug logging (something like
PROFILING_DEBUGor something, like @taegyunkim added formemallocwith re-entry assertions). Under this condition, we could print orassertwhen that happens since I don't really think we expect those cases to ever happen... so it'd be helpful for debugging. (But not in this PR!)Crash telemetry: ~58 crashes observed on v4.6.0 over the past 7 days, with the top crash signature being
is_uvloop_wrapper_frame / ThreadInfo::unwind_tasks / ThreadInfo::sample / sampling_thread.