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

How to intercept "Illegal instruction" error. #529

Open
fbafkis opened this issue Apr 25, 2024 · 0 comments
Open

How to intercept "Illegal instruction" error. #529

fbafkis opened this issue Apr 25, 2024 · 0 comments

Comments

@fbafkis
Copy link

fbafkis commented Apr 25, 2024

Hi,

I need help. I am using sysbench in my master thesis project. Within this project it often happens that I have to run Sysbench on relatively old machines. Using the precompiled version of Sysbench from the Alpine Linux repositories sometimes I get the "Illegal instruction" fatal error, because of the usage of unsupported instruction sets. Now, what I need to achieve is to intercept inside a shell script the "Illegal instruction" error case, so that I can ask to the user if he wants to perform Sysbench compilation and configuration from source. But I am not able to do this, since in that case Sysbench exits with code 0, and it seems not possible to intercept the "Illegal instruction" message from output, I think (may I be wrong?) it is because it is not Sysbench itself generating that error message. So I want to ask if there is an alternative way to be aware of a Sysbench "Illegal instruction" event, so that I can handle that.

Thank you a lot in advance for any advice!

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

No branches or pull requests

1 participant