You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Potential issue in concurrent initialisation in tests #278
So we have an ort based library and our tests naturally load the model and do some stuff. It seems that they're hitting some sort of concurrent init panic. The user thinks it may be an issue in the environment.rs with concurrent initialisation and I'm inclined to agree. With that in mind, are you opposed to putting the unsafe cell behind some sort of lock or providing a thread-safe initialisation or should I just figure out a way to handle this ourselves (advice welcome)?
Here's a selection of errors:
snapshot-922dfd7ba42f0d16(48386,0x700009d8f000) malloc: Heap corruption detected, free list is damaged at 0x600000f90600
*** Incorrect guard value: 60851421382143
snapshot-922dfd7ba42f0d16(48386,0x700009d8f000) malloc: *** set a breakpoint in malloc_error_break to debug
error: test failed, to rerun pass `--test snapshot`
---- chunk_30_default_params_16k stdout ----
thread 'chunk_30_default_params_16k' panicked at /Users/robert/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ort-2.0.0-rc.4/src/environment.rs:51:9:
assertion `left != right` failed
left: 0x0
right: 0x0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
chunk_30_default_params_16k
running 6 tests
test chunk_20_default_params_16k ... FAILED
error: test failed, to rerun pass `--test snapshot`
Caused by:
process didn't exit successfully: `/Users/robert/other/silero-rs/target/debug/deps/snapshot-922dfd7ba42f0d16` (signal: 11, SIGSEGV: invalid memory reference)
Activity
decahedron1 commentedon Aug 29, 2024
Does edcb219 fix the issue?
robertknight commentedon Aug 29, 2024
Yes, it does seem to have resolved the issue. Thanks!
Tested with the shell script from emotechlab/silero-rs#20 and this diff applied:
xd009642 commentedon Aug 29, 2024
Just out of curiosity when can we expect an rc6 with this fix in? 👀