{"action":"opened","issue":{"url":"https://api.github.com/repos/yyzybb537/libgo/issues/123","repository_url":"https://api.github.com/repos/yyzybb537/libgo","labels_url":"https://api.github.com/repos/yyzybb537/libgo/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/yyzybb537/libgo/issues/123/comments","events_url":"https://api.github.com/repos/yyzybb537/libgo/issues/123/events","html_url":"https://github.com/yyzybb537/libgo/issues/123","id":389169604,"node_id":"MDU6SXNzdWUzODkxNjk2MDQ=","number":123,"title":"3.0 版本编译","user":{"login":"ht101996","id":2375504,"node_id":"MDQ6VXNlcjIzNzU1MDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2375504?v=4","gravatar_id":"","url":"https://api.github.com/users/ht101996","html_url":"https://github.com/ht101996","followers_url":"https://api.github.com/users/ht101996/followers","following_url":"https://api.github.com/users/ht101996/following{/other_user}","gists_url":"https://api.github.com/users/ht101996/gists{/gist_id}","starred_url":"https://api.github.com/users/ht101996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ht101996/subscriptions","organizations_url":"https://api.github.com/users/ht101996/orgs","repos_url":"https://api.github.com/users/ht101996/repos","events_url":"https://api.github.com/users/ht101996/events{/privacy}","received_events_url":"https://api.github.com/users/ht101996/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-10T07:18:08Z","updated_at":"2018-12-10T07:18:08Z","closed_at":null,"author_association":"NONE","body":"libgo版本:\r\n3.0 分支\r\n\r\nboost 版本: 1.67.0\r\n\r\n系统环境:\r\ngcc: 4.8.3 \r\n\r\ncat /etc/*release*\r\nCentOS Linux release 7.3.1611 (Core) \r\nDerived from Red Hat Enterprise Linux 7.3 (Source)\r\nNAME=\"CentOS Linux\"\r\n\r\nCentOS Linux release 7.3.1611 (Core) \r\nCentOS Linux release 7.3.1611 (Core) \r\n\r\n编译条件: \r\ng++ -std=c++11 sample2_yield.cpp -I/home/huangtao/live-service/live-server/include/libgo -L/home/huangtao/live-service/live-server/libs -llibgo -L/usr/local/boost/lib/ -lboost_coroutine -lboost_context -lboost_thread -lboost_system -ldl -lpthread -static -static-libstdc++\r\n\r\n直接崩溃:\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x0000000000000000 in ?? ()\r\n(gdb) bt\r\n#0  0x0000000000000000 in ?? ()\r\n#1  0x0000000000415205 in staticInitialize () at /home/huangtao/libgo/libgo/common/config.cpp:34\r\n#2  co::LibgoInitialize () at /home/huangtao/libgo/libgo/common/config.cpp:41\r\n#3  0x000000000040b5de in co::Scheduler::Scheduler (this=0x783a00 <co::Scheduler::getInstance()::obj>) at /home/huangtao/libgo/libgo/scheduler/scheduler.cpp:30\r\n#4  0x00000000004027fb in main ()\r\n\r\n另外编译到底以来 libc 还是 pthread库呢？ 如果只依赖libc，编译会报: \r\n/home/huangtao/libgo/libgo/common/config.cpp:115: undefined reference to `pthread_self'\r\n\r\n"}}
{"actor":{"display_login":"ht101996"}}