🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@zhxchen17
Copy link
Contributor

@zhxchen17 zhxchen17 commented Sep 17, 2025

Summary:
In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue:

UnboundLocalError: local variable 'tracer_output' referenced before assignment

Default initialize this variable so that it's always present.

Test Plan:
CI

Rollback Plan:

Differential Revision: D82652815

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

Summary:
In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue:
```
UnboundLocalError: local variable 'tracer_output' referenced before assignment
```

Default initialize this variable so that it's always present.

Test Plan:
CI

Rollback Plan:

Differential Revision: D82652815
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 17, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit aef93cc with merge base 2291199 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot
Copy link
Contributor

@zhxchen17 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82652815.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 17, 2025
@zhxchen17
Copy link
Contributor Author

@pytorchbot merge

@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

mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
…3169)

Summary:
In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue:
```
UnboundLocalError: local variable 'tracer_output' referenced before assignment
```

Default initialize this variable so that it's always present.

Test Plan:
CI

Rollback Plan:

Differential Revision: D82652815

Pull Request resolved: pytorch#163169
Approved by: https://github.com/tugsbayasgalan
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
…3169)

Summary:
In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue:
```
UnboundLocalError: local variable 'tracer_output' referenced before assignment
```

Default initialize this variable so that it's always present.

Test Plan:
CI

Rollback Plan:

Differential Revision: D82652815

Pull Request resolved: pytorch#163169
Approved by: https://github.com/tugsbayasgalan
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
…3169)

Summary:
In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue:
```
UnboundLocalError: local variable 'tracer_output' referenced before assignment
```

Default initialize this variable so that it's always present.

Test Plan:
CI

Rollback Plan:

Differential Revision: D82652815

Pull Request resolved: pytorch#163169
Approved by: https://github.com/tugsbayasgalan
@Lucaskabela
Copy link
Contributor

@pytorchbot cherry-pick --onto release/2.9 --fixes "A crash from uninitialized value" -c regression

pytorchbot pushed a commit that referenced this pull request Nov 7, 2025
Summary:
In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue:
```
UnboundLocalError: local variable 'tracer_output' referenced before assignment
```

Default initialize this variable so that it's always present.

Test Plan:
CI

Rollback Plan:

Differential Revision: D82652815

Pull Request resolved: #163169
Approved by: https://github.com/tugsbayasgalan

(cherry picked from commit 6189a5f)
@pytorchbot
Copy link
Collaborator

Cherry picking #163169

The cherry pick PR is at #167366 and it is linked with issue A crash from uninitialized value. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

atalman pushed a commit that referenced this pull request Nov 7, 2025
[dynamo][ez] Initialize tracer_output to None by default. (#163169)

Summary:
In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue:
```
UnboundLocalError: local variable 'tracer_output' referenced before assignment
```

Default initialize this variable so that it's always present.

Test Plan:
CI

Rollback Plan:

Differential Revision: D82652815

Pull Request resolved: #163169
Approved by: https://github.com/tugsbayasgalan

(cherry picked from commit 6189a5f)

Co-authored-by: Zhengxu Chen <zhxchen17@meta.com>
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.

6 participants