Skip to content

[Dynamo][Bug] _debug_get_cache_entry_list causes core dump for resume functions #120607

@youkaichao

Description

@youkaichao

🐛 Describe the bug

A minimal working example:

import torch

@torch.compile
def f(x):
    s = "Hello" + x
    print(s)

f(", world!")

from torch._dynamo.eval_frame import _debug_get_cache_entry_list

name = ""
for x in list(globals().keys()):
    if x.startswith("__resume"):
        name = x # should be __resume_at_14_0

code = globals()[name]

print(_debug_get_cache_entry_list(code))

Versions

PyTorch 2.3.0.dev20240225.

cc @ezyang @msaroufim @bdhirsh @anijain2305 @zou3519

Metadata

Metadata

Assignees

Labels

dynamo-must-fixThese bugs affect TorchDynamo reliability.oncall: pt2triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions