v-analyzer icon indicating copy to clipboard operation
v-analyzer copied to clipboard

v-analyzer segmentation fault on large files/projects

Open JalonSolov opened this issue 8 months ago • 2 comments

Describe the bug

v-analyzer is not limiting itself to V files.

Expected Behavior

v-analyzer only indexes V related files.

Current Behavior

v-analyzer apparently tries to index ALL files in a project.

In one project, I generated a 13 GB .txt file, and v-analyzer started crashing with a segmentation fault. After I deleted that file, v-analyzer worked again.

Reproduction Steps

Have a huge file in a V project. Watch it bomb out with a segmentation fault.

Possible Solution

Limit to indexing .v, .vv, and .vsh files. It's fine if it notes the other files' existence, but it should not try to index them.

Additional Information/Context

No response

Environment details (v doctor output)

V full version: V 0.4.6 efa98d9.58f4e12
OS: linux, "Manjaro Linux"
Processor: 32 cpus, 64bit, little endian, AMD Ryzen 9 7950X 16-Core Processor

getwd: /home/jalon
vexe: /home/jalon/git/v/v
vexe mtime: 2024-06-19 11:33:44

vroot: OK, value: /home/jalon/git/v
VMODULES: OK, value: /home/jalon/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.45.1
Git vroot status: weekly.2024.24-26-g58f4e126
.git/config present: true

CC version: cc (GCC) 14.1.1 20240522
thirdparty/tcc status: thirdparty-linux-amd64 40e5cbb5

Editor name

vscode

v-analyzer Version

v-analyzer version 0.0.4-beta.1.e91f8a4

VS Code Extension Version

v0.0.4

JalonSolov avatar Jun 19 '24 13:06 JalonSolov