### 🐛 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