Macaulay2 / M2

The primary source code repository for Macaulay2, a system for computing in commutative algebra, algebraic geometry and related fields.
https://macaulay2.com
347 stars 231 forks source link

division by zero making example results for GraphicalModelsMLE::solverMLE(...,RealPrecision=>...) on i386 #2182

Closed d-torrance closed 2 years ago

d-torrance commented 3 years ago

From the i386 build of the Macaulay2 1.18 package for Debian experimental:

 -- making example results for "solverMLE(...,RealPrecision=>...)"          
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-310423-0/6-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/i686-Linux-Debian-11/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("GraphicalModelsMLE",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/GraphicalModelsMLE.m2")' <"/tmp/M2-310423-0/1_solver__M__L__E_lp..._cm__Real__Precision_eq_gt..._rp.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/GraphicalModelsMLE/example-output/_solver__M__L__E_lp..._cm__Real__Precision_eq_gt..._rp.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/GraphicalModelsMLE/example-output/_solver__M__L__E_lp..._cm__Real__Precision_eq_gt..._rp.errors:0:1: (output file) error: Macaulay2 exited with status code 1
/tmp/M2-310423-0/1_solver__M__L__E_lp..._cm__Real__Precision_eq_gt..._rp.m2:0:1: (input file)
M2: *** Error 1
 -- 2.28982 seconds elapsed

...

../../m2/debugging.m2:20:6:(1):[9]: error: installPackage: 1 error(s) occurred running examples for package GraphicalModelsMLE:

_solver__M__L__E_lp..._cm__Real__Precision_eq_gt..._rp.errors
*************************************************************
i1 : G = mixedGraph(digraph {{1,2},{1,3},{2,3},{3,4}},bigraph {{3,4}});

i2 : U = matrix{{6.2849049, 10.292875, 1.038475, 1.1845757}, {3.1938475, 3.2573, 1.13847, 1}, {4/5, 3/2, 9/8, 3/10}, {10/7, 2/3,1, 8/3}};

                4          4
o2 : Matrix RR    <--- RR
              53         53

i3 : solverMLE(G,U,RealPrecision=>10)
stdio:3:1:(3): error: division by zero!

../../m2/installPackage.m2:719:14:(1):[8]: --back trace--

Despite building Macaulay2 on i386 regularly (both PPA builds and local chroot builds), I've never seen this one before.

d-torrance commented 2 years ago

Closing - see https://github.com/Macaulay2/M2/issues/2329#issuecomment-1128018084