Skip to content

Segmentation fault in torch.ops.profiler._call_end_callbacks_on_jit_fut #147722

@vwrewsge

Description

@vwrewsge

🐛 Describe the bug

Passing a tuple with None value to torch.ops.profiler._call_end_callbacks_on_jit_fut can cause a Segmentation fault.

Code

import torch
torch.ops.profiler._call_end_callbacks_on_jit_fut(torch.tensor(0), None)

Output

Segmentation fault

Versions

PyTorch version: 2.6.0+cu124
Is debug build: False
CUDA used to build PyTorch: 12.4
ROCM used to build PyTorch: N/A

cc @robieta @chaekit @guotuofeng @guyang3532 @dzhulgakov @davidberard98 @briancoutinho @sraikund16 @sanrise

Metadata

Metadata

Assignees

No one assigned

    Labels

    oncall: profilerprofiler-related issues (cpu, gpu, kineto)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions