-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existstopic: memoryHuge memory consumptionHuge memory consumption
Milestone
Description
After working fine for 6ish months we have had to disable static-check linter on the terraform azure provider as we were unable to get it to finish anymore in travis due to it running out of memory. We have set concurrency to 1 and GOGC=5.
Please include the following information:
-
Version of golangci-lint:
golangci-lint --version(or git commit if you don't use binary distribution)
travis does aGO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-linteach run -
Config file:
cat .golangci.yml
GOGC=5 (while true; do sleep 300; echo "(Hey travis! I'm still alive and linting)"; done) & PID=$$!; echo $$PID; \
golangci-lint run ./... -v --no-config --concurrency 1 --deadline=30m10s --disable-all --enable=staticcheck; ES=$$?; kill -9 $$PID; exit $$ES
- Go environment:
go version && go env
travis:
dist: xenial
sudo: required
services:
- docker
language: go
go:
- "1.13.x"
branches:
only:
- master
env:
global:
GOFLAGS=-mod=vendor
- Verbose output of running:
golangci-lint run -v
$ gimme version
v1.5.3
$ go version
go version go1.13 linux/amd64
go.env
$ go env
install.1
0.58s$ bash scripts/gogetcookie.sh
install.2
34.84s$ make tools
1062.78s$ GOGC=5 make lintstatic
==> Checking source code against static check linters...
(while true; do sleep 300; echo "(Hey travis! I'm still alive and linting)"; done) & PID=$!; echo $PID; \
golangci-lint run ./... -v --no-config --concurrency 1 --deadline=30m10s --disable-all --enable=staticcheck; ES=$?; kill -9 $PID; exit $ES
5553
INFO [lintersdb] Active 1 linters: [staticcheck]
(Hey travis! I'm still alive and linting)
(Hey travis! I'm still alive and linting)
INFO [loader] Go packages loading at mode 575 (types_sizes|deps|exports_file|imports|compiled_files|files|name) took 11m1.095392691s
(Hey travis! I'm still alive and linting)
fatal error: runtime: out of memory
runtime stack:
runtime.throw(0xf2afad, 0x16)
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/panic.go:774 +0x72
runtime.sysMap(0xc1a4000000, 0x4000000, 0x18a0358)
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/mem_linux.go:169 +0xc5
runtime.(*mheap).sysAlloc(0x187dd80, 0x2000, 0x41f392, 0x7f555fde6008)
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/malloc.go:701 +0x1cd
runtime.(*mheap).grow(0x187dd80, 0x1, 0xffffffff)
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/mheap.go:1252 +0x42
runtime.(*mheap).allocSpanLocked(0x187dd80, 0x1, 0x18a0368, 0xc000055320)
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/mheap.go:1163 +0x291
runtime.(*mheap).alloc_m(0x187dd80, 0x1, 0x7f555cc0000e, 0x45a12a)
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/mheap.go:1015 +0xc2
runtime.(*mheap).alloc.func1()
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/mheap.go:1086 +0x4c
runtime.systemstack(0x7fff0cb74220)
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/asm_amd64.s:370 +0x66
runtime.mstart()
/home/travis/.gimme/versions/go1.13.linux.amd64/src/runtime/proc.go:1146
sibicramesh, primalmotion and bflad
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existstopic: memoryHuge memory consumptionHuge memory consumption