Closed qwerttvv closed 1 year ago
It should be a bug in the latest shadowsocks-rust. I saw a segfault of ss-rust on the server after enabling plugin. @zonyitoo
That was strange. How can I reproduce? Could you provide more detail about sslocal
? @qwerttvv
I saw a segfault of ss-rust on the server after enabling plugin.
Hmm, please provide more detail about ssserver
, too.
v1.15.0 is nearly identical to v1.15.0-alpha.9.
https://github.com/shadowsocks/shadowsocks-rust/actions/runs/3717954160/jobs/6305787076
It probably related to some bugs introduced from the latest nightly Rust. Please change toolchain to stable Rust. shadowsocks-rust is able to be compiled with stable Rust since 1.64.
@dev4u Please remove features armv8 neon
and use stable Rust toolchain.
客户端v1.15.0-alpha.9配合服务端v1.14.3或v1.15.0都是可用的…原因未知,我只是编译路由器固件时用了新版客户端……
服务端升级到v1.15.1之后,客户端shadowsocks-android v5.3.1-preview可以使用了
Good. shadowsocks-android should also upgrade the build script. ping @dev4u
It probably related to some bugs introduced from the latest nightly Rust. Please change toolchain to stable Rust. shadowsocks-rust is able to be compiled with stable Rust since 1.64.
It's about time. 👍
Good. shadowsocks-android should also upgrade the build script. ping @dev4u
@zonyitoo 不好意思,前几天身体不舒服。我整理一下PR上去。
@zonyitoo So armv8 neon
is removed for now? Do you have a link to the rust stabilization timeline of these features? Not sure why they need to take such a long time to stabilize such a trivial feature.
So they would be enabled already? And there had been no reason to build shadowsocks-rust on nightly since this February?
Rust-Crypto's libraries removes armv8
and neon
since v0.10
: https://github.com/shadowsocks/shadowsocks-crypto/commit/bae4a3701e6110ddf82e77d14142c504f35e982e .
armv8 = ["aes-gcm/armv8", "aes/armv8", "aes-gcm-siv/armv8"]
neon = ["chacha20/neon"]
The ghash
crate removes armv8
since this commit: https://github.com/RustCrypto/universal-hashes/commit/636772c754044b6ea02d7874afe304bf86caacf5 .
chacha20
still require neon
feature to be set explicitly: https://github.com/RustCrypto/stream-ciphers/commit/6217574ef37fa04fa8b17fb7568ed3d1499b7cee .
aes
removes armv8
right after aarch64 intrinsic stablized.
I couldn't remember why we still need nightly after Feb. :(
Shouldn't the neon
flag be kept/enabled then?
Shouldn't the
neon
flag be kept/enabled then?
Yes, I think we should. NEON is required for standard ARMv8 implementations: https://developer.arm.com/documentation/den0024/a/AArch64-Floating-point-and-NEON .
But why they still kept the neon
feature? I should open an issue.
Well, they know: https://github.com/RustCrypto/stream-ciphers/pull/310 . Maybe the only reason is for keeping MSRV unchanged in the current version.
Great. So let's add it (back) to shadowsocks-crypto?
chacha20
with neon
didn't release yet. I will keep my eyes on them.
ss用的是chacha20-ietf-poly1305,sip003是cloak,没敢裸连测试。其他不变,之前服务端版本v1.14.3没有使用问题。
另外目前服务端v1.15.0,客户端shadowsocks-rust v1.15.0-alpha.9,其它不变,使用是正常的