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

正常运行时偶尔出现 Assertion failed 导致崩溃的现象,附日志 #19

Open
tsanie opened this issue Jan 7, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@tsanie
Copy link

tsanie commented Jan 7, 2019

版本

  • 程序 udp2raw_mp_nolibnet (20181113.0)
  • 系统 Win10 x64 1809 (OS Build 17763.195)

现象

正常运行时偶尔会发生致命错误导致进程崩溃。

日志

已手动添加防火墙规则(部分文字用...代替)

using system32/npcap/wpcap.dll
The Winsock 2.2 dll was found okay, _setmaxstdio() was set to 4000
[2019-01-01 17:46:04][INFO]argc=14 udp2raw_mp_nolibnet.exe -c -r... -l0.0.0.0:4002 --raw-mode faketcp --cipher-mode xor --auth-mode simple -k ... --dev \Device\NPF_{...} 
[2019-01-01 17:46:04][INFO]parsing address: ...
[2019-01-01 17:46:04][INFO]its an ipv4 adress
[2019-01-01 17:46:04][INFO]ip_address is {...}, port is {...}
[2019-01-01 17:46:04][INFO]parsing address: 0.0.0.0:4002
[2019-01-01 17:46:04][INFO]its an ipv4 adress
[2019-01-01 17:46:04][INFO]ip_address is {0.0.0.0}, port is {4002}
[2019-01-01 17:46:04][INFO]dev=[\Device\NPF_{...}]
[2019-01-01 17:46:04][INFO]important variables: log_level=4:INFO raw_mode=faketcp cipher_mode=xor auth_mode=simple key=... local_addr=0.0.0.0:4002 remote_addr=... socket_buf_size=1048576 
[2019-01-01 17:46:04][INFO]remote_ip=[...], make sure this is a vaild IP address
[2019-01-01 17:46:04][INFO]const_id:7bb85fc
[2019-01-01 17:46:04][INFO]--dev has been manually set, using device:[\Device\NPF_{...}]
[2019-01-01 17:46:04][INFO]waiting for a use-able packet to be captured
link level header captured:
<9c><3d><cf><69><c1><91><30><9c><23><d8><b3><84><8><0>
[2019-01-01 17:46:05][INFO]source_addr is now 192.168....
[2019-01-01 17:46:05][INFO]using port 19915
[2019-01-01 17:46:05][INFO]filter expression is [ip and tcp and src ... and src port ... and dst port 19915]
[2019-01-01 17:46:05][INFO]breakloop() succeed after 2 attempt(s)
[2019-01-01 17:46:05][INFO]state changed from client_idle to client_tcp_handshake
[2019-01-01 17:46:05][INFO](re)sent tcp syn
[2019-01-01 17:46:06][INFO]state changed from client_tcp_handshake to client_handshake1
[2019-01-01 17:46:06][INFO](re)sent handshake1
[2019-01-01 17:46:06][INFO]changed state from to client_handshake1 to client_handshake2,my_id is 23075827,oppsite id is a03339a
[2019-01-01 17:46:06][INFO](re)sent handshake2
[2019-01-01 17:46:06][INFO]changed state from to client_handshake2 to client_ready
[2019-01-01 17:46:09][INFO]new packet from 127.0.0.1:61765,conv_id=19c328d6
...
[2019-01-01 17:53:20][INFO]conv 19c328d6 cleared
...
[2019-01-01 17:53:41][INFO]new packet from 127.0.0.1:62228,conv_id=c237e8b8
[2019-01-01 17:55:49][INFO]state back to client_idle from  client_ready bc of client-->server direction timeout
Assertion failed!

Program: udp2raw_mp_nolibnet.exe
File: common.h, Line 468

Expression: value >=q.front().ts

引用

assert(value >=q.front().ts);

@wangyu-
Copy link
Owner

wangyu- commented Jan 7, 2019

出错的原因应该是本地时钟被拨回了,udp2raw_mp发现时钟倒退后就退出了。

你本地是不是有什么程序在定期同步/修改时间?

后续(等我有时间了)看一下能不能放宽这个限制。

@tsanie
Copy link
Author

tsanie commented Jan 7, 2019

应该没有什么其他程序在修改时间,除了win10自己的时间同步服务。

@wangyu-
Copy link
Owner

wangyu- commented Jan 22, 2019

如果问题出现得不频繁,暂时可以用 这个 方法解决。

另外有其他人遇到同样的问题吗?

@wangyu- wangyu- added the bug Something isn't working label Apr 7, 2019
@wangyu-
Copy link
Owner

wangyu- commented Apr 7, 2019

最新的版本(应该)已经修正了

链接:https://github.com/wangyu-/udp2raw-multiplatform/releases/tag/20190407.0

@tsanie和遇到同样问题的人测试一下,确认问题是不是修好了。

其他的几个程序(udp2raw linux版、UDPspeeder、tinyfecVPN、tinyportMapper)也存在类似的问题,等这个问题在udp2raw mp版里确认解决了再修复其他的吧。

@lightsing
Copy link

ver: git version:e8daf7c263 build date:Jul 27 2020 11:22:17
.\udp2raw_mp.exe -c -l 127.0.0.1:3**7 -r 1*.1*.2*.2*:3**7 -k "M********U" --raw-mode easyfaketcp --auth-mode hmac_sha1

Assertion failed!

Program: C:\Users\l****g\D*****r\udp2raw_mp.exe
File: network.cpp, Line 315

Expression: packet_header->caplen <= max_data_len

@tsanie
Copy link
Author

tsanie commented Oct 13, 2020

抱歉拖了这么久没回复,后来切换到路由器中使用 linux 版,我这里没再出现过崩溃问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants