-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
go version go1.12.1 linux/amd64
golangci-lint is on 39f46be (current HEAD)
I am verifying github.com/google/syzkaller on 51fc038380062aec71b4e39af9227c6db0be4fd8.
Currently we use gomatalinter on Travis and it usually passes (with GOGC=50 fits into 10GB).
Running CGO_ENABLED=1 GOMAXPROCS=1 GOGC=50 gometalinter.v2 ./... locally consumes 8-9GB.
But running golangci-lint run ./... crashes with OOM on my laptop that has 14GB of free RAM. I can make it pass locally with GOGC=20 (most of time in GC, but still faster than gometalinter), it consumes all 14GB.
But I can't make it work on Travis. Even with GOGC=20 it still OOM killed:
https://travis-ci.org/google/syzkaller/jobs/523524512
https://travis-ci.org/google/syzkaller/jobs/523524511
I don't know how actionable this is. But maybe there is some kind of leak? Or some way to run linters sequentially and GC in-between? Or some other way to trade time for space?