Ask Your Question
2

Segmentation fault in magma interface

asked 2020-09-27 17:49:22 +0100

denny gravatar image

I'm trying to use the Magma computational algebra interface to do polynomial interpolation for large lists of size 2^18. My code has the following:

p = magma("Interpolation(%s,%s)" % (I,V)).sage()

where I and V are lists each with 2^18 elements. This works just fine for smaller lists but for this size it looks like magma gets a segfault with the following error:

File "/SageMath/local/lib/python3.7/site-packages/sage/interfaces/magma.py", line 631, in set raise TypeError("Error executing Magma code:\n%s" % out) TypeError: Error executing Magma code:

Magma: Internal error

Machine type: intel64-linux

Memory usage: 49264.41MB

Segmentation fault

I know that Magma by itself can do the computation, but I would like to get it working using the Sage interface. Is this just not possible or am I doing something wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2020-09-28 09:49:56 +0100

FrédéricC gravatar image

Maybe this gets too big for the pexpect interface. Using this syntax may help

sage: L = [QQ(i) for i in range(7)]                                             
sage: mL = magma(L)                                                             
sage: magma.Interpolation(mL,mL).sage()
edit flag offensive delete link more

Comments

Thank you for the answer. I was able to run it for several hours and didn't run into the segfault error like before.

denny gravatar imagedenny ( 2020-09-29 22:00:10 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-09-27 17:49:22 +0100

Seen: 495 times

Last updated: Sep 27 '20