-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
読者さまからご報告あり。
本リポジトリーに収録されている ch03/bitonic-sorter #4d44da のベンチマークをRust 1.48.0以降で実行すると、メモリー関連の実行時エラー(例:segmentation fault)になる。
$ cargo run --release --example benchmark -- 25
sorting 33554432 integers (128.0 MB)
cpu info: 8 physical cores, 8 logical cores
seq_sort: sorted 33554432 integers in 12.078293916 seconds
thread '<unnamed>' panicked at 'attempted to leave type `nodrop::NoDrop<(epoch::Epoch, garbage::Bag)>` uninitialized,
which is invalid', ... /.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.3.1/src/sync/queue.rs:57:28
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: segmentation fault cargo run --release --example benchmark -- 25Linux、Windows、macOSで発生することを確認済み。(上のログはmacOS arm64での実行結果)
## Rust 1.56.1、macOS arm64
$ rustc -Vv
rustc 1.56.1 (59eed8a2a 2021-11-01)
binary: rustc
commit-hash: 59eed8a2aac0230a8b53e89d4e99d55912ba6b35
commit-date: 2021-11-01
host: aarch64-apple-darwin
release: 1.56.1
LLVM version: 13.0.0
ttakuya
Metadata
Metadata
Assignees
Labels
No labels