prime_pi problem

52 views
Skip to first unread message

dan...@gmail.com

unread,
Feb 13, 2022, 2:07:13 PM2/13/22
to sage-devel
prime_pi() fails in Sage 9.5 on my MacBook Pro M1, MacOs 11.3.1.

I am using the macOS app available at: https://github.com/3manifolds/Sage_macOS/releases.

prime_pi() apparently causes a segmentation fault for any argument less than or equal to 15359. For whatever it's worth, 15359 is the 1794th prime number.

This problem does NOT occur with version 9.4 of the same app, nor does it occur in CoCalc 9.5.

Here is the output I get from running prime_pi(15359):

│ SageMath version 9.5, Release Date: 2022-01-30                     │

│ Using Python 3.9.9. Type "help()" for help.                        │

sage: prime_pi(15359)                                                           

------------------------------------------------------------------------

(no backtrace available)

------------------------------------------------------------------------

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.

------------------------------------------------------------------------

zsh: segmentation fault  

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.


[Process completed]

Reply all
Reply to author
Forward
0 new messages