jittor icon indicating copy to clipboard operation
jittor copied to clipboard

向量相乘出现Segmentation fault

Open nicheng0019 opened this issue 9 months ago • 2 comments

Describe the bug

运行

import jittor as jt

a = jt.randn((300, 400))

sumsum = jt.zeros((400))

for i in range(300):
    for j in range(300):
        if i != j:
            sumsum += a[i] * a[j]

如上程序,出现 Caught segfault at address 0xd44e000, thread_name: '', flush log... Segmentation fault (core dumped) 错误

Full Log

Provide a full log of Jittor execution, Jittor will log environment information which help us to locate your bugs. Provide a screenshot is also acceptable.

Minimal Reproduce

Reproduce this error with a file or several lines of code. If it is not possible, leave it blank.

Expected behavior

A clear and concise description of what you expected to happen.

nicheng0019 avatar Apr 30 '24 06:04 nicheng0019