Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIN10系统的Linux subststem, make test全部失败 #52

Open
bigtang5 opened this issue Jul 3, 2017 · 10 comments
Open

WIN10系统的Linux subststem, make test全部失败 #52

bigtang5 opened this issue Jul 3, 2017 · 10 comments

Comments

@bigtang5
Copy link

bigtang5 commented Jul 3, 2017

WIN10系统的Linux subststem,是一个很完善的ubuntu,
严格按照quick start的指导走,到make test这一步:

~/evpp/build$ make test
Running tests...
Test project /home/tap/evpp/build
Start 1: evpp_unittest
1/3 Test #1: evpp_unittest ....................***Exception: SegFault 64.22 sec
Start 2: evpp_unittest_concurrentqueue
2/3 Test #2: evpp_unittest_concurrentqueue ....***Exception: SegFault 64.40 sec
Start 3: evpp_unittest_boost_lockfree
3/3 Test #3: evpp_unittest_boost_lockfree .....***Exception: SegFault 44.40 sec

0% tests passed, 3 tests failed out of 3

Total Test time (real) = 173.15 sec

The following tests FAILED:
1 - evpp_unittest (SEGFAULT)
2 - evpp_unittest_concurrentqueue (SEGFAULT)
3 - evpp_unittest_boost_lockfree (SEGFAULT)
Errors while running CTest
make: *** [test] Error 8

建议在win10的linux测试下,我已在2台机器重现。

@zieckey
Copy link
Collaborator

zieckey commented Jul 4, 2017

我们这边没有win10的环境,该项目的CI环境就是实际的ubuntu环境,测试一直是没有问题的。
请单独单独运行 evpp_unittest ,然后把错误情况和coredump堆栈信息贴出来。我们看看能否找到问题

@bigtang5
Copy link
Author

bigtang5 commented Jul 4, 2017

没有win10说不过去吧,借用公司前台的呢?
几分钟可以安装好win10的linux: http://www.linuxdiyf.com/linux/22408.html

@zieckey
Copy link
Collaborator

zieckey commented Jul 4, 2017

还请帮忙单独运行 evpp_unittest ,然后把错误情况和coredump堆栈信息贴出来。我们看看能否找到问题。如果找不到问题,我们再想办法搞一台测试机。谢谢啦

@bigtang5
Copy link
Author

bigtang5 commented Jul 4, 2017

单独运行的后面部分:

[ 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)

@zieckey
Copy link
Collaborator

zieckey commented Jul 4, 2017

core dump 堆栈信息有么?

@bigtang5
Copy link
Author

bigtang5 commented Jul 4, 2017

这个linux生成不了core文件,没找到

@zieckey
Copy link
Collaborator

zieckey commented Jul 4, 2017

好的。我们先看上面的日志信息

@zieckey
Copy link
Collaborator

zieckey commented Aug 29, 2017

我自己终于搞了一台win10的开发环境,安装好ubuntu子系统后,编译运行make test一切正常,也许是最近有代码更新。请帮忙抽空看看,你们那边用最新的代码再试试是否还有问题。

谢谢~

@zieckey
Copy link
Collaborator

zieckey commented Oct 13, 2017

@bigtang5 有更新的进展么?

@yihuangong
Copy link

./evpp_unittest_boost_lockfree
Segmentation fault (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants