-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE: Unexpected non-scalars in register inputs of asm!
#37433
Labels
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
TimNN
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
labels
Oct 28, 2016
Got an updated backtrace:
|
Ran into this with #![feature(asm)]
#[repr(C)]
struct MyPtr(usize);
fn main() {
unsafe {
let target = MyPtr(0);
asm!( "ret" : : "{rdi}"(target) );
}
} which I would sort of hope would just work. Backtrace is identical (at least as far as a compiler without debugging information outputs). |
Still reproducible with |
No longer reproduces:
|
JohnTitor
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
Aug 4, 2019
Centril
added a commit
to Centril/rust
that referenced
this issue
Aug 5, 2019
…, r=Centril Add tests for some issues Closes rust-lang#29265 Closes rust-lang#37433 Closes rust-lang#49544 r? @Centril
Centril
added a commit
to Centril/rust
that referenced
this issue
Aug 6, 2019
…, r=Centril Add tests for some issues Closes rust-lang#29265 Closes rust-lang#37433 Closes rust-lang#49544 r? @Centril
Centril
added a commit
to Centril/rust
that referenced
this issue
Aug 7, 2019
…, r=Centril Add tests for some issues Closes rust-lang#29265 Closes rust-lang#37433 Closes rust-lang#49544 r? @Centril
pietroalbini
added a commit
to pietroalbini/rust
that referenced
this issue
Aug 7, 2019
…, r=Centril Add tests for some issues Closes rust-lang#29265 Closes rust-lang#37433 Closes rust-lang#49544 r? @Centril
Centril
added a commit
to Centril/rust
that referenced
this issue
Aug 8, 2019
…, r=Centril Add tests for some issues Closes rust-lang#29265 Closes rust-lang#37433 Closes rust-lang#49544 r? @Centril
Centril
added a commit
to Centril/rust
that referenced
this issue
Aug 8, 2019
…, r=Centril Add tests for some issues Closes rust-lang#29265 Closes rust-lang#37433 Closes rust-lang#49544 r? @Centril
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Unexpected non-scalars in register inputs of
asm!
can ICE the compiler.To reproduce:
This mistake goes uncaught until it reaches this line of code where it
bug!
s. I would expect it to have been caught earlier, duringasm!
argument validation.I've found a similar case which dumps core, which will be the subject of a separate bug.
Meta
rustc --version --verbose
:rustc 1.14.0-nightly (c59cb71 2016-10-26)
binary: rustc
commit-hash: c59cb71
commit-date: 2016-10-26
host: x86_64-unknown-linux-gnu
release: 1.14.0-nightly
LLVM version: 3.9
Backtrace:
The text was updated successfully, but these errors were encountered: