Skip to content

Fix infinite loop when iterating over an empty zip#159673

Closed
guilhermeleobas wants to merge 1 commit intogh/guilhermeleobas/221/basefrom
gh/guilhermeleobas/221/head
Closed

Fix infinite loop when iterating over an empty zip#159673
guilhermeleobas wants to merge 1 commit intogh/guilhermeleobas/221/basefrom
gh/guilhermeleobas/221/head

Conversation

@guilhermeleobas
Copy link
Collaborator

@guilhermeleobas guilhermeleobas commented Aug 1, 2025

Stack from ghstack (oldest at bottom):

Dynamo would enter in an infinite recursion when
ZipVariable.next_variable(tx) was called and there was no iterable to
be iterated

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 1, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/159673

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 4100255 with merge base e4b123b (image):

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

guilhermeleobas added a commit that referenced this pull request Aug 1, 2025
guilhermeleobas added a commit that referenced this pull request Aug 1, 2025
Dynamo would enter in an infinite recursion when
`ZipVariable.next_variable(tx)` was called and there was no iterable to
be iterated

ghstack-source-id: 4faf8c8
Pull-Request: #159673
@guilhermeleobas guilhermeleobas marked this pull request as ready for review August 4, 2025 19:49
@guilhermeleobas
Copy link
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 7, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

hinriksnaer pushed a commit to hinriksnaer/pytorch that referenced this pull request Aug 8, 2025
Dynamo would enter in an infinite recursion when
`ZipVariable.next_variable(tx)` was called and there was no iterable to
be iterated

Pull Request resolved: pytorch#159673
Approved by: https://github.com/williamwen42
@github-actions github-actions bot deleted the gh/guilhermeleobas/221/head branch September 8, 2025 02:13
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Dynamo would enter in an infinite recursion when
`ZipVariable.next_variable(tx)` was called and there was no iterable to
be iterated

Pull Request resolved: pytorch#159673
Approved by: https://github.com/williamwen42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants