Fatal Python error: Illegal instruction #189975
Replies: 3 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for posting in the GitHub Community, @VincentRouvreau! We're happy you're here. You are more likely to get a useful response if you post your question in the most relevant category. This question is less related to Packages and more about a Python/runtime issue across environments. This question should be in the |
Beta Was this translation helpful? Give feedback.
-
|
This looks very much like a CPU instruction mismatch rather than a GitHub Actions bug. The "Illegal instruction" error typically occurs when native code is built with CPU-specific optimizations (e.g. AVX/AVX2), and then executed on a machine that does not support those instructions. In your case:
Since GitHub-hosted runners do not guarantee identical CPU models, this can lead to non-reproducible builds when native extensions are compiled. The fact that rebuilding on your VM fixes the issue strongly supports this hypothesis. Things to check
Possible workarounds
So this may be more a limitation of heterogeneous runners than a strict bug, but I’d be interested if others can confirm. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I have 2 distincts projects https://github.com/GUDHI/gudhi-deploy and https://github.com/GUDHI/gudhi-devel
gudhi-deploy is the one that I use to build the docker images (with GitHub actions) that are required by gudhi-devel in its CI (also with GitHub actions - for the buggy part).
I was quite happy with it, but now I have a
Fatal Python error: Illegal instructionthat I cannot explain because it means something like the docker images build is done with GitHub actions on some hardware that is different from the one that is used for the gudhi-devel CI, that is also done on GitHub actions...The docker image
ghcr.io/gudhi/gudhi-deploy/ci_for_gudhi:2026.03.02was built from a GitHub actions.Then when I use it in gudhi-devel CI (cf. job/67447355806):
So I created a personnal access token and rebuild the docker image on a dedicated virtual machine, and push it as
ghcr.io/gudhi/gudhi-deploy/ci_for_gudhi:2026.03.01, and now it works fine, cf.job/67540391573...I thought that GitHub actions was preventing to mix hardware setup and was ensuring the reproducibility of builds, but it seems that this is not the case.
For me it is clearly a bug, but if you have a workaround, I would take it. Building on a virtual machine is so annoying...
Beta Was this translation helpful? Give feedback.
All reactions