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

Fix nested calls to Assembly Load Start tracing #55700

Merged
merged 4 commits into from
Jul 16, 2021

Conversation

davidwrighton
Copy link
Member

@davidwrighton davidwrighton commented Jul 15, 2021

The name_with_pid test ends up testing the behavior of event tracing in the presence of composite images.

In the presence of a composite image, it might happen attempting to send trace data may force an attempt to load System.Private.CoreLib thus causing an stackoverflow as attempting to report the load of System.Private.CoreLib will trigger a load of System.Private.CoreLib, etc. This fix steps around the issue by using a thread local variable to skip subsequent attempts to report the load of System.Private.CoreLib.

Fixes #55786

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@davidwrighton davidwrighton changed the title Add more logging and flushes to name_with_pid in hopes of understanding why it fails in CI Fix nested calls to Assembly Load Start tracing Jul 16, 2021
@davidwrighton davidwrighton marked this pull request as ready for review July 16, 2021 04:31
src/coreclr/binder/bindertracing.cpp Outdated Show resolved Hide resolved
@davidwrighton davidwrighton merged commit 719d565 into dotnet:main Jul 16, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 16, 2021
@davidwrighton davidwrighton deleted the name_with_pid_fix branch April 13, 2023 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants