-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
net7.0 app crashes in ProfilerAddNewRegion after profiler attach #78831
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsHi! I faced with the following crash in .NET 7 app on Windows x64 after attaching the profiler:
Here is disasm of the 1st frame:
.NET 7.0.0
|
Tagging subscribers to this area: @dotnet/gc Issue DetailsHi! I faced with the following crash in .NET 7 app on Windows x64 after attaching the profiler:
Here is disasm of the 1st frame:
.NET 7.0.0, or latest public .NET SDK 7.0.200-preview.22571.16 (https://dotnetbuilds.azureedge.net/public/Sdk/7.0.200-preview.22571.16/dotnet-sdk-7.0.200-win-x64.zip)
|
Related change: #57101 |
I recently had the same issue with .NET 7.0:
|
How exactly are we attaching the profiler? I am unable to reproduce it by the following procedure:
With a properly constructed
I am suspecting we might be skipping the constructor because of this line.
Without an explicit initialization of this to It is trivial to add the explicit initialization there, but it would be really nice if I can repro the bug and validate that does fix the issue. |
@mangod9 I can reproduce this 10 out of 10 times. |
Can I expect that the fix will backported to .NET 7.0.1 ? Attach crashes are very painful for our customers. |
Could you please provide details on repro instructions so we can repro consistently and ensure the fix actually resolves it? |
@cshung @mangod9 Hi! Sorry, I cannot provide a simple repro, but I have built the runtime and got the following callstacks: The first access to the
Then, the second time it is accessed from a similar place:
And finally, the runtime calls
It looks like this fix #78841 resolves this issue, and now it works on my side. Please tell me if you need anything else. |
@cshung Thank you! |
Hi!
I faced with the following crash in .NET 7 app on Windows x64 after attaching the profiler:
Here is disasm of the 1st frame:
.NET 7.0.0, or latest public .NET SDK 7.0.200-preview.22571.16 (https://dotnetbuilds.azureedge.net/public/Sdk/7.0.200-preview.22571.16/dotnet-sdk-7.0.200-win-x64.zip)
Windows 10 21H2
The text was updated successfully, but these errors were encountered: