Skip to content

Crash on asm!("int $3"): Wrong MachineOperand accessor #23458

Closed
@kryptan

Description

@kryptan

While compiling the following program:

#![feature(asm)]

fn main() {
    unsafe {
        asm!("int $3");
    } 
}

rustc crashes:

D:\rust>rustc crash.rs
Assertion failed!

Program: C:\Program Files\Rust-nightly\bin\rustc.exe
File: C:/bot/slave/nightly-dist-rustc-win-64/build/src/llvm/include/llvm/CodeGen/MachineOperand.h, Line 408

Expression: isImm() && "Wrong MachineOperand accessor"

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Meta

D:\rust>rustc --version --verbose
rustc 1.0.0-nightly (30e1f9a1c 2015-03-14) (built 2015-03-15)
binary: rustc
commit-hash: 30e1f9a1c2bf7134135800bc9afd082773defadc
commit-date: 2015-03-14
build-date: 2015-03-15
host: x86_64-pc-windows-gnu
release: 1.0.0-nightly

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-inline-assemblyArea: Inline assembly (`asm!(…)`)C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions