-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Cant load non US resources in netcoreapp2.0 #8503
Comments
cc @tarekgh Looks like dup of https://github.com/dotnet/corefx/issues/21095 |
@SimonCropp this looks same issue we fixed which @jkotas pointed at dotnet/corefx#21095. could you please try the latest netcoreapp package and let's know if the problem still there or not? https://www.nuget.org/packages/Microsoft.NETCore.App/2.0.0-preview2-25407-01 Also if you have sample project you can share, we can validate that too. Thanks. |
I'm seeing the same behavior using preview2-25407-01 using "de-DE" culture |
@timbussmann could you please share small project repro the issue so we can investigate it? also tell us what OS you are using and which version. Thanks. |
@tarekgh I have a repro sample using NServiceBus. I haven't been able to isolate the issue further yet but I simplified my sample as much as possible. I'll try to see whether I can isolate a repro without using NServiceBus on Monday. Here's the repository with the repro: https://github.com/timbussmann/Repro |
Thanks @timbussmann Which OS version you are running on? and what is your culture settings? I mean, are you running on de-DE machine? |
@tarekgh I'm running on Windows 10 build 14393.1480. I'm using the de-CH region settings. This results in |
@timbussmann I can repro it with your project. thanks for sharing that. |
@kouvel is going to look at fixing this issue. I have a simple repro now too. |
Part of fix for #12668: - CoreLib resource lookup should not raise the AssemblyResolve event because a misbehaving handler could cause an infinite recursion check and fail-fast to be triggered when the resource is not found, as the issue would repeat when reporting that error - A handler could misbehave by returning an assembly that does not match the requested identity or by throwing
Part of fix for #12668: - CoreLib resource lookup should not raise the AssemblyResolve event because a misbehaving handler could cause an infinite recursion check and fail-fast to be triggered when the resource is not found, as the issue would repeat when reporting that error - A handler could misbehave by returning an assembly that does not match the requested identity or by throwing
Part of fix for #12668: - CoreLib resource lookup should not raise the AssemblyResolve event because a misbehaving handler could cause an infinite recursion check and fail-fast to be triggered when the resource is not found, as the issue would repeat when reporting that error - A handler could misbehave by returning an assembly that does not match the requested identity or by throwing
* Don't call AssemblyResolve event for CoreLib resources Part of fix for #12668: - CoreLib resource lookup should not raise the AssemblyResolve event because a misbehaving handler could cause an infinite recursion check and fail-fast to be triggered when the resource is not found, as the issue would repeat when reporting that error - A handler could misbehave by returning an assembly that does not match the requested identity or by throwing * Address feedback
* Don't call AssemblyResolve event for CoreLib resources Part of fix for #12668: - CoreLib resource lookup should not raise the AssemblyResolve event because a misbehaving handler could cause an infinite recursion check and fail-fast to be triggered when the resource is not found, as the issue would repeat when reporting that error - A handler could misbehave by returning an assembly that does not match the requested identity or by throwing * Address feedback
Don't call AssemblyResolve event for CoreLib resources Part of fix for #12668: - CoreLib resource lookup should not raise the AssemblyResolve event because a misbehaving handler could cause an infinite recursion check and fail-fast to be triggered when the resource is not found, as the issue would repeat when reporting that error - A handler could misbehave by returning an assembly that does not match the requested identity or by throwing
@tarekgh was it fixed in 2.0.0, or do we need to make more changes in servicing? |
This should be fixed in the 2.0.0 branch now, it wasn't auto-closed by dotnet/corefx#22553 for some reason. Going ahead and closing. |
…rlib resource lookup (#573) Modifies the AssemblyResolve event handler in the Datadog.Trace.ClrProfiler.Managed.Loader assembly to eagerly exit if the requested assembly is `mscorlib.resources` or `System.Private.CoreLib.resources` on .NET Framework and .NET Core, respectively. This fixes a known issue where on a non-US locale, a lookup of an `mscorlib` resource invokes the AssemblyResolve event and our event handler causes infinite recursion and the .NET application to crash. This occurred because, in processing the event, the event handler would make a method call to `File.Exists`, which triggers yet another AssemblyResolve event for `mscorlib` and the cycle continues. Even though this has only been demonstrated to occur on .NET Framework and should not occur on .NET Core 2.0+ (see https://github.com/dotnet/coreclr/issues/12668), proactively guard against AssemblyResolve events for `System.Private.CoreLib.resources` as well.
When i run i get the following exception
If i hack it back to US Culture it runs fine
The text was updated successfully, but these errors were encountered: