Open
Description
- nty_example_epoll_rb_server 执行的时候,出现cpu占用率99%情况,连接server也无响应,请问作者有没有遇到过? 然后 NtyTcp协议栈的监听端口 可否用natstat 查询?
root 1681 0.0 4.7 105240 47252 pts/0 S+ 11:55 0:00 gdb ./bin/nty_example_epoll_rb_se
root 1683 99.0 2.1 381852 21084 pts/0 tLl 11:55 87:25 /home/ubuntu/workspace/NtyTcp/bin
2、nty_example_block_server执行出现段错误;如下:
(gdb)
99 if (nty_listen(sockfd, 5) < 0) {
(gdb)
Thread 1 "nty_example_blo" received signal SIGSEGV, Segmentation fault.
0x0000555555567e4b in HashListener (l=0x555555791a70) at nty_hash.c:93
93 return listener->s->s_addr.sin_port & (NUM_BINS_LISTENERS - 1);
(gdb) bt
#0 0x0000555555567e4b in HashListener (l=0x555555791a70) at nty_hash.c:93
#1 0x0000555555568392 in ListenerHTInsert (ht=0x55555578d440, it=0x555555791a70)
at nty_hash.c:218
#2 0x0000555555558bb0 in nty_listen (sockid=0, backlog=5) at nty_api.c:379
#3 0x00005555555836ae in main () at nty_example_tcp_server.c:99
(gdb)
如上问题,想请教一下,谢谢;(怀疑环境配置还有哪里有问题,请作者帮忙指正一下)
Metadata
Metadata
Assignees
Labels
No labels