Macaulay2 / Macaulay2/M2

Illegal instruction making example results for FourTiTwo::toricGraverDegrees

Open
#2,297 0 comments 0 reactions 0 assignees View on GitHub
build issue
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

Got the following on an [amd64 PPA build in Ubuntu 22.04](https://launchpadlibrarian.net/568035555/buildlog_ubuntu-jammy-amd64.macaulay2_1.18.0.1+git202111090031-0ppa202111090042~ubuntu22.04.1_BUILDING.txt.gz):

```m2
-- making example results for "toricGraverDegrees"
ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512; cd /tmp/M2-2785-0/4-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<>/macaulay2-1.18.0.1+git202111090031/M2/usr-dist/x86_64-Linux-Ubuntu-22.04/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("FourTiTwo",Reload=>true,FileName=>"/<>/macaulay2-1.18.0.1+git202111090031/M2/Macaulay2/packages/FourTiTwo.m2")' <"/tmp/M2-2785-0/0_toric__Graver__Degrees.m2" >>"/<>/macaulay2-1.18.0.1+git202111090031/M2/usr-dist/common/share/doc/Macaulay2/FourTiTwo/example-output/_toric__Graver__Degrees.errors" 2>&1
/<>/macaulay2-1.18.0.1+git202111090031/M2/usr-dist/common/share/doc/Macaulay2/FourTiTwo/example-output/_toric__Graver__Degrees.errors:0:1: (output file) error: Macaulay2 exited with status code 1
/tmp/M2-2785-0/0_toric__Graver__Degrees.m2:0:1: (input file)
M2: *** Error 1
-- 1.86455 seconds elapsed
-- storing example results in ../../../usr-dist/common/share/doc/Macaulay2/FourTiTwo/example-output/_toric__Graver__Degrees.out
-- warning: missing file /<>/macaulay2-1.18.0.1+git202111090031/M2/usr-dist/common/share/doc/Macaulay2/FourTiTwo/example-output/_toric__Graver__Degrees.out

...

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

_toric__Graver__Degrees.errors
******************************
| 1 1 1 1 0 0 0 0 0 0 0 |
| 0 0 0 0 1 1 1 0 0 0 0 |
| 0 0 0 0 0 0 0 1 1 1 1 |
| 1 2 3 4 1 2 3 1 2 3 4 |

5 11
o4 : Matrix ZZ <--- ZZ

i5 : toricGraverDegrees(M)
stdio:5:1:(3): error: 4ti2 returned an error
running: /usr/bin/4ti2-output --degrees /tmp/M2-2927-0/5.gra
-------------------------------------------------
4ti2 version 1.6.9
Copyright 1998, 2002, 2006, 2015 4ti2 team.
4ti2 comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome
to redistribute it under certain conditions.
For details, see the file COPYING.
-------------------------------------------------
Illegal instruction (core dumped)

../../m2/installPackage.m2:726:18:(1):[8]: --back trace--
```

This is really a 4ti2 bug, but it affects Macaulay2. A new 4ti2 package was [uploaded to Debian unstable](https://tracker.debian.org/news/1273294/accepted-4ti2-169ds-4-source-into-unstable/) and then [synced to Ubuntu 22.04](https://launchpad.net/ubuntu/+source/4ti2/1.6.9+ds-4/+build/22372127) last week, so I imagine that's related.

I'm not able to reproduce it in an Ubuntu 22.04 chroot, however.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the FourTiTwo package example for toricGraverDegrees and the failing _toric__Graver__Degrees.m2 output. Review debugging.m2 and installPackage.m2 around example execution, then compare the 4ti2-output invocation and the reported illegal-instruction failure. Done means identifying a reproducible Macaulay2-side resolution or documenting that the failure belongs to the external 4ti2 package.

Written by the indexing model from the issue text.

Assessment

Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.