#Cargo crashes system, OS fucked (can't boot), 3rd time last 24h (arch).

19 messages · Page 1 of 1 (latest)

trail vessel
#

this is the third time this has happened:

build with cargo
pc slowed, no output, nothing works.
shut down pc
reboot, emergency shell.

recover steps:

fsck all partitions
chroot into system
reinstall kernel (takes ages somehow, 40m compared to normal 2m)

after the third time I noticed that this was caused by building a package with cargo (but only sometimes)

What is causing this, and how can I prevent this?

graceful ether
#

you build what with cargo?

#

also please run it in a vm

trail vessel
bright hound
trail vessel
#

that might be it then

#

I'm using a Chromebook with 4GiB

#

but the program is not huge or something

#

but I'll keep an eye on my ram counter

bright hound
#

Couldn't find anything more. If it continues, I would advise giving more details so the people that do use linux can effectively help. That would be things like the system logs, the thing you are building/it's dependencies, arch and kernel version, rust version, etc.

sinful fiber
#

I agree that this is likely not an issue specifically with Rust, rather an issue with your setup (PC/install) that is being triggered by a Rust compile. Could you share the Cargo.toml of the project?

earnest vine
#

and before you ask, this has nothing to do with rust, it's just that your system kernel failed to OOM rustc/cargo and froze itself (and most likely due to sysctl misconfigurations)

trail vessel
#

I just encountered the same problem on a different machine (server)

#

since that is a minimal install the bug is likely either caused by any of the core packages or the compiler

sinful fiber
#

Well... you're pulling in rocket, serde, and tokio, some of the largest crates in the ecosystem, so you'll definitely be running into memory issues on a 4GiB chromebook

trail vessel
#

it seems that the compiler does not exceed 0.6GiB memory usage while building

#

averaging on 1.3/3.8 GiB