Skip to content

rust-analyzer causes machine reboot on big project #8599

@nappa85

Description

@nappa85

I'll try to be more details complete possible, but probably I'll end up giving you a lot of confusion...

I've created a really, REALLY, big workspace, you can find it here: https://github.com/nappa85/serde_fix
The biggest crate on this workspace takes like 8GB of RAM to build, and sometime it makes rustc crash with some kind of UB. I've already opened an issue about it, but at the moment it isn't going anywhere: rust-lang/rust#84245

When rust-analyzer is involved, like when I open with VSCode the workspace, it is really, REALLY rare that the process ends up correctly, it often goes on error, and sometimes it makes my machine instantly reboot, like it goes on kernel panic, but I can't find any log about it.

To add details, while I was developing the project, once it has reached a certain threshold, rust-analyzer started going on error really often with "proc-macro server crashed".

It has to be said, the project is fully made of structs and enums with a lot of derive macro associated.

The hardware is ok, I tested it in any possible way.
Haven't tested rust-analyzer on windows, only on linux, but rustc problem have been replicated on both.

Haven't been able to replicate rustc problem on slower machines (mine is a Ryzen7 with 16GB of RAM), tomorrow I'll get another Ryzen7 machine to test on

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions