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

NativeAOT createdump fork/exec for crash dump generation #89203

Merged
merged 15 commits into from
Jul 28, 2023

Conversation

mikem8361
Copy link
Member

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?

Contains the exception record address for Native AOT crashes.
@mikem8361
Copy link
Member Author

This is ready for the final review. Push the last changes (other than more review feedback).

@mikem8361
Copy link
Member Author

ping

@mikem8361
Copy link
Member Author

I would like someone from the Native AOT team to make sure everything is ok.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@@ -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),
Copy link
Member

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

@mikem8361 mikem8361 merged commit 8ae79d2 into dotnet:main Jul 28, 2023
@mikem8361 mikem8361 deleted the createdumpexec branch July 28, 2023 01:58
@ghost ghost locked as resolved and limited conversation to collaborators Aug 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants