Skip to content

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

@ghost
Copy link

ghost commented Jul 15, 2021

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
@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

Development

Successfully merging this pull request may close these issues.

When assembly load tracing is enabled on Linux startup fails if System.Private.CoreLib is part of a composite R2R image

2 participants