Open
Description
I tried this code:
https://github.com/near/near-sdk-rs/blob/master/near-sdk/src/environment/mock/mod.rs#L11-L16
thread_local! {
static BLOCKCHAIN_INTERFACE: RefCell<MockedBlockchain>
= RefCell::new(MockedBlockchain::default());
}
I expected to see this happen:
thread_local!
initialization code for RefCell::new(MockedBlockchain::new)
works
Instead, this happened:
on unclarified aarch64-apple-darwin
environment(s) thread_local!
panics on https://doc.rust-lang.org/src/core/ptr/mod.rs.html#1277 .
The issue doesn't reproduce on other aarch64-apple-darwin
real macs,
and on macos-14-arm64
github actions vm.
Original issue: near/near-sdk-rs#1252
Meta
rustc --version --verbose
:
stable: 1.80, 1.81, 1.82 panics
beta 1.83 panics
nightly 1.84 panics
backtrace from original issue:
near/near-sdk-rs#1252 (comment)