moka-rs / moka

A high performance concurrent caching library for Rust
Apache License 2.0
1.63k stars 73 forks source link

Crash in iOS #406

Closed ssrlive closed 7 months ago

ssrlive commented 8 months ago

When I upgrade moka from version 0.11 to 0.12, my app crashed in iOS, but this issue not appears in others platforms. I don't know the reason.

https://github.com/ShadowsocksR-Live/overtls/commit/6724ec408d7fe1d901c33efb2e245535fd296eeb

image

tatsuya6502 commented 8 months ago

Thank you for reporting the issue.

The crash message "bad instruction" implies some of the processors used in the iOS devices do not support reading from the cntvct_el0 register. moka v0.11 and v0.12 depend on quanta v0.11 and v0.12 respectively. And quanta v0.12 tries to read from cntvct_el0 register on arm64 processors.

I will report this to quanta crate and see if they can workaround it.

ssrlive commented 8 months ago

I have reported. https://github.com/metrics-rs/quanta/issues/101

ssrlive commented 7 months ago

fixed