dotnet / dotnet/runtime

AsyncV1 NAOT stacktrace noise

Open
#129,155 0 comments 0 reactions 1 assignee Claimed by @rcj1 View on GitHub
area-Diagnostics-coreclr
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

For the following app compiled with runtime-async off
```csharp
public class Program
{
public static async Task Main()
{
throw new Exception("exception from Main");
}
}
```

The CoreCLR stack trace is as follows:
```
Unhandled exception. System.Exception: exception from Main
at Program.()
```

And the NAOT stack trace is as follows:
```
Unhandled exception. System.Exception: exception from Main
at Program.d__0.MoveNext()
--- End of stack trace from previous location ---
at Program.()
```
Note especially the extraneous `--- End of stack trace from previous location ---`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.