-
Notifications
You must be signed in to change notification settings - Fork 13.3k
SIGSEGV when compiling regex_automata wasm32-unknown-emscripten #69364
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
I created this as an internal compiler error. I'm not sure if that's right since this is a segfault and not a panic. |
Rust 1.41.0 uses the upstream LLVM backend to build emscripten targets. This enables upgrading the `emscripten-toolchain` for building mruby to the latest upstream compiler. This replaces the fastcomp compiler dependency which had some optimizer bugs that caused crashes when compiling debug builds. (Debug builds still do not work - `regex_automata` segfaults rustc - see rust-lang/rust#69364.
triage: P-high to determine underlying issue and actual severity, and the regression point. Removing nomination. Assigning to self. |
Put together a smaller reproducer: Cargo.toml [package]
name = "bisect"
version = "0.1.0"
authors = ["Ryan Lopopolo <rjl@hyperbo.la>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
ansi_term = "0.11" src/main.rs: fn main() {
println!("Hello, world!");
} This project segfaults
With this $ emcc --version
emcc (Emscripten gcc/clang-like replacement) 1.39.8 (commit 1458145cf4f3db0fb548343e6acab267eef8e4ef)
Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)
This is free and open source software under the MIT license.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Rust 1.39 and older use the fastcomp backend which is incompatible with the default "upstream" (LLVM) backend. Downgrading emcc to The segfault does not appear on this nightly.
|
Determined via bisection over nightlies that the problem was "fixed" between +nightly-2020-01-25 and +nightly-2020-01-26 Update: More info on those nightlies:
|
Looks like this was deliberately fixed via an LLVM upgrade in PR #68525. |
And it looks like the above fix is part of the beta channel, which is imminently scheduled for release. Closing as duplicate of #66308 (which is fixed). |
Code
Meta
rustc --version --verbose
:emcc --version
:Release builds complete successfully.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: