You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: