Possible infinite loop for bad generators
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 69/100
Research direction
Start with the retry loop in include/trieste/wf.h at lines 438–443, linked from the issue, and read how it generates names and handles bindings that disallow shadowing. Check the relevant tests for name generation and add coverage for a finite generator whose names are already used. Done when retries are capped and that case terminates; the issue does not specify the cap.
Written by the indexing model from the issue text.
Description
As brought up by Copilot's review of #209, there is a loop that continues to try and generate a fresh name until it succeeds:
With a generator that only generates a finite set of names, and for a binding that doesn't allow shadowing, this loop will never terminate. We should probably cap the number of retries in this loop.
- Dominant language
- C++
- Stars
- 53
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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.
More from microsoft/Trieste
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Large binary sizesOpen
Difficulty 4/5 3-5 days Newbie friendliness 30/100
All issues in microsoft/Trieste
Similar issues
-
area:qmc bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 3 days
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
Maintainers usually reply within 1 day
-
area/ysql kind/bug priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yugabyte/yugabyte-db#37523 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Cockatrice/Cockatrice#7896 ·
Maintainers usually reply within 1 day