cloudfoundry / jvmkill

Terminate the JVM when resources are exhausted
Apache License 2.0
30 stars 11 forks source link

`cargo test --all` crashes macOS High Sierra #14

Closed glyn closed 5 years ago

glyn commented 6 years ago

This occurred at commit 8bbbb4322e on macOS 10.13.4 with rust 1.24.0.

Also happens with rust 1.25.0.

This is reminiscent of https://github.com/cloudfoundry/jvmkill/issues/11.

glyn commented 6 years ago

I experimented with setrlimit(RLIMIT_NPROC, n) for various values of n. I couldn't find a value which made the tests pass but prevented macOS from crashing.

glyn commented 6 years ago

The macOS CI is running Sierra, so this behaviour seems to have been introduced by High Sierra.

nebhale commented 5 years ago

Later versions of rust on High Sierra seem to have solved this.