Open MrZhu187 opened 5 years ago
我这边有个网络服务器器的项目,是基于asio实现,动态链接了libgo之后(tcmalloc与libgo只能2选一),程序启动之后就卡死在futex。系统是centos7.4,gcc5.4,以下是我的CMAKE编译选项: set (CMAKE_CXX_FLAGS "-DSTDC_FORMAT_MACROS -std=gnu++14 -g -rdynamic -Werror -fPIC -Wformat=0 -Wno-literal-suffix -Wno-write-strings -fsigned-char -fshort-wchar -DLINUX"); target_link_libraries(gw_server libgo dl rt iconv ssl crypto snappy pthread tcmalloc)
我这边有个网络服务器器的项目,是基于asio实现,动态链接了libgo之后(tcmalloc与libgo只能2选一),程序启动之后就卡死在futex。系统是centos7.4,gcc5.4,以下是我的CMAKE编译选项: set (CMAKE_CXX_FLAGS "-DSTDC_FORMAT_MACROS -std=gnu++14 -g -rdynamic -Werror -fPIC -Wformat=0 -Wno-literal-suffix -Wno-write-strings -fsigned-char -fshort-wchar -DLINUX"); target_link_libraries(gw_server libgo dl rt iconv ssl crypto snappy pthread tcmalloc)