evpp icon indicating copy to clipboard operation
evpp copied to clipboard

编译生成通过,执行http_server的例子会直接崩溃

Open tiantianaixuexi opened this issue 3 years ago • 3 comments

WARNING: Logging before InitGoogleLogging() is written to STDERR I20200717 01:47:50.770982 30589 inner_pre.cc:27] ignore SIGPIPE I20200717 01:47:50.771243 30589 tcp_server.cc:47] bool evpp::TCPServer::Start() this=0 Segmentation fault (core dumped)

libevnet 使用的是2.1.12版本,openssl使用的是3.0.0版本。

image

tiantianaixuexi avatar Jul 16 '20 18:07 tiantianaixuexi

i hava this problem too!!!!

unixstudio avatar Dec 28 '20 14:12 unixstudio

我的http_server例子也崩溃了,在 event loop中 是因为socket创建失败导致。

没有调用WSAStartup 加上后,我环境上就可以运行了

WSADATA wsaData; WORD wVersionRequested = MAKEWORD(2, 2); int err = WSAStartup(wVersionRequested, &wsaData); if (0 != err) { return 0; } .... http_server example

zongxingxi avatar Jan 05 '21 12:01 zongxingxi

同样出现这个问题,evutil_ersatz_socketpair_函数中的socket函数调用失败。 根据楼上的方法解决了。

fjqisba avatar Sep 06 '21 06:09 fjqisba