-
Notifications
You must be signed in to change notification settings - Fork 4
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
Can SIGILL if compile with cpu features and execute without it #54
Comments
So this might be a bit late but wouldn't it be possible to add a check for the function, i.e. a check that ensures the relevant input is additionally checked at runtime even if possibly expensive, with a build-time check for the current CPU features (Rust Docs)? This will make yarte slower on CPUs not supporting the features though this solution wouldn't exclude them at least. |
@Chaostheorie Sorry for taking time to respond. Yes. A once call function can be added for check runtime cpu flags are the same as the compile cpu flags. This function could be launched at the beginning of the application and panic in case of error. |
The other architectures are not excluded, for architectures other than |
At
b_escape
function can produceSIGILL
cpu exception.If you compile in to target_arch
x86_64
and target_featureavx2
andsse2
, you will be forced to execute this function in a cpu with the previous characteristics. In any other way it will produce this exceptionThere is no cheap way to implement runtime detection until rust-lang/rust#57775 is resolved.
The text was updated successfully, but these errors were encountered: