You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unhandled exception message is printed multiple times to console #115215
C:\repro>type Program.cs
using System.Runtime.CompilerServices;
class Test
{
static void Main()
{
M(null);
}
[UnsafeAccessor(UnsafeAccessorKind.Method, Name = "DoesNotExist")]
static extern void M(Test dummy);
}
C:\repro>dotnet run
Determining projects to restore...
All projects are up-to-date for restore.
C:\net10p5\sdk\10.0.100-preview.5.25224.4\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targe
ts(326,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\r
epro\repro.csproj]
repro -> C:\repro\bin\Debug\net10.0\repro.dll
Unhandled exception. System.MissingMethodException: Method not found: 'Test.DoesNotExist'.
at Test.M(Test dummy)
at Test.Main() in C:\repro\Program.cs:line 8
Unhandled exception. System.MissingMethodException: Method not found: 'Test.DoesNotExist'.
at Test.M(Test dummy)
at Test.Main() in C:\repro\Program.cs:line 8
at Test.M(Test dummy)
at Test.Main() in C:\repro\Program.cs:line 8
C:\repro>dotnet --version
10.0.100-preview.5.25224.4
Activity
ghost added
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Activity
jkotas commentedon May 1, 2025
cc @janvorli
jkotas commentedon May 1, 2025
Regression introduced by #113980
Fix unhandled exception reporting corner cases
Fix unhandled exception reporting corner cases (dotnet#118450)