File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
profiler/src/ProfilerEngine/Datadog.Profiler.Native.Linux Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1- SET (LIBUNWIND_VERSION "v1.8.1-custom-2 " )
1+ SET (LIBUNWIND_VERSION "v1.8.1-custom-3 " )
22
33SET (LIBUNWIND_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /libunwind-prefix/src/libunwind-build)
44
55ExternalProject_Add (libunwind
66 GIT_REPOSITORY https://github.com/DataDog/libunwind.git
7- GIT_TAG kevin /v1.8.1-custom-2
7+ GIT_TAG gleocadie /v1.8.1-custom-3
88 GIT_PROGRESS true
99 INSTALL_COMMAND ""
1010 UPDATE_COMMAND ""
Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ bool LibrariesInfoCache::StartImpl()
6161 // Note: unw_set_iterate_phdr_function will call tdep_init() if needed,
6262 // which has once-initialization semantics, so this is thread-safe.
6363 unw_set_iterate_phdr_function (unw_local_addr_space, LibrariesInfoCache::DlIteratePhdr);
64+ auto fn = unw_get_iterate_phdr_function (unw_local_addr_space);
65+ if (fn != LibrariesInfoCache::DlIteratePhdr)
66+ {
67+ Log::Error (" Failed to register custom iterate_phdr_function with libunwind." );
68+ return false ;
69+ }
6470
6571 // CRITICAL: Force a memory barrier to ensure the write to iterate_phdr_function
6672 // is visible to all CPU cores. libunwind's unw_set_iterate_phdr_function does
You can’t perform that action at this time.
0 commit comments