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

20200715.0服务端监听IPv6地址报错堆栈溢出并退出 #337

Closed
monkeylab opened this issue Jul 26, 2020 · 4 comments
Closed

20200715.0服务端监听IPv6地址报错堆栈溢出并退出 #337

monkeylab opened this issue Jul 26, 2020 · 4 comments
Labels

Comments

@monkeylab
Copy link

monkeylab commented Jul 26, 2020

当服务端监听在IPv6地址时,接收到客户端发来的握手包时会报堆栈溢出错误并退出。
远程地址为IPv6的情形未测试,客户端不会退出。
日志如下

./udp2raw_amd64_hw_aes -s -l [::]:4096 -r 127.0.0.1:7777 -k passwd --raw-mode faketcp --fix-gro
[2020-07-26 13:12:36][INFO]argc=11 ./udp2raw_amd64_hw_aes -s -l [::]:4096 -r 127.0.0.1:7777 -k passwd --raw-mode faketcp --fix-gro
[2020-07-26 13:12:36][INFO]parsing address: [::]:4096
[2020-07-26 13:12:36][INFO]its an ipv6 adress
[2020-07-26 13:12:36][INFO]ip_address is {::}, port is {4096}
[2020-07-26 13:12:36][INFO]parsing address: 127.0.0.1:7777
[2020-07-26 13:12:36][INFO]its an ipv4 adress
[2020-07-26 13:12:36][INFO]ip_address is {127.0.0.1}, port is {7777}
[2020-07-26 13:12:36][INFO]--fix-gro enabled
[2020-07-26 13:12:36][INFO]important variables: log_level=4:INFO raw_mode=faketcp cipher_mode=aes128cbc auth_mode=md5 key=passwd local_addr=[::]:4096 remote_addr=127.0.0.1:7777 socket_buf_size=1048576
[2020-07-26 13:12:36][WARN]you can run udp2raw with non-root account for better security. check README.md in repo for more info.
[2020-07-26 13:12:36][INFO]remote_ip=[127.0.0.1], make sure this is a vaild IP address
[2020-07-26 13:12:36][INFO]const_id:f07c381
[2020-07-26 13:12:36][WARN] -a has not been set, make sure you have added the needed iptables rules manually
[2020-07-26 13:12:36][INFO]now listening at [::]:4096
[2020-07-26 13:12:46][INFO][[客户端IPv6]:62291]received syn,sent syn ack back
*** stack smashing detected ***: terminated
Aborted

服务端环境是Debian 9 x64.

@wangyu-
Copy link
Owner

wangyu- commented Jul 26, 2020

在debian 8.7 x64上没能复现。

我编译了一个带debug符号的udp2raw_amd64_hw_aes, 你可否用这个版本尝试运行,并提供出错的core dump ? (ulimit -u unlimited 开启core dump)

udp2raw_amd64_hw_aes.zip

@monkeylab
Copy link
Author

monkeylab commented Jul 26, 2020

在debian 8.7 x64上没能复现。

我编译了一个带debug符号的udp2raw_amd64_hw_aes, 你可否用这个版本尝试运行,并提供出错的core dump ? (ulimit -u unlimited 开启core dump)

udp2raw_amd64_hw_aes.zip

core文件
core.zip
顺便提一下客户端环境是openwrt-19.07.3-x86-64,已经手动添加iptables规则,20190716.test.0版本在同样的环境下没有这个问题。

@wangyu-
Copy link
Owner

wangyu- commented Jul 26, 2020

应该是已经修复了,这是修复后的版本:

udp2raw_binaries.tar.gz

请试用一下。

@wangyu- wangyu- added the bug label Jul 26, 2020
@monkeylab
Copy link
Author

应该是已经修复了,这是修复后的版本:

udp2raw_binaries.tar.gz

请试用一下。

问题已解决。

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

No branches or pull requests

2 participants