-
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
Infinite recursion/stack overflow in rustc_ast::mut_visit::noop_visit_expr
#97222
Comments
Reported to not crash with 1.60 but crashes with 1.61, see rust-lang/rust#97222
* Use an older version of Rust to work around a crash in 1.61+ Reported to not crash with 1.60 but crashes with 1.61, see rust-lang/rust#97222 * Install more rust/cargo tools
I've run into this same segfault via the crate |
Minimized reproducible from k2_tree -> https://gist.github.com/gimbles/d43c181534fc4bd022abe98ca328039c |
I think I will be able to bisect this, but cargo-bisect-rustc does not have a segmentation fault regression, so might take a while doing this by hand. =) |
Current status of doing some hand bisection -> (edited) Bisected! Segfaults on nightly-2022-01-18. |
I have found the problem! 👏🏻 Similar to #98458, this only occurs in Rustup built toolchains. Build goes with expected behaviour on locally built toolchains. |
The code appears to compile on latest nightly now, so closing this |
I made a PR (here) marking many functions as
const
, and after runningcargo build --lib --release
insrc/rust/iced-x86-js
,rustc
crashed with a segmentation fault.Meta
The issue occurred when using
nightly
and1.61
, but not with1.54 and 1.60
Segfault Backtrace
The text was updated successfully, but these errors were encountered: