Buffer overrun on unhandled exception in nativeaot
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
### Description
### Reproduction Steps
```sh
dotnet new console --aot
echo 'throw new Exception();' > Program.cs
dotnet publish -o out
out/*.exe
```
### Expected behavior
Regular crash dialog.
### Actual behavior
`The system detected an overrun of a stack-based buffer in this application. This overrun could potentially....`
### Regression?
yes
### Known Workarounds
_No response_
### Configuration
```
.NET SDK:
Version: 9.0.100-preview.5.24307.3
Commit: 35b2c21ea6
Workload version: 9.0.100-manifests.6407b7e4
MSBuild version: 17.11.0-preview-24279-02+b963c24ef
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
```
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.