-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustc segfaults on small program using rayon #83960
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
Comments
If I did this right, the backtrace I'm getting says this is happening inside llvm during codegen:
|
I can reproduce this on Also, downgrading to |
pub unsafe fn f(p: *const [u8; 128 * 1024]) {
p.read_volatile();
}
|
Using the current stable toolchain:
The "fails" code now builds, with a single warning:
So I think this issue can be closed, though it maybe that changes in the crate dependencies have obscured a still existing problem in rustic, but I am not sure how we could tell without reproduction code. |
Code
The attached tarball has two versions of my program, reduced as much as I can. In the
build
subdirectory the program works fine. Infails
building it causes a segfault. In both, build command wascargo build
. This is entirely reproducible for me.rustc-bug.tar.gz
Meta
rustc --version --verbose
:Error output
Backtrace
``` No backtrace.
The text was updated successfully, but these errors were encountered: