Repository navigation
[dynamo] Name a recursion overflow while pickling guard state in its PackageError - #196477
bobrenjc93 wants to merge 2 commits into
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/196477
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 25 PendingAs of commit 42fc04a with merge base e67c870 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
[ghstack-poisoned]
|
Claude finished @bobrenjc93's task in 12m 43s —— View job Review:
|
|
Folded into #196470: the RecursionError clause is a message-only change on top of the broad PackageError mapping, so it now lands with that mapping; its test was rewritten to a shape reachable at that commit. |
Stack from ghstack (oldest at bottom):
A guard rooted at an fqn-mismatched function is now traversed rather than
dropped, so pickle walks whatever user data hangs off it. A deep but finite
object graph, or a pathological
__reduce__that hands back a fresh objectevery time and never memoizes, overflows the recursion limit inside
dump.The previous commit's broad mapping already turns that into a
PackageError(a bypass, or an error under
strict_precompile) rather than a rawRecursionErrorthat hard-fails a program that compiled fine before; thisgives it a dedicated clause and message, since the interpreter's "maximum
recursion depth exceeded while calling a Python object" says nothing about
which stage overflowed. Walking the object graph to report WHERE is skipped
deliberately: it would recurse again off an already exhausted stack.
Test Plan:
On the previous commit the test gets a PackageError with the interpreter's
message and fails the regex.
Authored with an AI assistant.