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

Crash on random with Height => 0 #2089

Open
mahrud opened this issue May 20, 2021 · 1 comment
Open

Crash on random with Height => 0 #2089

mahrud opened this issue May 20, 2021 · 1 comment

Comments

@mahrud
Copy link
Member

mahrud commented May 20, 2021

Macaulay2, version 1.17.2
with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems,
               LLLBases, MinimalPrimes, PrimaryDecomposition, ReesAlgebra,
               Saturation, TangentCone

i1 : random(ZZ^2, ZZ^2, Height => 0)
/home/linuxbrew/.linuxbrew/bin/M2: line 2: 1349503 Floating point exception(core dumped) LD_LIBRARY_PATH=`dirname "$0"`/../lib/Macaulay2/lib:$LD_LIBRARY_PATH `dirname "$0"`/M2-binary "$@"
@DanGrayson
Copy link
Member

(gdb) where
#0  raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007ffff6e08a4d in __gmp_exception () from /lib/x86_64-linux-gnu/libgmp.so.10
#2  0x00007ffff6e08a94 in __gmp_divide_by_zero () from /lib/x86_64-linux-gnu/libgmp.so.10
#3  0x00007ffff6e1c69c in __gmpz_urandomm () from /lib/x86_64-linux-gnu/libgmp.so.10
#4  0x0000555555a6ea7d in rawRandomInteger (maxN=0x0) at /home/dan/src/M2/M2.git/M2/Macaulay2/e/interface/random.cpp:59
#5  0x00005555557b9e32 in RingZZ::random (this=0x7ffff3659c80) at /home/dan/src/M2/M2.git/M2/Macaulay2/e/ZZ.cpp:69
#6  0x00005555559287a0 in Matrix::random (R=0x7ffff3659c80, r=2, c=2, density=1, special_type=0) at /home/dan/src/M2/M2.git/M2/Macaulay2/e/matrix.cpp:718
#7  0x0000555555a6112d in IM2_Matrix_random (R=0x7ffff3659c80, r=2, c=2, fraction_non_zero=1, special_type=0, preference=0)
    at /home/dan/src/M2/M2.git/M2/Macaulay2/e/interface/matrix.cpp:207
#8  0x0000555555c2ed0c in interface_rawRandomConstantMatrix (e=0x7ffff2cafd40) at /home/dan/src/M2/M2.git/M2/Macaulay2/d/interface.dd:2209
#9  0x0000555555b93716 in evaluate_evalraw (c=0x7ffff1a8e5c0) at /home/dan/src/M2/M2.git/M2/Macaulay2/d/evaluate.d:1297

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

No branches or pull requests

2 participants