-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Compiler segfaults when compiling the vte crate for aarch64 #52884
Comments
@cramertj do you think you'd be able to get the LLVM IR out to submit a test case to LLVM? If not I can try to do so as well. IF the IR can be extracted we can also run it against the master branch of LLVM to see if this bug has already been fixed. |
Rust VTE crate LLVM IR for aarch64-unknown-linux-gnu target (which also segfaults). |
This looks very similar to https://bugs.llvm.org//show_bug.cgi?id=33191, which was fixed in https://www.mail-archive.com/[email protected]/msg56359.html. In other news, running
That's this assertion. Backtrace:
|
|
Reported as https://bugs.llvm.org/show_bug.cgi?id=38396 |
Wow that was a super quick fix! @cramertj the next steps here would be to backport that commit to our branch in rust-lang/llvm, and then an update of the submodule in this repository |
Update LLVM submodule Fix rust-lang#52884 r? @alexcrichton
Update LLVM submodule Fix rust-lang#52884 r? @alexcrichton
Only reproduces when doing a debug build of rustc for the aarch64-fuchsia target, the aarch64-unknown-linux-gnu target, and presumably others. rustc produces no output, but returns a failure status code. Building with cargo just says "compiling vte v0.3.2... error: could not compile
vte
". The log and backtrace can be found here.To reproduce, run this command, which calls this script, which attempts to compile this crate inside of a fuchsia checkout.
Compiling with
cargo build -v
shows that there's a SIGSEGV being triggered:Running this rustc command directly shows rustc failing with a segmentation fault:
Running inside gdb gives
That's a failure in llvm::AArch64RegisterBankInfo::getInstrMapping.
Backtrace:
This error does not occur on revision 8acec1, so the LLVM 7 upgrade (#51966) might be at fault here (cc @alexcrichton).
Edit: Confirmed-- I bisected this locally to the LLVM 7 upgrade (Fuchsia compiles fine before, compiler segfaults after).
The text was updated successfully, but these errors were encountered: