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
A combination of how I build my statically linked application, and the vcpkg port of sentry-native (with SENTRY_BACKEND set to 'crashpad') causes this error to log when I attempt to initialize sentry (we are just trying it out atm):
[786206:786206:20211015,005853.690856:FATAL pthread_create_linux.cc:53] Check failed: next_pthread_create. dlsym: RTLD_NEXT used in code not dynamically loaded
When does the problem happen
During build
[x ] During run-time
When capturing a hard crash
Environment
Using portfile from vcpkg, configured with static linkages to the crt, and the runtime Port file
if(NOT VCPKG_TARGET_IS_OSX)
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP")
endif()
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/getsentry/sentry-native/releases/download/0.4.12/sentry-native.zip"
FILENAME "sentry-native-0.4.12.zip"
SHA512 15da4407ed5e2c8d5e56e497ccc6006b29235aef6b3a81e034c93443e20a7cfdf95d55e31b88e552c55e824eb15d6f7fafe988c453a5a6f36fe45136d7268b19
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
NO_REMOVE_ONE_LEVEL
PATCHES
fix-warningC5105.patch
fix-config-cmake.patch
use-zlib-target.patch
)
# Crashpad is the external form of a crash handler, reccomended for all platforms
# (vs breakpad which is in process)
set(SENTRY_BACKEND "crashpad")
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DSENTRY_BUILD_TESTS=OFF
-DSENTRY_BUILD_EXAMPLES=OFF
-DSENTRY_BACKEND=${SENTRY_BACKEND}
-DCRASHPAD_ZLIB_SYSTEM=ON
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sentry)
if (SENTRY_BACKEND STREQUAL "crashpad")
vcpkg_copy_tools(
TOOL_NAMES crashpad_handler
AUTO_CLEAN
)
endif()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
file(
INSTALL ${SOURCE_PATH}/LICENSE
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright
)
Description
A combination of how I build my statically linked application, and the vcpkg port of sentry-native (with SENTRY_BACKEND set to 'crashpad') causes this error to log when I attempt to initialize sentry (we are just trying it out atm):
When does the problem happen
Environment
Using portfile from vcpkg, configured with static linkages to the crt, and the runtime
Port file
Triplet
Ubuntu 21.04 x64 compiled with gcc-11.0.1:
Relevant compiler flags:
Relevant linker flags and libraries used with my application:
cmake version 3.21.3
Steps To Reproduce
No idea, first time trying to use sentry.
Log output
[sentry] INFO using database path ************************************
[sentry] DEBUG starting transport
[sentry] DEBUG starting background worker thread
[sentry] DEBUG starting backend
[sentry] DEBUG starting crashpad backend with handler /crashpad_handler"
[sentry] DEBUG background worker thread started
[sentry] DEBUG using minidump url ""
[823917:823917:20211015,011400.875686:FATAL pthread_create_linux.cc:53] Check failed: next_pthread_create. dlsym: RTLD_NEXT used in code not dynamically loaded
The text was updated successfully, but these errors were encountered: