Skip to content

GolangCI crash on [runner/skip dirs] in Centos7 #260

Closed
@chmouel

Description

@chmouel

I keep getting a crash under a fresh centos:7 docker container, I am not really sure when this is started but the CI on friday (26th) was working fine,

Version: 14f4dce
go version go1.9.4 linux/amd64

[test@ea05a8319767 golangci-lint]$ make
go install ./cmd/...
GL_TEST_RUN=1 golangci-lint run -v
INFO [config_reader] Config search paths: [./ /home/test/go/src/github.com/golangci/golangci-lint /home/test/go/src/github.com/golangci /home/test/go/src/github.com /home/test/go/src /home/test/go /home/test /home /]
INFO [config_reader] Used config file .golangci.yml
INFO [lintersdb] Active 21 linters: [deadcode depguard dupl errcheck goconst gocyclo gofmt goimports golint govet ineffassign interfacer lll megacheck misspell nakedret structcheck typecheck unconvert unparam varcheck]
INFO [loader] Go packages loading at mode load deps types and syntax took 5.367041548s
INFO [loader] SSA repr building took 923.596675ms
INFO [loader/astcache] Parsed AST of all pkg.GoFiles: [] for 412ns
INFO [runner/skip dirs] sorted abs args: [/home/test/go/src/github.com/golangci/golangci-lint]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa52ed5]

goroutine 3830 [running]:
github.com/golangci/golangci-lint/vendor/github.com/golangci/go-tools/lint.(*fnVisitor).Visit(0xc4467bba40, 0x11bb740, 0xc435d98630, 0x1, 0xc4212b2b48)
        /home/test/go/src/github.com/golangci/golangci-lint/vendor/github.com/golangci/go-tools/lint/lint.go:837 +0x405
github.com/golangci/golangci-lint/vendor/github.com/golangci/go-tools/lint.(*globalVisitor).Visit(0xc4467bba20, 0x11bb740, 0xc435d98630, 0x11b68c0, 0xc4467bba20)
        /home/test/go/src/github.com/golangci/golangci-lint/vendor/github.com/golangci/go-tools/lint/lint.go:820 +0xdc
go/ast.Walk(0x11b68c0, 0xc4467bba20, 0x11bb740, 0xc435d98630)
        /usr/lib/golang/src/go/ast/walk.go:52 +0x66
go/ast.walkDeclList(0x11b68c0, 0xc4467bba20, 0xc42ca459c0, 0x3, 0x4)
        /usr/lib/golang/src/go/ast/walk.go:38 +0x81
go/ast.Walk(0x11b68c0, 0xc4467bba20, 0x11bb6c0, 0xc4367f9300)
        /usr/lib/golang/src/go/ast/walk.go:353 +0x2672
github.com/golangci/golangci-lint/vendor/github.com/golangci/go-tools/lint.NodeFns.func1(0xc44555f360, 0xc446846780, 0xc4466bd9f0)
        /home/test/go/src/github.com/golangci/golangci-lint/vendor/github.com/golangci/go-tools/lint/lint.go:787 +0x96
created by github.com/golangci/golangci-lint/vendor/github.com/golangci/go-tools/lint.NodeFns
        /home/test/go/src/github.com/golangci/golangci-lint/vendor/github.com/golangci/go-tools/lint/lint.go:784 +0x112
make: *** [test] Error 2
[test@ea05a8319767 golangci-lint]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions