Skip to content

Conversation

@mikem8361
Copy link
Contributor

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?

Mike McLaughlin added 12 commits July 26, 2023 09:45
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/.
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.
@mikem8361 mikem8361 requested a review from hoyosjs July 26, 2023 21:33
@mikem8361
Copy link
Contributor Author

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

@mikem8361
Copy link
Contributor Author

ping

@mikem8361
Copy link
Contributor 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!

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.