-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustc-LLVM ERROR of ControlFlowIntegrit #142284
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
Comments
This error can be caused just by reduction of #![no_builtins]
#![no_std]
static FUNC: fn() = initializer;
fn initializer() {
call(fma_with_fma);
}
fn call(fn_ptr: fn()) {
fn_ptr();
}
fn fma_with_fma() {} |
This comment has been minimized.
This comment has been minimized.
Your second example looks smaller but it's actually bigger. Since it's a bin crate without |
Interestingly, it only triggers for
|
Switching from |
SNIP
Taking a quick glance through those, the one that seems most relevant is #119889 , as it contains #119885 which reverts #113923 . This basically suggests that the core problem is that This likely means that until The fact that it doesn't trigger with |
It appears that If |
It seems that
|
Yes, that was in my initial assessment - I didn't know it was LTO related at that point and thought it might have just been sanitizer related, so I tried with KCFI to see if that would trigger it in a more reduced sense. |
Uh oh!
There was an error while loading. Please reload this page.
Hello, I am a beginner. I am testing the CFI of Rust (The Rust Unstable Book ControlFlowIntegrit), but I encountered this error log.
The error message is as follows:
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: