Skip to content
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

ExceptionStackFrame in interrupts contains gibberish #195

Closed
mkroening opened this issue May 21, 2021 · 0 comments · Fixed by #196
Closed

ExceptionStackFrame in interrupts contains gibberish #195

mkroening opened this issue May 21, 2021 · 0 comments · Fixed by #196
Assignees

Comments

@mkroening
Copy link
Member

Since LLVM 12 (rust-lang/rust#84230) ExceptionStackFrame has to be taken by value. See rust-lang/rust#40180 (comment).

Current output of ud2:

[0][ERROR] Invalid Opcode (#UD) Exception: ExceptionStackFrame {
    instruction_pointer: 0xc35b30c483480b0f,
    code_segment: 0xee9d058af2894850,
    cpu_flags: 0x3d8d48f76348ffff,
    stack_pointer: 0x7e8ffffffcc,
    stack_segment: 0xccccccccccc35900,
}

Expected:

[0][ERROR] Invalid Opcode (#UD) Exception: ExceptionStackFrame {
    instruction_pointer: 0x501738,
    code_segment: 0x8,
    cpu_flags: 0x11206,
    stack_pointer: 0x373be30,
    stack_segment: 0x10,
}
@mkroening mkroening self-assigned this May 21, 2021
bors bot added a commit that referenced this issue May 21, 2021
196: Take ExceptionStackFrame by value r=stlankes a=mkroening

Fixes  #195.

Co-authored-by: Martin Kröning <[email protected]>
Co-authored-by: Stefan Lankes <[email protected]>
bors bot added a commit that referenced this issue May 24, 2021
196: Take ExceptionStackFrame by value r=stlankes a=mkroening

Fixes  #195.

Co-authored-by: Martin Kröning <[email protected]>
Co-authored-by: Stefan Lankes <[email protected]>
@bors bors bot closed this as completed in 8cc3cba May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant