std::logic_error crash: inserted duplicate entry into a KD tree
Open
Nobody has claimed this yet.
Engine
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
Try this in M2:
R = ZZ/3[x,y,z];
isSupportedInZeroLocus(ideal vars R, HH_1 koszul vars R)
Result:
terminate called after throwing an instance of 'std::logic_error'
what(): ERROR: Inserted duplicate entry into a KD tree.
/home/linuxbrew/.linuxbrew/bin/M2: line 2: 2941408 Aborted (core dumped) LD_LIBRARY_PATH=`dirname "$0"`/../lib/Macaulay2/lib:$LD_LIBRARY_PATH `dirname "$0"`/M2-binary "$@"
If I prune the homology, it doesn't crash.
@mikestillman this might be at least tangentially related to the saturation algorithms in the engine.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the supplied M2 example, including the unpruned homology, and compare it with the pruned case. Start by tracing the saturation algorithms in the engine and the KD-tree insertion path; done means the original command completes without the duplicate-entry crash.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100