A simple funny bug in Sagemath

87 views
Skip to first unread message

YuFei Duan

unread,
Dec 7, 2021, 3:59:42 AM12/7/21
to sage-devel
If I running 3 lines codes below:

PR.<x,y> = PolynomialRing(Zmod(0x10001))
f = (x + y) ^ 3
print(f.factor())

sagemath will crash:
------------------------------------------------------------------------ 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.2/src/bin/sage-python: line 2: 1044 Segmentation fault (core dumped) sage -python "$@"

Eric Gourgoulhon

unread,
Dec 7, 2021, 4:54:48 AM12/7/21
to sage-devel
Hi,

It works for me with SageMath 9.4. Maybe you should upgrade to that version (the last stable one).

Eric.

Emmanuel Charpentier

unread,
Dec 7, 2021, 11:28:39 AM12/7/21
to sage-devel
WorksForMe(TM) in 9.5.beta7.

William Stein

unread,
Dec 7, 2021, 11:56:31 AM12/7/21
to sage-...@googlegroups.com
I can confirm that this is broken in sage-9.2, but it works fine in sage-9.3.  You should upgrade.

On Cocalc.com we keep a couple of older versions of Sage around:

~/cocalc/src/packages/next/components/account/config$ sage-.[tab]
sage-9.1  sage-9.2  sage-9.3  sage-9.4  


--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/a6d546f4-0799-4bb3-983d-b48fc3fe92afn%40googlegroups.com.


--

YuFei Duan

unread,
Dec 8, 2021, 5:53:46 AM12/8/21
to sage-...@googlegroups.com
thanks guys, I had upgraded sage to 9.3 yesterday. And it is really a funny bug :)

William Stein <wst...@gmail.com> 于2021年12月8日周三 00:56写道:
Reply all
Reply to author
Forward
0 new messages