-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segmentation fault in risc-v code #114473
Comments
mdbook fails due to a rustc bug rust-lang/rust#114473
@MaxHearnden it would be awesome to clarify this report and attach a reproducible MCVE, modulo the Nix files. Ideally including the rustc version that starts erroring. thanks |
I have produced a fairly minimal reproduction at https://github.com/MaxHearnden/tokio-bug-repro |
I've found that commenting out https://github.com/llvm/llvm-project/blob/5897b449472e4848c2531e8bdeb6fba4f207f2c6/llvm/lib/Target/RISCV/RISCVExpandAtomicPseudoInsts.cpp#L592 generated the correct code |
I've filed a bug report upstream llvm/llvm-project#65025 and there is a candidate patch https://reviews.llvm.org/D158962 |
fixed by #115959 |
see https://github.com/MaxHearnden/rust-bug for accompanying files
The function tokio::runtime::scheduler::multi_thread::park::Parker::shutdown (which is _ZN91_$LT$tokio..runtime..scheduler..multi_thread..park..Parker$u20$as$u20$tokio..park..Park$GT$8shutdown17hc45107ddb2018849E in the provided files) contains a pattern match (present in the llvm-ir) which is not in the generated assembly. This causes a segmentation fault when the structure bound by the match is read on line 78373 in the generated assembly.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: