Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link

Description

@gaoyang
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.