-
Notifications
You must be signed in to change notification settings - Fork 291
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
您好,请教两个问题,如下: #7
Comments
|
可以加入gitter: https://gitter.im/ntytcp/community |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)
如上问题,想请教一下,谢谢;(怀疑环境配置还有哪里有问题,请作者帮忙指正一下)
The text was updated successfully, but these errors were encountered: