zhxie / pcap2socks

Redirect traffic to SOCKS proxy with pcap.
MIT License
631 stars 76 forks source link

跳出错误 #3

Closed kszym2002 closed 3 years ago

kszym2002 commented 3 years ago

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

变量加入RUST_BACKTRACE=1

跳出 left: 65501, right: 1480: destination and source slices have different lengths', /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\macros\mod.rs:18:13 stack backtrace: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: BaseThreadInitThunk 22: RtlUserThreadStart note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

变量 RUST_BACKTRACE=full left: 65501, right: 1480: destination and source slices have different lengths', /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd\src\libcore\macros\mod.rs:18:13 stack backtrace: 0: 0x7ff63b85943f - 1: 0x7ff63b86bd4b - 2: 0x7ff63b851bec - 3: 0x7ff63b85c74c - 4: 0x7ff63b85c39f - 5: 0x7ff63b85cf27 - 6: 0x7ff63b85caaf - 7: 0x7ff63b86b050 - 8: 0x7ff63b6f6a7d - 9: 0x7ff63b6f7684 - 10: 0x7ff63b6da0da - 11: 0x7ff63b6e7d76 - 12: 0x7ff63b6ef1cc - 13: 0x7ff63b6e7f90 - 14: 0x7ff63b6ba19f - 15: 0x7ff63b6ecb86 - 16: 0x7ff63b85c947 - 17: 0x7ff63b8611f2 - 18: 0x7ff63b85d168 - 19: 0x7ff63b6ba337 - 20: 0x7ff63b872c94 - 21: 0x7ffa64c67bd4 - BaseThreadInitThunk 22: 0x7ffa650cce51 - RtlUserThreadStart

zhxie commented 3 years ago

Is the stack backtrace like this? Because most of it is empty, it is not possible to determine the problem.


Stack backtrace 就是这样的吗?因为大部分都是空的,所以并不能确定问题所在。

zhxie commented 3 years ago

If you use the binary files in releases or actions directly, they may not have debugging symbols inserted during compilation. If possible, hope to clone the code and compile and run under debug.


如果你直接使用了 releases 或者 actions 中的二进制文件,它们在编译时可能没有置入调试符号。如果可以的话,希望能 clone 代码并在 debug 下编译运行。

zhxie commented 3 years ago

Although there is no backtrace, I guess the problem is in here, I will try to fix it. And you can download the newly compiled file in actions after the next push.


虽然没有 backtrace,但我盲猜在这儿,下次 push 的时候我会尝试修复,届时你可以去 actions 中下载新编译完毕的文件。