Repository navigation
Move remote-unwind out of the PAL into createdump - #137188
Conversation
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag |
|
cc @jkotas Note that since HMF ( |
There was a problem hiding this comment.
🔵 Needs a closer look
The libunwind linkage changes require Linux and macOS dump-generation and stack-unwinding validation with bundled and system libunwind, including static single-file hosts, but that validation was unavailable in this review environment.
No open issues 🎉
What changed in this PR
Moves remote stack unwinding from CoreCLR’s Platform Abstraction Layer (PAL) into createdump, placing the implementation and its libunwind dependencies alongside the dump-generation code that uses them.
Changes:
- Relocates remote-unwind functions and declarations into
createdumpand updates callers. - Moves libunwind feature checks and linking into the
createdumpbuild. - Removes obsolete PAL/DAC dependencies, Windows-hosted remote-unwind build support, and the bundled compact-unwind header.
| File | Description |
|---|---|
src/native/external/libunwind.cmake |
Removes Windows-hosted remote-unwind source selection. |
src/native/external/libunwind_extras/configure.cmake |
Removes Windows compatibility configuration. |
src/native/external/libunwind_extras/CMakeLists.txt |
Removes Windows-specific setup and the libunwind_xdac target. |
src/native/corehost/apphost/static/CMakeLists.txt |
Removes the coreclrpal_dac dependency. |
src/coreclr/pal/src/exception/compact_unwind_encoding.h |
Deletes the bundled header in favor of the Apple SDK header. |
src/coreclr/pal/src/configure.cmake |
Removes remote-unwind feature checks from PAL configuration. |
src/coreclr/pal/src/config.h.in |
Removes PAL remote-unwind feature macros. |
src/coreclr/pal/src/CMakeLists.txt |
Removes the coreclrpal_dac library target. |
src/coreclr/pal/inc/pal.h |
Removes remote-unwind declarations from the PAL interface. |
src/coreclr/dlls/mscordac/mscordac_unixexports.src |
Removes remote-unwind exports. |
src/coreclr/dlls/mscordac/CMakeLists.txt |
Removes remote-unwind library dependencies from DAC. |
src/coreclr/debug/createdump/threadinfo.cpp |
Calls the relocated native-unwind function. |
src/coreclr/debug/createdump/remoteunwind.cpp |
Adapts the relocated implementation to createdump. |
src/coreclr/debug/createdump/createdump.h |
Declares remote-unwind functions and their memory callback. |
src/coreclr/debug/createdump/crashinfounix.cpp |
Updates unwind-info calls and related diagnostics. |
src/coreclr/debug/createdump/crashinfo.cpp |
Updates a comment to the relocated function’s name. |
src/coreclr/debug/createdump/configure.cmake |
Adds remote-unwind capability checks. |
src/coreclr/debug/createdump/config.h.in |
Adds remote-unwind feature macros. |
src/coreclr/debug/createdump/CMakeLists.txt |
Compiles remote unwinding and configures libunwind dependencies directly. |
src/coreclr/CMakeLists.txt |
Removes Windows-to-Unix libunwind subdirectory setup. |
eng/native/tryrun.browser.cmake |
Removes unused remote-unwind cache entries. |
Review effort: Balanced
Co-authored-by: Cursor <cursoragent@cursor.com>
Only probe the system libunwind for unw_get_accessors and unw_get_proc_info_in_range; the bundled one, which createdump always uses on Apple, has both. Co-authored-by: Cursor <cursoragent@cursor.com>
|
/ba-g dead letter |
No description provided.