Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sage 9.3 #4596

Closed
edgarcosta opened this issue Jun 4, 2021 · 5 comments
Closed

Sage 9.3 #4596

edgarcosta opened this issue Jun 4, 2021 · 5 comments

Comments

@edgarcosta
Copy link
Member

LMFDB makes Sage 9.3 segfault on OSX when calling sage.libs.pari.convert_gmp.new_gen_from_mpz_t, i.e., converting from pari's data type to gmp's data type at the C level. Here is a traceback: https://gist.github.com/alexjbest/4058fcc8acee924142b46540bbe2c33d

@roed314 and @alexjbest observe the exact same issue.

Has anyone else observed this before?
@roed314 and I are trying to figure out the reason, but we are a bit afraid that it has to do with threading from werkzeurg and pari not being built threadsafe

@edgarcosta
Copy link
Member Author

Here is perhaps a minimal example:

from concurrent.futures import ThreadPoolExecutor
with ThreadPoolExecutor() as e:
    j = e.submit(is_squarefree, 15)
j.result()

@roed314
Copy link
Contributor

roed314 commented Jun 4, 2021

I asked on sage-devel: https://groups.google.com/g/sage-devel/c/NmYojQqWzII

@roed314
Copy link
Contributor

roed314 commented Jun 4, 2021

And we've created a cypari2 issue.

@roed314
Copy link
Contributor

roed314 commented Jun 9, 2021

Sage 9.2 doesn't currently build for me because a failure in fpylll, but I was able to get a working version by using a beta version. If you're looking for a version of Sage that will run the LMFDB, I would suggest Sage 9.3.beta5 (the last before the cypari upgrade). If you're on OS X using Homebrew, you may also need https://trac.sagemath.org/ticket/31127 (which was merged in 9.3.beta6, so you'll have to include it on your own).

@roed314 roed314 closed this as completed Jun 11, 2021
@roed314
Copy link
Contributor

roed314 commented Jun 11, 2021

Fixed by #4603

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants