ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.83k stars 882 forks source link

running rust binary with tokio results in segfault #2447

Open achristmascarl opened 2 weeks ago

achristmascarl commented 2 weeks ago

when running a binary built for i686-unknown-linux-musl (rainfrog-v0.1.12-alpine-i686.tar.gz) or i586-unknown-linux-musl (rainfrog-v0.1.13-i586-unknown-linux-musl.tar.gz) that is using tokio's async runtime, the program crashes with this message:

thread 'tokio-runtime-worker' panicked at /cargo/registry/src/[index.crates.io](http://index.crates.io/)-6f17d22bba15001f/tokio-1.37.0/src/runtime/scheduler/multi_thread/[worker.rs](http://worker.rs/):656::12:
attempt to calculate the remainder with a divisor of zero
Segmentation fault

this has also been reported on the new python package manager, uv: https://github.com/astral-sh/uv/issues/2732

looking at tokio-rs, the line in question seems to be: https://github.com/tokio-rs/tokio/blob/9c337ca1a306be38e3474082be14bdef4bcb45b5/tokio/src/runtime/scheduler/multi_thread/worker.rs#L656

achristmascarl commented 2 weeks ago

i should add, using latest app store version: 1.3.2