yyzybb537 / libgo

Go-style concurrency in C++11
MIT License
3.22k stars 758 forks source link

asio+libgo+tcmalloc运行卡死在futex(0x7f288342dfa8, FUTEX_WAIT, 65792, NULL #211

Open MrZhu187 opened 5 years ago

MrZhu187 commented 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)