Illegal instruction: 4

asked 2021-08-02 15:31:54 +0200

anonym485738 gravatar image

I get the following error:

(no backtrace available)

Unhandled SIGILL: An illegal instruction occurred. This probably occurred because a compiled module has a bug in it and is not properly wrapped with sig_on(), sig_off(). Python will now terminate.

.../SageMath/src/bin/sage-python: line 2: 56740 Illegal instruction: 4 sage -python "$@"

How to handle it?

edit retag flag offensive close merge delete


Could you please provide the whole code so that we can reproduce the issue ?

tmonteil gravatar imagetmonteil ( 2021-08-02 15:38:17 +0200 )edit

Welcome to Ask Sage. Thank you for your question.

slelievre gravatar imageslelievre ( 2021-08-02 15:46:03 +0200 )edit

Does this error happen when first starting the macOS app?

A similar report was filed as

Or tell what operating system, what version of Sage, how Sage was installed.

slelievre gravatar imageslelievre ( 2021-08-02 15:47:36 +0200 )edit

@tmonteil I'm trying to run the Scheduling data set command from (

@slelievre Thank you. The error happens when I run the named command from the GitHub project in terminal. OS is Mac OS 12.0 Beta on M1, SageMath version 9.3 and Python 3.9.2

anonym485738 gravatar imageanonym485738 ( 2021-08-02 16:02:25 +0200 )edit

Are you using a prebuilt binary? If so, I see two potential issues: first, you're using a binary for an x86 chip rather than M1, and second, you're using OS X 12.0 beta. New OS X versions have often caused problems when building and running Sage.

John Palmieri gravatar imageJohn Palmieri ( 2021-08-03 00:43:19 +0200 )edit