Skip to content
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

.NET 9 Assembly.GetCallingAssembly() In certain situations, the program may crash. Exit code is -1073740791 #110261

Closed
gaoyang opened this issue Nov 29, 2024 · 2 comments

Comments

@gaoyang
Copy link

gaoyang commented Nov 29, 2024

Description

Currently, it is only found that executing the Assembly.GetCallingAssembly() function in the catch block when an exception occurs in building the regular expression will cause the program to crash. Exit code is -1073740791

MacOS did not encounter this issue.
.NET 8 did not encounter this issue.

Reproduction Steps

try
{
    var regex = new Regex("+123456$");
}
catch (Exception e)
{
    var callingAssembly = Assembly.GetCallingAssembly(); // Crash
}

Expected behavior

This simple operation theoretically should not cause a crash.

Actual behavior

Exit code is -1073740791

Regression?

No response

Known Workarounds

No response

Configuration

Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100\

Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9

Other information

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 29, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 29, 2024
@jkotas jkotas added area-VM-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 29, 2024
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@jkotas
Copy link
Member

jkotas commented Nov 29, 2024

Thank you for reporting this issue. It is duplicate of #109242 that is going to be fixed by #109530 in one of the upcoming .NET 9 servicing updates.

@jkotas jkotas closed this as completed Nov 29, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants