Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unhandled exception message is printed multiple times to console #115215

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

Open
jkotas opened this issue May 1, 2025 · 2 comments
Open

Unhandled exception message is printed multiple times to console #115215

jkotas opened this issue May 1, 2025 · 2 comments
Assignees
Labels
area-ExceptionHandling-coreclr untriaged New issue has not been triaged by the area owner

Comments

@jkotas
Copy link
Member

jkotas commented May 1, 2025

This is recent regression.

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
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label May 1, 2025
@jkotas jkotas added area-ExceptionHandling-coreclr and removed area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels May 1, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label May 1, 2025
@jkotas
Copy link
Member Author

jkotas commented May 1, 2025

cc @janvorli

@jkotas
Copy link
Member Author

jkotas commented May 1, 2025

Regression introduced by #113980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ExceptionHandling-coreclr untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants