You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I attempted to pop a trait object pointer off the stack and cast the raw pointer into a trait object. My first stab at this code was incorrect, but it strangely triggered a segfault in rustc instead of returning a compilation error. The incorrect code involves popping *mut &MyTrait pointer value into a data type of *mut MyTrait. Fixing the incorrect code avoids the segfault issue.
This would probably hit an LLVM assert when using a rustc build that has LLVM assertions turned on. @alexcrichton what's the easiest way to get ahold of one of those?
sfackler
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Dec 20, 2017
Summary
I attempted to pop a trait object pointer off the stack and cast the raw pointer into a trait object. My first stab at this code was incorrect, but it strangely triggered a segfault in
rustc
instead of returning a compilation error. The incorrect code involves popping*mut &MyTrait
pointer value into a data type of*mut MyTrait
. Fixing the incorrect code avoids the segfault issue.Error Message
Rust Playground Reproduction
Reproduction of incorrect code sample
Diff to fix incorrect code and avoid segfault
Meta
Compiler Version
Backtrace
Running with RUST_BACKTRACE=1 does not print any useful information.
The text was updated successfully, but these errors were encountered: