-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
NativeAOT createdump fork/exec for crash dump generation #89203
Conversation
74cafcf
to
4222f5a
Compare
src/coreclr/nativeaot/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs
Outdated
Show resolved
Hide resolved
e71e894
to
82b5fe2
Compare
Port the .NET Core createdump fork/exec code to NativeAOT. Add src/native/inc/generatedumpflags.h. Remove dup definitions of this enum. Move and port clrconfignocache.h from src/coreclr/inc to src/native/inc/.
Fix some build problems.
Add PalCreateDump.h with all the public functions.
…dows. The next step is to pass the address of it to createdump.
Contains the exception record address for Native AOT crashes.
82b5fe2
to
9c88787
Compare
This is ready for the final review. Push the last changes (other than more review feedback). |
ping |
I would like someone from the Native AOT team to make sure everything is ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you!
src/coreclr/nativeaot/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs
Show resolved
Hide resolved
@@ -22,6 +22,7 @@ CrashInfo::CrashInfo(const CreateDumpOptions& options) : | |||
m_gatherFrames(options.CrashReport), | |||
m_crashThread(options.CrashThread), | |||
m_signal(options.Signal), | |||
m_exceptionRecord(options.ExceptionRecord), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this should be m_exceptionRecordAddr
Port the .NET Core createdump fork/exec code to NativeAOT.
Add src/native/inc/generatedumpflags.h. Remove dup definitions of this enum.
Move and port clrconfignocache.h from src/coreclr/inc to src/native/inc (added the "inc" directory to native).
Is the clrconfignocache.h ok in src/native/inc? It being C++ code.
Should I move PalCreateDump.cpp from the src/coreclr/native/Runtime dir to src/native and do the work now in the .NET Core PAL to use this (mostly) common code?