Skip to content

Segmentation Fault in torch.ops.aten.matrix_exp_backward #146796

@WLFJ

Description

@WLFJ

🐛 Describe the bug

example:

import torch

def f(*args):
    sym_0, sym_1, sym_2, sym_3, sym_4, sym_5, sym_6 = args
    var_976 = torch.ops.aten.blackman_window(window_length= sym_0, periodic= sym_1)
    var_956 = torch.ops.aten.special_logsumexp(self= var_976, dim= sym_2, keepdim= sym_3)
    var_781 = torch.ops.aten.randint(low= sym_4, high= sym_5, size= sym_6)
    print(var_956, var_781)
    return torch.ops.aten.matrix_exp_backward(self= var_956, grad= var_781)

f(358, False, (-1,), False, -1, 0, (1,))

result:

tensor(6.3650) tensor([-1])
[W209 20:23:45.571710835 TensorShape.cpp:4475] Warning: Tensor.mH is deprecated on 0-D tensors. Consider using x.conj(). (function operator())
fish: Job 2, 'python3 sigsegv-matrix_exp_back…' terminated by signal SIGSEGV (Address boundary error)

Versions

pytorch 2.7.0.dev20250209+cu124

cc @malfet

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: crashProblem manifests as a hard crash, as opposed to a RuntimeErrormodule: empty tensormodule: error checkingBugs related to incorrect/lacking error checkingtopic: fuzzertriagedThis 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