I have a particular matrix on which computing .right_kernel()
by Sage 9.3 results in SignalError: Illegal instruction
.
How to deal with such an error?
sage: load("bug_illegal_kernel.sage")
---------------------------------------------------------------------------
SignalError Traceback (most recent call last)
<ipython-input-1-5e05d00e2706> in <module>
----> 1 load("bug_illegal_kernel.sage")
/usr/local/SageMath.93/local/lib/python3.9/site-packages/sage/misc/persist.pyx in sage.misc.persist.load (build/cythonized/sage/misc/persist.c:2557)()
141
142 if sage.repl.load.is_loadable_filename(filename):
--> 143 sage.repl.load.load(filename, globals())
144 return
145
/usr/local/SageMath.93/local/lib/python3.9/site-packages/sage/repl/load.py in load(filename, globals, attach)
270 add_attached_file(fpath)
271 with open(fpath) as f:
--> 272 exec(preparse_file(f.read()) + "\n", globals)
273 elif ext == '.spyx' or ext == '.pyx':
274 if attach:
<string> in <module>
/usr/local/SageMath.93/local/lib/python3.9/site-packages/sage/matrix/matrix2.pyx in sage.matrix.matrix2.Matrix.right_kernel (build/cythonized/sage/matrix/matrix2.c:31059)()
4717
4718 # Go get the kernel matrix, this is where it all happens
-> 4719 M = self.right_kernel_matrix(*args, **kwds)
4720
4721 ambient = R**self.ncols()
/usr/local/SageMath.93/local/lib/python3.9/site-packages/sage/matrix/matrix2.pyx in sage.matrix.matrix2.Matrix.right_kernel_matrix (build/cythonized/sage/matrix/matrix2.c:29696)()
4318 if M is None:
4319 try:
-> 4320 format, M = self._right_kernel_matrix(algorithm=algorithm, proof=proof)
4321 except AttributeError:
4322 pass
/usr/local/SageMath.93/local/lib/python3.9/site-packages/sage/matrix/matrix_integer_dense.pyx in sage.matrix.matrix_integer_dense.Matrix_integer_dense._right_kernel_matrix (build/cythonized/sage/matrix/matrix_integer_dense.cpp:22453)()
2693 proof = kwds.pop('proof', None)
2694 proof = get_proof_flag(proof, "linear_algebra")
-> 2695 K = self._rational_kernel_iml().transpose().saturation(proof=proof)
2696 format = 'computed-iml-int'
2697 else:
/usr/local/SageMath.93/local/lib/python3.9/site-packages/sage/matrix/matrix_integer_dense.pyx in sage.matrix.matrix_integer_dense.Matrix_integer_dense._rational_kernel_iml (build/cythonized/sage/matrix/matrix_integer_dense.cpp:32352)()
3880 time = verbose('computing null space of %s x %s matrix using IML'%(self._nrows, self._ncols))
3881 cdef mpz_t * m = fmpz_mat_to_mpz_array(self._matrix)
-> 3882 sig_on()
3883 dim = nullspaceMP(self._nrows, self._ncols, m, &mp_N)
3884 sig_off()
SignalError: Illegal instruction