Comments (10)
我们这边没有win10的环境,该项目的CI环境就是实际的ubuntu环境,测试一直是没有问题的。
请单独单独运行 evpp_unittest ,然后把错误情况和coredump堆栈信息贴出来。我们看看能否找到问题
from evpp.
没有win10说不过去吧,借用公司前台的呢?
几分钟可以安装好win10的linux: http://www.linuxdiyf.com/linux/22408.html
from evpp.
还请帮忙单独运行 evpp_unittest ,然后把错误情况和coredump堆栈信息贴出来。我们看看能否找到问题。如果找不到问题,我们再想办法搞一台测试机。谢谢啦
from evpp.
单独运行的后面部分:
[ OK ] GtestObjectClass_testTCPClientReconnect.testTCPClientReconnect (8244 ms)
[----------] 1 test from GtestObjectClass_testTCPClientReconnect (8244 ms total)
[----------] 1 test from GtestObjectClass_testTCPClientConnectFailed
[ RUN ] GtestObjectClass_testTCPClientConnectFailed.testTCPClientConnectFailed
I0704 11:30:22.717173 8866 event_loop.cc:11] evpp::EventLoop::EventLoop() this=0xc83580
I0704 11:30:22.719177 8866 event_loop.cc:56] void evpp::EventLoop::Init() this=0xc83580
I0704 11:30:22.719177 8866 tcp_client.cc:19] evpp::TCPClient::TCPClient(evpp::EventLoop*, const string&, const string&) this=0xc7e700 remote addr=127.0.0.1:39723
I0704 11:30:22.720177 8866 tcp_client.cc:49] remote_addr=127.0.0.1:39723
I0704 11:30:22.720177 8866 event_loop.cc:202] void evpp::EventLoop::RunInLoop(evpp::EventLoop::Functor&&) this=0xc83580
I0704 11:30:22.720177 8866 event_loop.cc:254] void evpp::EventLoop::QueueInLoop(evpp::EventLoop::Functor&&) this=0xc83580 pending_functor_count_=0 PendingQueueSize=0 notified_=0
I0704 11:30:22.720177 8866 event_loop.cc:269] void evpp::EventLoop::QueueInLoop(evpp::EventLoop::Functor&&) this=0xc83580 queued a new Functor. pending_functor_count_=1 PendingQueueSize=1 notified_=0
I0704 11:30:22.720177 8866 event_loop.cc:271] void evpp::EventLoop::QueueInLoop(evpp::EventLoop::Functor&&) this=0xc83580 call watcher_->Nofity() notified_.store(true)
I0704 11:30:22.721179 8866 event_loop.cc:81] void evpp::EventLoop::Run() this=0xc83580
I0704 11:30:22.721179 8866 inner_pre.cc:53] event_add ev=0xc83a50 fd=10 user_ptr=0xc83f90 tid=140701353707392
I0704 11:30:22.721179 8866 event_loop.cc:285] void evpp::EventLoop::DoPendingFunctors() this=0xc83580 pending_functor_count_=1 PendingQueueSize=1 notified_=1
I0704 11:30:22.721179 8866 event_loop.cc:308] void evpp::EventLoop::DoPendingFunctors() this=0xc83580 pending_functor_count_=1 PendingQueueSize=0 notified_=0
I0704 11:30:22.721179 8866 event_loop.cc:310] void evpp::EventLoop::DoPendingFunctors() this=0xc83580 pending_functor_count_=1 PendingQueueSize=0 notified_=0
I0704 11:30:22.721179 8866 connector.cc:18] evpp::Connector::Connector(evpp::EventLoop*, evpp::TCPClient*) this=0xc860c0 raddr=127.0.0.1:39723
I0704 11:30:22.722178 8866 connector.cc:46] void evpp::Connector::Start() this=0xc860c0 Try to connect 127.0.0.1:39723 status=kDisconnected
I0704 11:30:22.722178 8866 inner_pre.cc:53] event_add ev=0xc862f0 fd=-1 user_ptr=0xc86280 tid=140701353707392
I0704 11:30:22.722178 8866 connector.cc:91] void evpp::Connector::Connect() this=0xc860c0 127.0.0.1:39723 status=kDisconnected
E0704 11:30:22.722178 8866 sockets.cc:287] setsockopt(SO_REUSEPORT) failed, errno=22 Invalid argument
I0704 11:30:23.723294 8866 connector.cc:165] void evpp::Connector::HandleError() this=0xc860c0 127.0.0.1:39723 status=kDisconnected
E0704 11:30:23.723294 8866 connector.cc:174] this=0xc860c0 status=kDisconnected fd=11 use_count=3 errno=111 Connection refused
I0704 11:30:23.723294 8866 inner_pre.cc:75] event_del ev=0xc862f0 fd=-1 user_ptr=0xc86280 tid=140701353707392
I0704 11:30:23.723294 8866 tcp_client.cc:103] void evpp::TCPClient::OnConnection(int, const string&) this=0xc7e700 Failed to connect to 127.0.0.1:39723. errno=111 Connection refused
I0704 11:30:23.723294 8866 tcp_conn.cc:32] evpp::TCPConn::TCPConn(evpp::EventLoop*, const string&, int, const string&, const string&, uint64_t) this=0xc80160 TCPConn::[] channel=0 fd=-1 addr=(127.0.0.1:39723->(local))
I0704 11:30:23.723294 8866 tcp_client.cc:60] void evpp::TCPClient::Disconnect() this=0xc7e700
I0704 11:30:23.723294 8866 event_loop.cc:202] void evpp::EventLoop::RunInLoop(evpp::EventLoop::Functor&&) this=0xc83580
W0704 11:30:23.724295 8866 tcp_client.cc:65] TCPClient::DisconnectInLoop this=0xc7e700 remote_addr=127.0.0.1:39723
I0704 11:30:23.724295 8866 tcp_client.cc:79] void evpp::TCPClient::DisconnectInLoop() this=0xc7e700 Nothing to do with connector_, Connector::status=0
I0704 11:30:23.725311 8866 event_loop.cc:110] void evpp::EventLoop::Stop() this=0xc83580
I0704 11:30:23.725311 8866 event_loop.cc:113] void evpp::EventLoop::Stop() this=0xc83580 EventLoop::Stop
I0704 11:30:23.725311 8866 event_loop.cc:254] void evpp::EventLoop::QueueInLoop(evpp::EventLoop::Functor&&) this=0xc83580 pending_functor_count_=1 PendingQueueSize=0 notified_=0
I0704 11:30:23.725311 8866 event_loop.cc:269] void evpp::EventLoop::QueueInLoop(evpp::EventLoop::Functor&&) this=0xc83580 queued a new Functor. pending_functor_count_=2 PendingQueueSize=1 notified_=0
I0704 11:30:23.725311 8866 event_loop.cc:271] void evpp::EventLoop::QueueInLoop(evpp::EventLoop::Functor&&) this=0xc83580 call watcher_->Nofity() notified_.store(true)
I0704 11:30:23.725311 8866 tcp_conn.cc:36] evpp::TCPConn::~TCPConn() this=0xc80160 name= channel=0 fd=-1 type=0 status=kDisconnected addr=(127.0.0.1:39723->(local))
I0704 11:30:23.726307 8866 connector.cc:25] evpp::Connector::~Connector() this=0xc860c0
Segmentation fault (core dumped)
from evpp.
core dump 堆栈信息有么?
from evpp.
这个linux生成不了core文件,没找到
from evpp.
好的。我们先看上面的日志信息
from evpp.
我自己终于搞了一台win10的开发环境,安装好ubuntu子系统后,编译运行make test
一切正常,也许是最近有代码更新。请帮忙抽空看看,你们那边用最新的代码再试试是否还有问题。
谢谢~
from evpp.
@bigtang5 有更新的进展么?
from evpp.
./evpp_unittest_boost_lockfree
Segmentation fault (core dumped)
from evpp.
Related Issues (20)
- Bug in example UDP echo server
- whether evpp::TCPConnPtr is thread safe or not?
- MFC程序下 eventloop直接报错
- 有实现SSL TCP通信的吗
- EventLoop.Run函数底层会创建很多线程嘛 HOT 1
- Evpp failed to build with error LNK1181 on MSVC
- is this project still active? HOT 1
- example_evpphttp_server, server not init HOT 1
- The echo UDP server example does not compile against package installed by vcpkg. HOT 3
- evpp支持同时监听ipv6和ipv4吗?支持的话如何开启?
- Potential memory leak in benchmark/throughput/libevent/client.c
- Potential memory leak in benchmark/throughput/libevent/server.c
- Potential memory leak in benchmark/http/libevent/libevent_http_bench.c
- Potential memory leak in benchmark/throughput/libevent/client.c
- Potential memory leak in benchmark/throughput/libevent/server.c
- Potential memory leak in benchmark/http/libevent/libevent_http_bench.c
- Potential memory leak in apps/evmc/extract_vbucket_conf.cc HOT 1
- Potential memory leak in test/evhttp_client_test.cc HOT 1
- ASan heap-use-after-free in tcpserver tests
- TCPServer 的 thread_num 有什么作用 ? ,为什么要建立多个 EventLoopThreadPool ? 1 和 4 有什么区别吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evpp.