Macaulay2 / Macaulay2/M2

std::logic_error crash: inserted duplicate entry into a KD tree

Open
#2,264 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.