Demo to get "Segmentation fault (core dumped)" when the binary is full static option -static is used by the linker
$ conan --version
$ pip conan
redis_integration_tes01$ ./run_build_debug.sh make
Read the next:
sewenew/redis-plus-plus#356 https://stackoverflow.com/questions/9002264/starting-a-stdthread-with-static-linking-causes-segmentation-fault
pthread cause segmenetation fault you mus add -Wl,--whole-archive pthread -Wl,--no-whole-archive
to the linker options
target_link_libraries( ${PROJECT_NAME} PRIVATE -Wl,--whole-archive pthread -Wl,--no-whole-archive PACKAGE_MANAGER_CONAN_LIBS )