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

运行./nty_example_block_server出现Segmentation fault #9

Open
ilikegithubcom opened this issue Aug 18, 2020 · 1 comment
Open

运行./nty_example_block_server出现Segmentation fault #9

ilikegithubcom opened this issue Aug 18, 2020 · 1 comment

Comments

@ilikegithubcom
Copy link

步骤如下:
1、虚拟机安装centos7(core 3.10.0-1127.8.2.el7.x86_64)
2、编译netmap13.0,得到e1000.ko和netmap.ko
3、加载e1000.ko和netmap.ko到系统
4、配置ip/mac和网卡,修改ntytcp的nty_config.h和nty_eth.c文件,如下:
image
image
5、编译ntytcp_maste
6、运行 nty_example_block_server
7、出现Segmentation fault,如下为gdb信息:
image
请问是何原因,谢谢!

@JoyeFu
Copy link

JoyeFu commented Jul 23, 2022

1、nty_api.c 358行,nty_listen函数中加一行:

listener->s = (struct _nty_socket *)listener->socket; 

2、另外IPOutputStandalone函数中异常判断需返回

if (!haddr) {
	return NULL;
}

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

2 participants