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

Various example errors/failed tests on MIPS architectures #2206

Closed d-torrance closed 2 years ago

d-torrance commented 3 years ago

From the latest build of the 1.18 package for mipsel in Debian experimental:

 -- making example results for "pruningMaps"                                
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-13273-0/16-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mipsel-Linux-Debian-11/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("SpectralSequences",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/SpectralSequences.m2")' <"/tmp/M2-13273-0/0_pruning__Maps.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/SpectralSequences/example-output/_pruning__Maps.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/SpectralSequences/example-output/_pruning__Maps.errors:0:1: (output file) error: Macaulay2 killed by signal 14
/tmp/M2-13273-0/0_pruning__Maps.m2:0:1: (input file)
M2: *** Error 14
 -- 59.1063 seconds elapsed

...

 -- making example results for "PageMap"                                    
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-13273-0/22-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mipsel-Linux-Debian-11/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("SpectralSequences",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/SpectralSequences.m2")' <"/tmp/M2-13273-0/0___Page__Map.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/SpectralSequences/example-output/___Page__Map.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/SpectralSequences/example-output/___Page__Map.errors:0:1: (output file) error: Macaulay2 killed by signal 14
/tmp/M2-13273-0/0___Page__Map.m2:0:1: (input file)
M2: *** Error 14
 -- 60.5872 seconds elapsed

...

 -- making example results for "Examples of change of rings Spectral Sequences"
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-13273-0/27-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mipsel-Linux-Debian-11/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("SpectralSequences",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/SpectralSequences.m2")' <"/tmp/M2-13273-0/0___Examples_spof_spchange_spof_springs_sp__Spectral_sp__Sequences.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/SpectralSequences/example-output/___Examples_spof_spchange_spof_springs_sp__Spectral_sp__Sequences.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/SpectralSequences/example-output/___Examples_spof_spchange_spof_springs_sp__Spectral_sp__Sequences.errors:0:1: (output file) error: Macaulay2 killed by signal 9
/tmp/M2-13273-0/0___Examples_spof_spchange_spof_springs_sp__Spectral_sp__Sequences.m2:0:1: (input file)
M2: *** Error 9
 -- 649.84 seconds elapsed

...

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

___Examples_spof_spchange_spof_springs_sp__Spectral_sp__Sequences.errors
************************************************************************
      |                  |         | 0 0 0 c b a 0 0 0 ||         | 0 0 0 c b a 0 0 0 ||                  |
      |{0, 0}            |         | 0 0 0 0 0 0 c b a ||         | 0 0 0 0 0 0 c b a ||{3, 0}            |
      |                  |                              |                              |                  |
      |                  |{1, 0}                        |{2, 0}                        |                  |
      +------------------+------------------------------+------------------------------+------------------+

o17 : Page

i18 : ee^0
Killed
___Page__Map.errors
*******************
o2 : Ideal of B

i3 : C = complete res monomialCurveIdeal(B,{1,3,4});

i4 : K = filteredComplex(J,C,4);

i5 : E = prune spectralSequence K;

i6 : pruningMaps E^2
Alarm clock
_pruning__Maps.errors
*********************
o2 : Ideal of B

i3 : C = complete res monomialCurveIdeal(B,{1,3,4});

i4 : K = filteredComplex(J,C,4);

i5 : E = prune spectralSequence K;

i6 : pruningMaps E^2
Alarm clock

../../m2/installPackage.m2:719:14:(1):[8]: --back trace--
d-torrance commented 3 years ago

Another example was killed on the latest mipsel build of the Debian package:

 -- making example results for "mixedVolume"                                
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-12241-0/1-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mipsel-Linux-Debian-11/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("MixedMultiplicity",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/MixedMultiplicity.m2")' <"/tmp/M2-12241-0/0_mixed__Volume.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/MixedMultiplicity/example-output/_mixed__Volume.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/MixedMultiplicity/example-output/_mixed__Volume.errors:0:1: (output file) error: Macaulay2 killed by signal 9
/tmp/M2-12241-0/0_mixed__Volume.m2:0:1: (input file)
M2: *** Error 9
 -- 617.257 seconds elapsed

...

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

_mixed__Volume.errors
*********************
o2 = 8

i3 : C = {(0,1,1),(1,0,1),(1,1,0),(2,1,1),(1,2,1),(1,1,2)}

o3 = {(0, 1, 1), (1, 0, 1), (1, 1, 0), (2, 1, 1), (1, 2, 1), (1, 1, 2)}

o3 : List

i4 : mixedVolume {C,C,C}
Killed

This is a relatively large example. Even on my decent amd64 machine it takes 22 seconds:

 -- making example result for "mixedVolume"                                  -- 22.3852 seconds elapsed
d-torrance commented 3 years ago

Another one, from the latest mipsel and mips64el builds:

 -- making example results for "pruningMaps(SpectralSequencePage)"          
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-19185-0/7-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mips64el-Linux-Debian-buildd-unstable/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("SpectralSequences",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/SpectralSequences.m2")' <"/tmp/M2-19185-0/0_pruning__Maps_lp__Spectral__Sequence__Page_rp.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/SpectralSequences/example-output/_pruning__Maps_lp__Spectral__Sequence__Page_rp.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/SpectralSequences/example-output/_pruning__Maps_lp__Spectral__Sequence__Page_rp.errors:0:1: (output file) error: Macaulay2 killed by signal 14
/tmp/M2-19185-0/0_pruning__Maps_lp__Spectral__Sequence__Page_rp.m2:0:1: (input file)
M2: *** Error 14
 -- 70.4804 seconds elapsed

...

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

_pruning__Maps_lp__Spectral__Sequence__Page_rp.errors
*****************************************************
o2 : Ideal of B

i3 : C = complete res monomialCurveIdeal(B,{1,3,4});

i4 : K = filteredComplex(J,C,4);

i5 : E = prune spectralSequence K;

i6 : pruningMaps E^2
Alarm clock

../../m2/installPackage.m2:719:14:(1):[8]: --back trace--
d-torrance commented 3 years ago

Another mipsel build failed due to a test being killed:

 -- running   check(2, "MultiprojectiveVarieties")                          
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-31642-0/5-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mipsel-Linux-Debian-buildd-unstable/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("MultiprojectiveVarieties",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/MultiprojectiveVarieties.m2")' <"/tmp/M2-31642-0/4.m2" >>"/tmp/M2-31642-0/4.tmp" 2>&1
/tmp/M2-31642-0/4.tmp:0:1: (output file) error: Macaulay2 killed by signal 9
/tmp/M2-31642-0/4.m2:0:1: (input file)
M2: *** Error 9
 -- 622.418 seconds elapsed

...

MultiprojectiveVarieties.m2:3128:1-3147:1: error:
 -- o10 : MultirationalMap (rational map from threefold in PP^3 x PP^2 x PP^4 to Y)
 -- 
 -- i11 : assert(apply(factor Phi,f -> first degrees ideal matrix f) == {{0, 1, 0}, {0, 0, 1}})
 -- 
 -- i12 : assert(apply(factor Psi,f -> first degrees ideal matrix f) == {{1, 0, 1}, {2, 0, 0}})
 -- 
 -- i13 : assert(Phi == Psi and inverse Phi == inverse Psi and source graph Phi == source graph Psi)
 -- 
 -- i14 : W' = apply(Z,z -> Psi^* z);
 -- Killed
 -- 
../m2/debugging.m2:20:6:(1):[9]: error: test(s) #2 of package MultiprojectiveVarieties failed.
d-torrance commented 3 years ago

I've started using IgnoreExampleErrors => true for examples on certain architectures, so there isn't much information, but there was another example failure on the latest mips64el build:

 -- making example results for "∏"                                        
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-20789-0/68-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mips64el-Linux-Debian-buildd-unstable/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("MultiprojectiveVarieties",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/MultiprojectiveVarieties.m2")' <"/tmp/M2-20789-0/0_∏.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_∏.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_∏.errors:0:1: (output file) error: Macaulay2 exited with status code 1
/tmp/M2-20789-0/0_∏.m2:0:1: (input file)
M2: *** Error 1
 -- 8.91977 seconds elapsed
 -- storing example results in ../../../usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_∏.out
 -- warning: missing file /<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_∏.out
d-torrance commented 3 years ago

Another example error during the latest Debian mips64el build:

 -- making example results for "segre(MultiprojectiveVariety)"              
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-889382-0/18-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mips64el-Linux-Debian-buildd-unstable/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("MultiprojectiveVarieties",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/MultiprojectiveVarieties.m2")' <"/tmp/M2-889382-0/0_segre_lp__Multiprojective__Variety_rp.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_segre_lp__Multiprojective__Variety_rp.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_segre_lp__Multiprojective__Variety_rp.errors:0:1: (output file) error: Macaulay2 exited with status code 1
/tmp/M2-889382-0/0_segre_lp__Multiprojective__Variety_rp.m2:0:1: (input file)
M2: *** Error 1
 -- 5.86915 seconds elapsed
d-torrance commented 3 years ago

Another failed test during the latest Debian mipsel build:

testing: CSM.test.m2
ideal (x*y, x*z, y*z, z )
                 3     2
Fulton class : 4H  + 2H

ii57 :        assert(fultonclass==4*H^3+2*H^2);

ii58 :        CSM twolinesnilp;
Command terminated by signal 9
88.54user 1.50system 1:27.57elapsed 102%CPU (0avgtext+0avgdata 94800maxresident)k
32inputs+0outputs (0major+1906minor)pagefaults 0swaps
CSM.test.errors:0: error output left here for the errors above:
make[5]: *** [../Makefile.test:68: CSM.test.out] Error 137
d-torrance commented 2 years ago

Another failed test from the mips64el build for 1.19:

testing: methods.m2

oo50 : FunctionClosure

ii51 : assert(timer(M, (offset,296,1)) < 0.1) -- recursion test

ii52 : -- WISHLIST: M(0,301,1)
       assert(timer((m, n) -> apply(m, i -> M(offset,n,1)), (10000,294)) < 1.5) -- timing test
Command terminated by signal 9
89.71user 0.16system 1:23.64elapsed 107%CPU (0avgtext+0avgdata 125120maxresident)k
0inputs+0outputs (0major+6166minor)pagefaults 0swaps
methods.errors:0: error output left here for the errors above:
make[5]: *** [../Makefile.test:68: methods.out] Error 137
d-torrance commented 2 years ago

Another one from the latest mips64el build:

testing: ComputationsBook::toricHilbertScheme
make[5]: Leaving directory '/<<PKGBUILDDIR>>/M2/Macaulay2/tests/ComputationsBook'
/usr/bin/make -C normal check 
make[5]: Entering directory '/<<PKGBUILDDIR>>/M2/Macaulay2/tests/normal'
testing: 0-homog.m2
testing: 000-core.m2
ii1149 : G = gb(I, Hilbert=>hf); -- this works, it seems

   -- registering gb 1389 at 0xfff0d7d700

   -- [gb]{2}(7,7)mmmmmmm{3}(11,11)mmmmmmmmmmm{4}(14,41)mmmmmmmmmmmmmm{5}(14,70)mmmm
   -- mmmm
 --removing gb 1359 at 0xfff0d7d8c0
mmmmmm{6}(14,84)mmmmmmCommand terminated by signal 9
89.39user 0.50system 1:14.35elapsed 120%CPU (0avgtext+0avgdata 121832maxresident)k
8inputs+0outputs (1major+12318minor)pagefaults 0swaps
000-core.errors:0: error output left here for the errors above:
000-core.m2:1456:--status: somebody should fix this! [dan]
000-core.m2:1728:--status: this is a strange one
000-core.m2:1729:--status: it's a gb computation that seems to run out of memory far too soon
000-core.m2:1730:--status: Mike?
make[5]: *** [../Makefile.test:68: 000-core.out] Error 137

EDIT: I'd already seen this before during an armel build; see #2184.

d-torrance commented 2 years ago

Another one from the latest mips64el build:

 -- running   check(31, "EngineTests")                                      
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-24448-0/63-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/mips64el-Linux-Debian-buildd-unstable/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("EngineTests",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/EngineTests.m2")' <"/tmp/M2-24448-0/62.m2" >>"/tmp/M2-24448-0/62.tmp" 2>&1
/tmp/M2-24448-0/62.tmp:0:1: (output file) error: Macaulay2 killed by signal 9
/tmp/M2-24448-0/62.m2:0:1: (input file)
M2: *** Error 9
 -- 572.277 seconds elapsed

.
.
.

EngineTests/LinearAlgebra.Test.all.m2:3:1-21:1: error:
 -- test testNullspace ring ZZp 101 time 1.412
 -- test testNullspace ring ZZp 32719 time 1.548
 -- test testNullspace ring ZZpFlint 2 time 1.472
 -- test testNullspace ring ZZpFlint 5 time 1.552
 -- test testNullspace ring ZZpFlint 101 time 1.412
 -- test testNullspace ring ZZpFlint 4294967291 time 1.416
 -- test testNullspace ring GF(3,2) time 1.644
 -- test testNullspace ring GF(5,12) time 2.148
 -- test testNullspace ring GF(3,2, Strategy=>"New") time 1.556
 -- test testNullsKilled
 -- 
../m2/debugging.m2:23:6:(1):[9]: error: test(s) #31 of package EngineTests failed.
d-torrance commented 2 years ago

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