Re: [sage-devel] Re: A simple funny bug in Sagemath

2021-12-08 Thread YuFei Duan
thanks guys, I had upgraded sage to 9.3 yesterday. And it is really a funny
bug :)

William Stein  于2021年12月8日周三 00:56写道:

> 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
>
>
> On Tue, Dec 7, 2021 at 1:55 AM Eric Gourgoulhon 
> wrote:
>
>> Hi,
>>
>> It works for me with SageMath 9.4. Maybe you should upgrade to that
>> version (the last stable one).
>>
>> Eric.
>>
>> Le mardi 7 décembre 2021 à 09:59:42 UTC+1, duan...@gmail.com a écrit :
>>
>>> If I running 3 lines codes below:
>>>
>>> PR. = 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 "$@"
>>>
>> --
>> 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+unsubscr...@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
>> 
>> .
>>
>
>
> --
> William (http://wstein.org)
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CACLE5GAe-BLoYVHV4NcJmFz6dWB6eAWn6pjwUK7ruvMDz8zYrQ%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAt00gfemaLsaVGCGMtQuK5gbpAViZyW84b2YeHx7yMw%2B-Fn%3DQ%40mail.gmail.com.


Re: [sage-devel] Re: A simple funny bug in Sagemath

2021-12-07 Thread William Stein
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


On Tue, Dec 7, 2021 at 1:55 AM Eric Gourgoulhon 
wrote:

> Hi,
>
> It works for me with SageMath 9.4. Maybe you should upgrade to that
> version (the last stable one).
>
> Eric.
>
> Le mardi 7 décembre 2021 à 09:59:42 UTC+1, duan...@gmail.com a écrit :
>
>> If I running 3 lines codes below:
>>
>> PR. = 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 "$@"
>>
> --
> 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+unsubscr...@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
> 
> .
>


-- 
William (http://wstein.org)

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CACLE5GAe-BLoYVHV4NcJmFz6dWB6eAWn6pjwUK7ruvMDz8zYrQ%40mail.gmail.com.


[sage-devel] Re: A simple funny bug in Sagemath

2021-12-07 Thread Emmanuel Charpentier
WorksForMe(TM) in 9.5.beta7.

Le mardi 7 décembre 2021 à 10:54:48 UTC+1, Eric Gourgoulhon a écrit :

> Hi,
>
> It works for me with SageMath 9.4. Maybe you should upgrade to that 
> version (the last stable one). 
>
> Eric. 
>
> Le mardi 7 décembre 2021 à 09:59:42 UTC+1, duan...@gmail.com a écrit :
>
>> If I running 3 lines codes below:
>>
>> PR. = 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 "$@"
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/adb686b6-71ed-4faa-b577-36a8d9499576n%40googlegroups.com.


[sage-devel] Re: A simple funny bug in Sagemath

2021-12-07 Thread Eric Gourgoulhon
Hi,

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

Eric. 

Le mardi 7 décembre 2021 à 09:59:42 UTC+1, duan...@gmail.com a écrit :

> If I running 3 lines codes below:
>
> PR. = 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 "$@"
>

-- 
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+unsubscr...@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.