You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using the rough LWE estimator for set n and distributions, there is a specific range of value of q for which either python crashes or it outputs an error.
How I encountered the problem
In a fresh session of sage (after importing the estimator with from estimator import *), I can run the following estimations with no problem:
But for values between 2^180 and 2^280 there is unexpected behavior.
Either an error and some results:
sage: params = LWE.Parameters(n=2^14, q=2^240, Xs = ND.Uniform(-1,1,n), Xe=ND.DiscreteGaussian(3.19))
sage: LWE.estimate.rough(params)
Algorithm functools.partial(<estimator.lwe_dual.MATZOV object at 0x743d85bb9e80>, red_cost_model=<estimator.reduction.ADPS16 object at 0x743d860cb830>) on LWEParameters(n=16384, q=1766847064778384329583297500742918515827483896875618958121606201292619776, Xs=D(σ=0.82), Xe=D(σ=3.19), m=+Infinity, tag=None) failed with Calling ceil() on infinity or NaN
usvp :: rop: ≈2^218.4, red: ≈2^218.4, δ: 1.002540, β: 748, d: 31817, tag: usvp
{'usvp': rop: ≈2^218.4, red: ≈2^218.4, δ: 1.002540, β: 748, d: 31817, tag: usvp}
Or a crash for values around 260:
sage: params = LWE.Parameters(n=2^14, q=2^250, Xs = ND.Uniform(-1,1,n), Xe=ND.DiscreteGaussian(3.19))
sage: LWE.estimate.rough(params)
sig_error() without sig_on()
...
(very long crash log)
------------------------------------------------------------------------
Unhandled SIGABRT: An abort() 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.
------------------------------------------------------------------------
[1] 23531 IOT instruction (core dumped) sage
OS/specs
I am running sage 10.3 (python 3.12.3) on linux with a 13th gen i9 and 32Gb of RAM.
Is this "expected" (wrong choice of parameters?) or isolated behavior? Thanks.
The text was updated successfully, but these errors were encountered:
Description
When using the rough LWE estimator for set
n
and distributions, there is a specific range of value ofq
for which either python crashes or it outputs an error.How I encountered the problem
In a fresh session of sage (after importing the estimator with
from estimator import *
), I can run the following estimations with no problem:But for values between
2^180
and2^280
there is unexpected behavior.Either an error and some results:
Or a crash for values around 260:
OS/specs
I am running sage 10.3 (python 3.12.3) on linux with a 13th gen i9 and 32Gb of RAM.
Is this "expected" (wrong choice of parameters?) or isolated behavior? Thanks.
The text was updated successfully, but these errors were encountered: