Ask Your Question

Unknown installation error in Windows

asked 2020-11-15 14:29:14 +0100

X1729 gravatar image

updated 2020-11-17 16:37:50 +0100

FrédéricC gravatar image

I installed Sagemath 9.1 from the executable. Almost nothing works: when I execute from desktop icon it just crashes, if I do from icon that says Notebook it crashes after saying

"Use Control-C to stop ...."

If I execute the shell, I can use without problem "sage -python", "sage -gap", etc, but if I execute

sage -c

then it says

Unhandled SIGSEGV: A segmentation fault 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.

/opt/sagemath-9.1/src/bin/sage-python line 2: 1615 Segmentation fault (overflow memory)sage -python "$@"

Do you have any suggestions about how to solve the problem? I reinstalled Sagemath several times, but everytime there is the same problem.

edit retag flag offensive close merge delete


Using the latest release is preferable but in this case, I would try with an earlier version of SageMath.

tolga gravatar imagetolga ( 2020-11-16 07:21:07 +0100 )edit

I installed version 9.0v0.5.2 and now the mssage have changed, but still there is an error

0 [python3] python3 509 C:\Program Files\SageMath 9.0\runtime\opt\sagemath-9.0\local\bin\python3.7.exe: * fatal error - pure virtual method called /opt/sagemath-9.0/src/bin/sage-python line 2: 509 Hangup sage -python "$@"

X1729 gravatar imageX1729 ( 2020-11-16 12:12:07 +0100 )edit

SageMath started using Python 3 since its version 9.0. I hope you can solve this issue and use the latest versions but if you need to use SageMath urgently, you may want to try earlier versions.

tolga gravatar imagetolga ( 2020-11-17 06:27:56 +0100 )edit

I tried with 8.9 version of Sagemath and the problem persists. So it seems it has nothing to do with Python 3.

X1729 gravatar imageX1729 ( 2020-11-18 10:32:53 +0100 )edit

Chances are good you have BLODA. In particular some antivirus software is known to interfere with, or even delete files from Sage's installation since it's full of false-positives.

Iguananaut gravatar imageIguananaut ( 2020-11-18 14:58:10 +0100 )edit

It could also be a CPU incompatibility. Sage for Windows is compiled with the current maximum level of CPU compatibility but there could be some outliers, or if it's a very new CPU it might break MPIR or something.

Iguananaut gravatar imageIguananaut ( 2020-11-18 15:00:33 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2020-11-17 14:51:38 +0100

Emmanuel Charpentier gravatar image

updated 2020-11-17 18:37:15 +0100

sage -c is the invocation of sage to execute some command, and has no meaning by itself. if should be followed by command. For example :

charpent@zen-book-flip:~$ sage -c "print(2+2)"

However, on Linux, sage -c does nothing but terminates normally. This might be a Windows-specific quirk.

What happens when you type sage (alone, i. e. without -c) ?

Could you copy the content of the error message printed when you try to start the notebook from its icon ?

EDIT : I haven't been able to reproduce your problem. However, a minor but possibly related buglet is now issue 50 on the Sage windows installer Github page.

edit flag offensive delete link more


I installed the version 8.9 and same problem happens. So it seems the problem is not related to Python 3. Of coruse I tried to execute: sage -c "print(2+2)", but the answer was

Unhandled SIGSEGV: A segmentation fault 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.

If I execute just "sage" in the shell, it starts sage but it stops after some seconds without any explanation. The same if I execute sage or sage notebook icons.

X1729 gravatar imageX1729 ( 2020-11-18 10:21:25 +0100 )edit

This might be a Windows-specific quirk

It's not. They probably have BLODA

Iguananaut gravatar imageIguananaut ( 2020-11-18 14:59:20 +0100 )edit

The problem was with the antivirus as suggested by Iguannaut. Now it works, but I had to uninstall the antivirus, and I would like to know how to have both...

X1729 gravatar imageX1729 ( 2020-11-19 14:23:21 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2020-11-15 14:29:14 +0100

Seen: 287 times

Last updated: Nov 17 '20