You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
coreclr build fails when specifying cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE #2014
@mikem8361 looks like this comes from our work in ARM unwinding (b61cc2f). Looks like _OOP_find_proc_info was added directly to libunwind. However this function only gets build then:
The easiest solution would be to hoist such logic into another statically linkable asset, but if memory serves he right we use types that are not available in the public libunwind surface area.
@dseefeld is this for sourcebuild? What's the impact if so? Or is this more around serviceability or the ability to build like that?
@hoyosjs Yes. This is for sourcebuild. The impact is that RedHat has requested that we use the local system's libunwind for portable builds. See dotnet/source-build#391 The OS that I'm using to build this is CentOS.
libunwind/libunwind#187 is starting the process of adding _OOP_find_proc_info to libunwind, but it is unlikely to make it into system version of libunwind for a while. It would need to wait at least to the 1.6 release. (1.5 isn't released yet).
Since this is only needed for the DAC unwind, the solution maybe to either:
Disable the the DAC Out of Process unwind feature.
> • Disable the the DAC Out of Process unwind feature.
This breaks a lot of stack traces that have HelpMethodFrames (fairly common), but it is limited to dotnet-dump/CLRMD on coredumps. Live managed debugging and live SOS debugging under lldb will work fine.
> • Use the local libunwind source for DAC only.
This still breaks the source build because the DAC is still built along with the rest of the runtime. But maybe our source build customers would like it slide (RHEL).
I guess the third option would be to revert part of #26082 (to keep our custom oop code) when CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE until libunwind/libunwind#187 is released and available to RHEL.
Until @sdmaclea 's libunwind PR gets merged and becomes available, the least work is to use the packed libunwind.
We can look at backporting the PR for distros we care about.
We should keep this issue open to get CLR_CMAKE_USE_SYSTEM_LIBUNWIND=true back in a working state.
@omajid are you ok with using the packed libunwind until the feature is available as part of system libunwind?
We can consider backporting it once the feature is merged upstream.
#39213 restored some of the code which was removed in #26082. It makes it simpler to fix this issue more directly. @mikem8361 has been considering an approach like this...
Now that PR #39213 is in I was planning to add the rest of the necessary code and build stuff in the next month. It missed today's preview8 snap but it be done in the next week or two.
@omajid are you ok with using the packed libunwind until the feature is available as part of system libunwind? We can consider backporting it once the feature is merged upstream.
Yes, we can use the bundled libunwind until the features are available upstream.
Activity
hoyosjs commentedon Jan 22, 2020
What system/OS is this?
hoyosjs commentedon Jan 22, 2020
@mikem8361 looks like this comes from our work in ARM unwinding (b61cc2f). Looks like
_OOP_find_proc_infowas added directly to libunwind. However this function only gets build then:runtime/src/coreclr/src/pal/src/CMakeLists.txt
Line 16 in 696e72b
@dseefeld is this for sourcebuild? What's the impact if so? Or is this more around serviceability or the ability to build like that?
dseefeld commentedon Jan 22, 2020
@hoyosjs Yes. This is for sourcebuild. The impact is that RedHat has requested that we use the local system's libunwind for portable builds. See dotnet/source-build#391 The OS that I'm using to build this is CentOS.
sdmaclea commentedon Jun 18, 2020
libunwind/libunwind#187 is starting the process of adding
_OOP_find_proc_infoto libunwind, but it is unlikely to make it into system version of libunwind for a while. It would need to wait at least to the 1.6 release. (1.5 isn't released yet).Since this is only needed for the DAC unwind, the solution maybe to either:
mikem8361 commentedon Jun 18, 2020
sdmaclea commentedon Jun 19, 2020
I guess the third option would be to revert part of #26082 (to keep our custom oop code) when
CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUEuntil libunwind/libunwind#187 is released and available to RHEL.omajid commentedon Jun 24, 2020
cc @tmds
3 remaining items
tmds commentedon Jul 1, 2020
Until @sdmaclea 's libunwind PR gets merged and becomes available, the least work is to use the packed libunwind.
We can look at backporting the PR for distros we care about.
We should keep this issue open to get
CLR_CMAKE_USE_SYSTEM_LIBUNWIND=trueback in a working state.@omajid wdyt?
tmds commentedon Jul 15, 2020
@sdmaclea are you still actively pursuing libunwind/libunwind#187?
@omajid are you ok with using the packed libunwind until the feature is available as part of system libunwind?
We can consider backporting it once the feature is merged upstream.
sdmaclea commentedon Jul 15, 2020
I have been working on other issues. I can probably look at libunwind/libunwind#187 later this week.
sdmaclea commentedon Jul 15, 2020
#39213 restored some of the code which was removed in #26082. It makes it simpler to fix this issue more directly. @mikem8361 has been considering an approach like this...
mikem8361 commentedon Jul 15, 2020
Now that PR #39213 is in I was planning to add the rest of the necessary code and build stuff in the next month. It missed today's preview8 snap but it be done in the next week or two.
mikem8361 commentedon Jul 15, 2020
I have this coded up and I'm testing.
omajid commentedon Jul 15, 2020
Yes, we can use the bundled libunwind until the features are available upstream.
Fix source build (CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE)
Fix source build (CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE) (#39391)
Fix source build (CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE)
Fix source build (CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE) (#39417)