-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[.NET6 fix port] AccessViolationException with PublishSingleFile #81181
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
I don't seem to be able to add a label but it should probably be labeled as |
Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov Issue DetailsDescriptionI am requesting a port of the fix for issue #62145 from PR #74389 for .NET 6 since it is the LTS release. I confirmed that changing from .NET 6 to .NET 7 fixes the problem in a test application but cannot migrate all applications to .NET 7 at this time. This bug is impacting me specifically when using the New Relic Agent in Docker when targeting .NET 6 and using the .NET 6 runtime image (mcr.microsoft.com/dotnet/runtime:6.0) but goes away when targeting .NET 7 and using the .NET 7 runtime image (mcr.microsoft.com/dotnet/runtime:7.0). When running containers in the 6.0 configuration it will sporadically throw the AccessViolationException (about 1-2% of the time) but never on the 7.0 configuration. Reproduction StepsI copied the reproduction example from the previous issue and tested it in both .NET 6 and .NET 7 by just changing the TargetFramework from
Expected behaviorNo AccessViolationException thrown Actual behaviorAccessViolationException is thrown Regression?No response Known WorkaroundsUpgrade to .NET 7 ConfigurationProject file:
Other informationNew Relic issue related to this: link
|
Thanks, @VSadov for working on this so quickly! I really appreciate all the hard work from you and your team! |
Fixed by #81238 |
Description
I am requesting a port of the fix for issue #62145 from PR #74389 for .NET 6 since it is the LTS release. I confirmed that changing from .NET 6 to .NET 7 fixes the problem in a test application but cannot migrate all applications to .NET 7 at this time.
This bug is impacting me specifically when using the New Relic Agent in Docker when targeting .NET 6 and using the .NET 6 runtime image (mcr.microsoft.com/dotnet/runtime:6.0) but goes away when targeting .NET 7 and using the .NET 7 runtime image (mcr.microsoft.com/dotnet/runtime:7.0). When running containers in the 6.0 configuration it will sporadically throw the AccessViolationException (about 1-2% of the time) but never on the 7.0 configuration.
Reproduction Steps
I copied the reproduction example from the previous issue and tested it in both .NET 6 and .NET 7 by just changing the TargetFramework from
net6.0
tonet7.0
and was able to reproduce the issue only in .NET 6 using the most recent (6.0.13) runtime with the fix working in .NET 7.Expected behavior
No AccessViolationException thrown
Actual behavior
AccessViolationException is thrown
Regression?
No response
Known Workarounds
Upgrade to .NET 7
Configuration
Project file:
Other information
New Relic issue related to this: link
Original dotnet issue: link
Original PR for .NET 7: link
The text was updated successfully, but these errors were encountered: