豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Why CrashRpt could not catch the Crash information for .NET Core? #55128

@diehell02

Description

@diehell02

I found a problem that a cpp crash catcher tool could not work on .NET Core.
It was work fine on .NET Framework.

I use C++/CLI to run our native lib, and when the crash occurs, CrashRpt will catch the crash info by Windows System Message.
But on .NET Core, the console will print the crash information, like this:

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
   at <Module>.NativeCppDemo.MyNativeCppTestClass.memberFunctionAddFunCrash(NativeCppDemo.MyNativeCppTestClass*, Int32, Int32, Boolean)
--------------------------------
   at ClrCrashTest.ClrTest.memberFunAddCrash(Int32, Int32, Boolean, Boolean)
   at DotNetLib.Lib.Hello(IntPtr, Int32)

And CrashRpt couldn't get the crash information.

Does it seem that the .NET Core runtime intercepts the crash information throw to the Windows system? If so, how could I disable this?

It's very important for us because if this problem could not be solved, we maybe need to downgrade to .NET Framework, it's a very terrible decision.

Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrbacklog-cleanup-candidateAn inactive issue that has been marked for automated closure.no-recent-activityquestionAnswer questions and provide assistance, not an issue with source code or documentation.tracking-external-issueThe issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions