Skip to content

fatal error: concurrent map writes #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yaches opened this issue Jul 17, 2019 · 16 comments
Closed

fatal error: concurrent map writes #612

yaches opened this issue Jul 17, 2019 · 16 comments
Labels
bug Something isn't working

Comments

@yaches
Copy link

yaches commented Jul 17, 2019

Running linter in gilab ci
golangci-lint:v1.17
go 1.12

err log:
golangci.log

.golangci.yml:

  enable-all: true
  disable:
    # Globals are OK
    - gochecknoglobals
    # So are inits
    - gochecknoinits
    # Cant disable some of go vet checks => disable all of them
    - govet
    # Useless
    - interfacer
    # Long lines are fine
    - lll
    # Using "weak" primitivies is fine when they're not used for crypto
    - gosec

run:
  tests: false
  issues-exit-code: 0
  skip-dirs:
    - vendor/
  skip-files:
    - _test.go$
@Helcaraxan
Copy link
Contributor

Helcaraxan commented Jul 17, 2019

I just encountered exactly the same error with an identical stack-trace.

$ golangci-lint --version
golangci-lint has version 1.17.1 built from 4ba2155 on 2019-06-10T09:07:35Z
$ go version
go version go1.12.5 darwin/amd64

@Helcaraxan
Copy link
Contributor

@yaches looks like this was actually fixed 4 days ago in master (#594) and hence was not part of 1.17.1 so we should be able to close this issue. Although having a 1.17.2 patch release with this fix would be really nice.

@Helcaraxan
Copy link
Contributor

As suggested in #622, given this has been addressed it could be worth closing the issue. 🙂

@jirfag
Copy link
Contributor

jirfag commented Sep 11, 2019

Hi, thank you for reporting, it's fixed in v1.18.0 release

@jirfag jirfag closed this as completed Sep 11, 2019
@gaurav-dalvi
Copy link

I am seeing same issue on

golangci-lint version
golangci-lint has version 1.20.1 built from 849044b on 2019-10-15T19:11:27Z

@jirfag jirfag reopened this Jan 19, 2020
@jirfag
Copy link
Contributor

jirfag commented Jan 19, 2020

@gaurav-dalvi can you attach new logs/output please?

@tpounds tpounds added the bug Something isn't working label Jan 19, 2020
@ConorNevin
Copy link

@jirfag I'm also having the same issue intermittently on v1.23.8

error log:
golangci.log

@michaljemala
Copy link

@jirfag I am facing the same issue with v1.27.0. The crash log (attached) points to this line and indeed there is a map being written to by multiple goroutines when creating the FilenameUnadjuster.

golangci-lint_panic.log

@Helcaraxan
Copy link
Contributor

Thank you for the error log @michaljemala, your analysis was indeed spot on. Have opened a PR that should address the issue in #1192.

@Helcaraxan
Copy link
Contributor

I am reclosing this issue now that the latest report has been addressed. If you encounter any new concurrent map write errors please open a new issue. 🙂

@gonzaloserrano
Copy link

Hi,

I got the error in 1.45.2:

fatal error: concurrent map writes

goroutine 5771 [running]:
runtime.throw({0x160f0ec?, 0x14f5440?})
	/usr/local/go/src/runtime/panic.go:992 +0x71 fp=0xc003f4bad0 sp=0xc003f4baa0 pc=0x885f91
runtime.mapassign_faststr(0x146bf80, 0xc003b260f0, {0xc002e392a0, 0xa})
	/usr/local/go/src/runtime/map_faststr.go:295 +0x38b fp=0xc003f4bb38 sp=0xc003f4bad0 pc=0x862f0b
github.com/mgechev/revive/rule.(*UnhandledErrorRule).Apply(0xc0003a8120, 0xc004710f40, {0xc00416b590, 0x3, 0x0?})
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/rule/unhandled-error.go:29 +0x1e7 fp=0xc003f4bba0 sp=0xc003f4bb38 pc=0x1250ee7
github.com/mgechev/revive/lint.(*File).lint(0xed2380?, {0xc004168200, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc002e38bb0, 0x5}, 0x0, 0xc004ce2ed0, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:105 +0x19b fp=0xc003f4bf08 sp=0xc003f4bba0 pc=0x121405b
github.com/mgechev/revive/lint.(*Package).lint.func1(0x0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85 fp=0xc003f4bfc8 sp=0xc003f4bf08 pc=0x1217ac5
github.com/mgechev/revive/lint.(*Package).lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:175 +0x2a fp=0xc003f4bfe0 sp=0xc003f4bfc8 pc=0x1217a0a
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc003f4bfe8 sp=0xc003f4bfe0 pc=0x8b9601
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 1 [semacquire]:
sync.runtime_Semacquire(0xc0014106f8?)
	/usr/local/go/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc00215f130?)
	/usr/local/go/src/sync/waitgroup.go:136 +0x52
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*runner).analyze(0xc001dc7630, {0xc000682220?, 0x1?, 0xc00042f3d8?}, {0xc000968400?, 0x1432980?, 0xc000968540?})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner.go:279 +0x5ea
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*runner).run(0xc001dc7630, {0xc000968400, 0x29, 0x40}, {0xc000682220, 0x3, 0x4})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner.go:86 +0x1af
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.runAnalyzers({0x17f2948, 0xc001488020}, 0xc0002297a0)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runners.go:52 +0x54b
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.MetaLinter.Run({{0xc001015900?, 0xc0014863c0?, 0x15e041b?}, 0xc000136960?}, {0x1642459?, 0x36?}, 0x1693890?)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/metalinter.go:31 +0x16d
github.com/golangci/golangci-lint/pkg/lint.(*Runner).runLinterSafe(0x0?, {0x17ee470?, 0xc00049d260?}, 0xc0002297a0, 0xc001015a00)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/lint/runner.go:120 +0xcf
github.com/golangci/golangci-lint/pkg/lint.Runner.Run.func1()
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/lint/runner.go:204 +0x65
github.com/golangci/golangci-lint/pkg/timeutils.(*Stopwatch).TrackStage(0xc0014921e0, {0x160f434, 0x15}, 0xc0014cf9e0)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/timeutils/stopwatch.go:111 +0x4a
github.com/golangci/golangci-lint/pkg/lint.Runner.Run({{0xc0009ab7c0, 0x14, 0x14}, {0x17f2d90, 0xc000f8e390}}, {0x17ee470, 0xc00049d260}, {0xc0001994c0, 0x6, 0x8}, ...)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/lint/runner.go:203 +0x2c5
github.com/golangci/golangci-lint/pkg/commands.(*Executor).runAnalysis(0xc0007a8d00, {0x17ee470, 0xc00049d260}, {0xc00050c150?, 0x7f43e81ac748?, 0xc?})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/run.go:360 +0x513
github.com/golangci/golangci-lint/pkg/commands.(*Executor).runAndPrint(0xc0007a8d00, {0x17ee470, 0xc00049d260}, {0xc00050c150, 0x0, 0x7})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/run.go:401 +0x1e9
github.com/golangci/golangci-lint/pkg/commands.(*Executor).executeRun(0xc0007a8d00, 0xc000431d70?, {0xc00050c150, 0x0, 0x7})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/run.go:514 +0x245
github.com/spf13/cobra.(*Command).execute(0xc0003ec280, {0xc00050c070, 0x7, 0x7})
	/home/circleci/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0xc0003ec000)
	/home/circleci/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
	/home/circleci/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/golangci/golangci-lint/pkg/commands.(*Executor).Execute(...)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/executor.go:151
main.main()
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/cmd/golangci-lint/main.go:21 +0x4

@su225
Copy link

su225 commented Jun 13, 2022

I too got the error

go run github.com/golangci/golangci-lint/cmd/[email protected] --verbose run --timeout 1m0s   --build-tags "" --config /home/circleci/tetrate/scripts/build/../../golangci.yml
INFO [config_reader] Used config file ../golangci.yml 
INFO [lintersdb] Active 19 linters: [contextcheck deadcode errcheck errname goconst gosimple govet ineffassign lll misspell prealloc revive staticcheck structcheck tenv typecheck unconvert unused varcheck] 
INFO [loader] Go packages loading at mode 575 (compiled_files|files|types_sizes|deps|exports_file|imports|name) took 2.467982417s 
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 4.117924ms 
WARN [linters context] contextcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
fatal error: concurrent map writes

goroutine 11225 [running]:
runtime.throw({0x160f0ec?, 0x1?})
	/usr/local/go/src/runtime/panic.go:992 +0x71 fp=0xc00543bad0 sp=0xc00543baa0 pc=0x885f91
runtime.mapassign_faststr(0x0?, 0x0?, {0xc008f9a660, 0xa})
	/usr/local/go/src/runtime/map_faststr.go:212 +0x39c fp=0xc00543bb38 sp=0xc00543bad0 pc=0x862f1c
github.com/mgechev/revive/rule.(*UnhandledErrorRule).Apply(0xc00022e098, 0xc005b33a40, {0xc004d8c5a0, 0x3, 0x0?})
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/rule/unhandled-error.go:29 +0x1e7 fp=0xc00543bba0 sp=0xc00543bb38 pc=0x1250ee7
github.com/mgechev/revive/lint.(*File).lint(0xed2b23?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:105 +0x19b fp=0xc00543bf08 sp=0xc00543bba0 pc=0x121405b
github.com/mgechev/revive/lint.(*Package).lint.func1(0xc0026be950?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85 fp=0xc00543bfc8 sp=0xc00543bf08 pc=0x1217ac5
github.com/mgechev/revive/lint.(*Package).lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:175 +0x2a fp=0xc00543bfe0 sp=0xc00543bfc8 pc=0x1217a0a
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00543bfe8 sp=0xc00543bfe0 pc=0x8b9601
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 1 [semacquire]:
sync.runtime_Semacquire(0xc0015d2128?)
	/usr/local/go/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc0029b3130?)
	/usr/local/go/src/sync/waitgroup.go:136 +0x52
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*runner).analyze(0xc002661630, {0xc0001244d8?, 0x1?, 0xc0016313d8?}, {0xc001422e00?, 0x1432980?, 0xc001422f40?})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner.go:279 +0x5ea
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*runner).run(0xc002661630, {0xc001422e00, 0x29, 0x40}, {0xc0001244d8, 0x1, 0x1})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner.go:86 +0x1af
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.runAnalyzers({0x17f2948, 0xc000812020}, 0xc001f59340)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runners.go:52 +0x54b
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.MetaLinter.Run({{0xc000d3c880?, 0xc0003f03f0?, 0x15e041b?}, 0xc000fe5560?}, {0x1642459?, 0x36?}, 0x1693890?)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/metalinter.go:31 +0x16d
github.com/golangci/golangci-lint/pkg/lint.(*Runner).runLinterSafe(0x0?, {0x17ee470?, 0xc0006280c0?}, 0xc001f59340, 0xc000d3c980)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/lint/runner.go:120 +0xcf
github.com/golangci/golangci-lint/pkg/lint.Runner.Run.func1()
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/lint/runner.go:204 +0x65
github.com/golangci/golangci-lint/pkg/timeutils.(*Stopwatch).TrackStage(0xc0018901e0, {0x160f434, 0x15}, 0xc0004ed9e0)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/timeutils/stopwatch.go:111 +0x4a
github.com/golangci/golangci-lint/pkg/lint.Runner.Run({{0xc001ba4780, 0x14, 0x14}, {0x17f2d90, 0xc001f47050}}, {0x17ee470, 0xc0006280c0}, {0xc000780440, 0x6, 0x8}, ...)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/lint/runner.go:203 +0x2c5
github.com/golangci/golangci-lint/pkg/commands.(*Executor).runAnalysis(0xc00019d100, {0x17ee470, 0xc0006280c0}, {0xc0004500e0?, 0x7fd6801a65d0?, 0xc?})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/run.go:360 +0x513
github.com/golangci/golangci-lint/pkg/commands.(*Executor).runAndPrint(0xc00019d100, {0x17ee470, 0xc0006280c0}, {0xc0004500e0, 0x0, 0x7})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/run.go:401 +0x1e9
github.com/golangci/golangci-lint/pkg/commands.(*Executor).executeRun(0xc00019d100, 0xc000849d70?, {0xc0004500e0, 0x0, 0x7})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/run.go:514 +0x245
github.com/spf13/cobra.(*Command).execute(0xc000373b80, {0xc000450070, 0x7, 0x7})
	/home/circleci/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0xc000373900)
	/home/circleci/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
	/home/circleci/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/golangci/golangci-lint/pkg/commands.(*Executor).Execute(...)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/executor.go:151
main.main()
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/cmd/golangci-lint/main.go:21 +0x4f

goroutine 11251 [semacquire]:
sync.runtime_SemacquireMutex(0x2000?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc009e7df70)
	/usr/local/go/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
	/usr/local/go/src/sync/mutex.go:81
github.com/mgechev/revive/lint.(*Package).TypeCheck(0xc009e7df40)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:56 +0x57
github.com/mgechev/revive/rule.(*UnhandledErrorRule).Apply(0xc00022e098, 0xc005175a40, {0xc004d8c5a0?, 0xf?, 0x0?})
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/rule/unhandled-error.go:43 +0x14c
github.com/mgechev/revive/lint.(*File).lint(0xed2380?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:105 +0x19b
github.com/mgechev/revive/lint.(*Package).lint.func1(0x0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 629 [select]:
github.com/golangci/golangci-lint/pkg/commands.watchResources({0x17ee470, 0xc0006280c0}, 0xc0003ce660?, {0x17f2a70, 0xc00011fb30}, 0x16938a8)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/run.go:595 +0x233
created by github.com/golangci/golangci-lint/pkg/commands.(*Executor).executeRun
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/commands/run.go:511 +0x20e

goroutine 775 [semacquire]:
sync.runtime_Semacquire(0xc004dac480?)
	/usr/local/go/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0x203000?)
	/usr/local/go/src/sync/waitgroup.go:136 +0x52
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze(0xc0004cb1a0, 0x2, 0xc0008f7f20)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_loadingpackage.go:83 +0x2c5
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyzeRecursive.func1()
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_loadingpackage.go:48 +0x1a8
sync.(*Once).doSlow(0x0?, 0x0?)
	/usr/local/go/src/sync/once.go:68 +0xc2
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:59
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyzeRecursive(0x0?, 0x0?, 0x0?)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_loadingpackage.go:37 +0x52
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*runner).analyze.func2(0x0?)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner.go:274 +0x2e
created by github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*runner).analyze
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner.go:273 +0x5d8

goroutine 11255 [runnable]:
github.com/mgechev/revive/lint.(*Package).lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11256 [semacquire]:
sync.runtime_SemacquireMutex(0xc002b17558?, 0xa5?, 0x14df3c0?)
	/usr/local/go/src/runtime/sema.go:71 +0x25
sync.(*RWMutex).RLock(...)
	/usr/local/go/src/sync/rwmutex.go:63
go/token.(*FileSet).file(0xc009e7df00, 0xbc90)
	/usr/local/go/src/go/token/position.go:474 +0x45
go/token.(*FileSet).File(...)
	/usr/local/go/src/go/token/position.go:502
go/types.(*Checker).collectObjects(0xc004560380)
	/usr/local/go/src/go/types/resolver.go:240 +0x27c
go/types.(*Checker).checkFiles(0xc004560380, {0xc005807980?, 0xc005a59ea0?, 0x0?})
	/usr/local/go/src/go/types/check.go:330 +0xb5
go/types.(*Checker).Files(...)
	/usr/local/go/src/go/types/check.go:308
go/types.(*Config).Check(0xc005807980?, {0xc0014f0ac8?, 0x30?}, 0xc002b17a00?, {0xc005807980, 0x10, 0x10}, 0x60000c005c4c101?)
	/usr/local/go/src/go/types/api.go:416 +0x85
github.com/mgechev/revive/lint.check(0xc002b17ac8?, {0xc0014f0ac8?, 0x0?}, 0x0?, {0xc005807980?, 0xc002b17920?, 0xc002b17ab8?}, 0xc002b17ac0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:102 +0x99
github.com/mgechev/revive/lint.(*Package).TypeCheck(0xc009e7df40)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:81 +0x32c
github.com/mgechev/revive/rule.(*UnhandledErrorRule).Apply(0xc00022e098, 0xc005ef0cc0, {0xc004d8c5a0?, 0x3?, 0x0?})
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/rule/unhandled-error.go:43 +0x14c
github.com/mgechev/revive/lint.(*File).lint(0xed2380?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:105 +0x19b
github.com/mgechev/revive/lint.(*Package).lint.func1(0x0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11226 [runnable]:
sync.runtime_SemacquireMutex(0xc009e7df00?, 0x10?, 0x10?)
	/usr/local/go/src/runtime/sema.go:71 +0x25
sync.(*RWMutex).Lock(0xc0049f7b00?)
	/usr/local/go/src/sync/rwmutex.go:144 +0x71
go/token.(*FileSet).file(0xc009e7df00, 0x670d)
	/usr/local/go/src/go/token/position.go:486 +0x125
go/token.(*FileSet).PositionFor(0x7fd6587a7fff?, 0x670d, 0x0?)
	/usr/local/go/src/go/token/position.go:514 +0x45
go/token.(*FileSet).Position(...)
	/usr/local/go/src/go/token/position.go:525
github.com/mgechev/revive/lint.(*File).ToPosition(...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:47
github.com/mgechev/revive/lint.(*File).disabledIntervals(0xc005b70380, {0xc0057e4a00, 0x1d, 0x20}, 0x0, 0xc0034151a0)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:244 +0x20d
github.com/mgechev/revive/lint.(*File).lint(0xed2b23?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:102 +0xb4
github.com/mgechev/revive/lint.(*Package).lint.func1(0xc00266ccf0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11227 [semacquire]:
sync.runtime_SemacquireMutex(0xc009e7df00?, 0x90?, 0x26?)
	/usr/local/go/src/runtime/sema.go:71 +0x25
sync.(*RWMutex).RLock(...)
	/usr/local/go/src/sync/rwmutex.go:63
go/token.(*FileSet).file(0xc009e7df00, 0x1278)
	/usr/local/go/src/go/token/position.go:474 +0x45
go/token.(*FileSet).PositionFor(0xc001ccc990?, 0x1278, 0xe0?)
	/usr/local/go/src/go/token/position.go:514 +0x45
go/token.(*FileSet).Position(...)
	/usr/local/go/src/go/token/position.go:525
github.com/mgechev/revive/lint.(*File).ToPosition(...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:47
github.com/mgechev/revive/lint.(*File).disabledIntervals(0xc005b0d600, {0xc0057e4a00, 0x1d, 0x20}, 0x0, 0xc0034151a0)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:244 +0x20d
github.com/mgechev/revive/lint.(*File).lint(0xed2b23?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:102 +0xb4
github.com/mgechev/revive/lint.(*Package).lint.func1(0xc00266ce10?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11231 [runnable]:
regexp.(*bitState).reset(0xc002710210, 0xc0007517a0?, 0x37?, 0xa)
	/usr/local/go/src/regexp/backtrack.go:80 +0x291
regexp.(*Regexp).backtrack(0xc00047c280, {0x0, 0x0, 0x0}, {0xc009c58800, 0x37}, 0x0, 0x18?, {0xc003039668, 0x0, ...})
	/usr/local/go/src/regexp/backtrack.go:319 +0x196
regexp.(*Regexp).doExecute(0xc00008a740?, {0x0?, 0x0}, {0x0, 0x0, 0x0}, {0xc009c58800, 0x37}, 0x0?, 0xa, ...)
	/usr/local/go/src/regexp/exec.go:535 +0x272
regexp.(*Regexp).FindStringSubmatch(0xc00047c280, {0xc009c58800, 0x37})
	/usr/local/go/src/regexp/regexp.go:1043 +0x8f
github.com/mgechev/revive/lint.(*File).disabledIntervals.func4({0xc001ccc960, 0x29}, 0xccdb37?, 0xc005902900?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:205 +0x134
github.com/mgechev/revive/lint.(*File).disabledIntervals(0xc005b03780, {0xc0057e4a00, 0x1d, 0x20}, 0x0, 0xc0034151a0)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:244 +0x2c4
github.com/mgechev/revive/lint.(*File).lint(0xed2380?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:102 +0xb4
github.com/mgechev/revive/lint.(*Package).lint.func1(0x0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11047 [chan receive]:
github.com/mgechev/revive/formatter.(*JSON).Format(0x2066100?, 0xc003415320?, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, 0x0, 0x0, ...})
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/formatter/json.go:29 +0x95
github.com/golangci/golangci-lint/pkg/golinters.NewRevive.func1.1.1()
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/revive.go:84 +0xa2
created by github.com/golangci/golangci-lint/pkg/golinters.NewRevive.func1.1
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/revive.go:83 +0x5aa

goroutine 11045 [semacquire]:
sync.runtime_Semacquire(0xc005035398?)
	/usr/local/go/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc005633d70?)
	/usr/local/go/src/sync/waitgroup.go:136 +0x52
github.com/mgechev/revive/lint.(*Package).lint(0xc009e7df40, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:177 +0x229
github.com/mgechev/revive/lint.(*Linter).lintPackage(0xc0087ffbb0, {0xc00521c000, 0x10, 0xecea40?}, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, ...}, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/linter.go:107 +0x17b
github.com/mgechev/revive/lint.(*Linter).Lint.func1({0xc00521c000?, 0xed2a2a?, 0xc0026c6630?})
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/linter.go:64 +0xa7
created by github.com/mgechev/revive/lint.(*Linter).Lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/linter.go:63 +0x297

goroutine 11252 [runnable]:
github.com/mgechev/revive/lint.(*Package).lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11250 [runnable]:
github.com/mgechev/revive/lint.(*Package).lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11223 [chan receive]:
github.com/golangci/golangci-lint/pkg/golinters.NewRevive.func1.1(0xc0032b80d0)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/revive.go:91 +0x652
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyze(0xc0026c6750)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_action.go:187 +0x9c4
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe.func2()
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_action.go:105 +0x1d
github.com/golangci/golangci-lint/pkg/timeutils.(*Stopwatch).TrackStage(0xc0026615e0, {0x15f3349, 0xd}, 0xc002845748)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/timeutils/stopwatch.go:111 +0x4a
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe(0xc000e794a0?)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_action.go:104 +0x85
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze.func2(0xc0026c6750)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_loadingpackage.go:80 +0xb4
created by github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_loadingpackage.go:75 +0x1eb

goroutine 11229 [runnable]:
github.com/mgechev/revive/lint.(*Package).lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11233 [semacquire]:
sync.runtime_SemacquireMutex(0xc009e7df00?, 0x0?, 0x2b?)
	/usr/local/go/src/runtime/sema.go:71 +0x25
sync.(*RWMutex).RLock(...)
	/usr/local/go/src/sync/rwmutex.go:63
go/token.(*FileSet).file(0xc009e7df00, 0xdf70)
	/usr/local/go/src/go/token/position.go:474 +0x45
go/token.(*FileSet).PositionFor(0xc001cccc00?, 0xdf70, 0x6f?)
	/usr/local/go/src/go/token/position.go:514 +0x45
go/token.(*FileSet).Position(...)
	/usr/local/go/src/go/token/position.go:525
github.com/mgechev/revive/lint.(*File).ToPosition(...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:47
github.com/mgechev/revive/lint.(*File).disabledIntervals(0xc005174b80, {0xc0057e4a00, 0x1d, 0x20}, 0x0, 0xc0034151a0)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:244 +0x20d
github.com/mgechev/revive/lint.(*File).lint(0xed2380?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:102 +0xb4
github.com/mgechev/revive/lint.(*Package).lint.func1(0x0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11232 [runnable]:
sync.runtime_SemacquireMutex(0xc00112a960?, 0x0?, 0xc009e7df08?)
	/usr/local/go/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc009e7df00)
	/usr/local/go/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
	/usr/local/go/src/sync/mutex.go:81
sync.(*RWMutex).Lock(0xc009e7df00?)
	/usr/local/go/src/sync/rwmutex.go:139 +0x36
go/token.(*FileSet).file(0xc009e7df00, 0x511a)
	/usr/local/go/src/go/token/position.go:486 +0x125
go/token.(*FileSet).PositionFor(0x0?, 0x511a, 0x8?)
	/usr/local/go/src/go/token/position.go:514 +0x45
go/token.(*FileSet).Position(...)
	/usr/local/go/src/go/token/position.go:525
github.com/mgechev/revive/lint.(*File).ToPosition(...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:47
github.com/mgechev/revive/lint.(*File).disabledIntervals(0xc005b3be80, {0xc0057e4a00, 0x1d, 0x20}, 0x0, 0xc0034151a0)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:244 +0x20d
github.com/mgechev/revive/lint.(*File).lint(0xed2380?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:102 +0xb4
github.com/mgechev/revive/lint.(*Package).lint.func1(0x756f736572627553?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11228 [runnable]:
sync.runtime_SemacquireMutex(0xc0034d4cc0?, 0x0?, 0xc009e7df08?)
	/usr/local/go/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc009e7df00)
	/usr/local/go/src/sync/mutex.go:162 +0x165
sync.(*Mutex).Lock(...)
	/usr/local/go/src/sync/mutex.go:81
sync.(*RWMutex).Lock(0xc009e7df00?)
	/usr/local/go/src/sync/rwmutex.go:139 +0x36
go/token.(*FileSet).file(0xc009e7df00, 0x446f)
	/usr/local/go/src/go/token/position.go:486 +0x125
go/token.(*FileSet).PositionFor(0xc001cccc30?, 0x446f, 0x2e?)
	/usr/local/go/src/go/token/position.go:514 +0x45
go/token.(*FileSet).Position(...)
	/usr/local/go/src/go/token/position.go:525
github.com/mgechev/revive/lint.(*File).ToPosition(...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:47
github.com/mgechev/revive/lint.(*File).disabledIntervals(0xc005b3b240, {0xc0057e4a00, 0x1d, 0x20}, 0x0, 0xc0034151a0)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:244 +0x20d
github.com/mgechev/revive/lint.(*File).lint(0xed2380?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:102 +0xb4
github.com/mgechev/revive/lint.(*Package).lint.func1(0x0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11230 [runnable]:
sync.runtime_SemacquireMutex(0xc009e7df00?, 0x30?, 0x2d?)
	/usr/local/go/src/runtime/sema.go:71 +0x25
sync.(*RWMutex).RLock(...)
	/usr/local/go/src/sync/rwmutex.go:63
go/token.(*FileSet).file(0xc009e7df00, 0x105ad)
	/usr/local/go/src/go/token/position.go:474 +0x45
go/token.(*FileSet).PositionFor(0xc001cccc30?, 0x105ad, 0x2e?)
	/usr/local/go/src/go/token/position.go:514 +0x45
go/token.(*FileSet).Position(...)
	/usr/local/go/src/go/token/position.go:525
github.com/mgechev/revive/lint.(*File).ToPosition(...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:47
github.com/mgechev/revive/lint.(*File).disabledIntervals(0xc005ad1fc0, {0xc0057e4a00, 0x1d, 0x20}, 0x0, 0xc0034151a0)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:244 +0x20d
github.com/mgechev/revive/lint.(*File).lint(0xed2380?, {0xc0057e4a00, 0x1d, 0x20}, {0x0, 0x3fe999999999999a, {0xc008f9a1e8, 0x5}, 0x0, 0xc00bd0f650, ...}, ...)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/file.go:102 +0xb4
github.com/mgechev/revive/lint.(*Package).lint.func1(0x0?)
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:173 +0x85
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11253 [runnable]:
github.com/mgechev/revive/lint.(*Package).lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac

goroutine 11046 [semacquire]:
sync.runtime_Semacquire(0x20a1928?)
	/usr/local/go/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc003cd8900?)
	/usr/local/go/src/sync/waitgroup.go:136 +0x52
github.com/mgechev/revive/lint.(*Linter).Lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/linter.go:73 +0x26
created by github.com/mgechev/revive/lint.(*Linter).Lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/linter.go:72 +0xd9

goroutine 11194 [runnable]:
github.com/golangci/misspell.(*genericReplacer).lookup(0xc00047e420, {0xc0050306e7?, 0x836?}, 0x0)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/stringreplacer.go:160 +0x255
github.com/golangci/misspell.(*genericReplacer).WriteString(0xc00047e420, {0x17e3e60, 0xc004dad140}, {0xc005030400, 0xb1d})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/stringreplacer.go:294 +0x1c7
github.com/golangci/misspell.(*genericReplacer).Replace(0x13e3d40?, {0xc005030400, 0xb1d})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/stringreplacer.go:275 +0x8d
github.com/golangci/misspell.(*StringReplacer).Replace(...)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/stringreplacer.go:37
github.com/golangci/misspell.(*Replacer).Replace(0xc00188e8d0, {0xc005030400, 0xb1d})
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/replace.go:196 +0x52
github.com/golangci/golangci-lint/pkg/golinters.runMisspellOnFile({0xc001ccca80, 0x2b}, 0x400?, 0x400?)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/misspell.go:28 +0x7e
github.com/golangci/golangci-lint/pkg/golinters.NewMisspell.func1.1(0xc0062c8000)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/misspell.go:111 +0x445
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyze(0xc0026c6630)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_action.go:187 +0x9c4
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe.func2()
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_action.go:105 +0x1d
github.com/golangci/golangci-lint/pkg/timeutils.(*Stopwatch).TrackStage(0xc0026615e0, {0x159ad7b, 0x8}, 0xc00164e748)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/timeutils/stopwatch.go:111 +0x4a
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe(0xc000656660?)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_action.go:104 +0x85
github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze.func2(0xc0026c6630)
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_loadingpackage.go:80 +0xb4
created by github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze
	/home/circleci/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/runner_loadingpackage.go:75 +0x1eb

goroutine 11254 [runnable]:
github.com/mgechev/revive/lint.(*Package).lint.func2()
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1
created by github.com/mgechev/revive/lint.(*Package).lint
	/home/circleci/go/pkg/mod/github.com/mgechev/[email protected]/lint/package.go:172 +0xac
exit status 2

@su225
Copy link

su225 commented Jun 13, 2022

Could we re-open this please?

@dimmo
Copy link

dimmo commented Jun 19, 2024

The bug still exists (version 1.54.2), @Helcaraxan

 [lint] fatal error: concurrent map writes
 [lint] 
 [lint] goroutine 37592 [running]:
 [lint] gitlab.com/bosi/decorder.run(0xc047a6c680)
 [lint]         gitlab.com/bosi/[email protected]/analyzer.go:83 +0x3a
 [lint] github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyze(0xc0050cfe40)
 [lint]         github.com/golangci/golangci-lint/pkg/golinters/goanalysis/runner_action.go:195 +0x9d6
 [lint] github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe.func2()
 [lint]         github.com/golangci/golangci-lint/pkg/golinters/goanalysis/runner_action.go:113 +0x17
 [lint] github.com/golangci/golangci-lint/pkg/timeutils.(*Stopwatch).TrackStage(0xc0017be1e0, {0x1109085, 0x8}, 0xc00625e748)
 [lint]         github.com/golangci/golangci-lint/pkg/timeutils/stopwatch.go:111 +0x44
 [lint] github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*action).analyzeSafe(0xc002c0d620?)
 [lint]         github.com/golangci/golangci-lint/pkg/golinters/goanalysis/runner_action.go:112 +0x7a
 [lint] github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze.func2(0xc0050cfe40)
 [lint]         github.com/golangci/golangci-lint/pkg/golinters/goanalysis/runner_loadingpackage.go:80 +0xa8
 [lint] created by github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*loadingPackage).analyze in goroutine 600
 [lint]         github.com/golangci/golangci-lint/pkg/golinters/goanalysis/runner_loadingpackage.go:75 +0x205
 [lint] 
 [lint] goroutine 1 [semacquire]:
 [lint] sync.runtime_Semacquire(0xc002da2e60?)
 [lint]         runtime/sema.go:62 +0x25
 [lint] sync.(*WaitGroup).Wait(0xc002ce9090?)
 [lint]         sync/waitgroup.go:116 +0x48
 [lint] github.com/golangci/golangci-lint/pkg/golinters/goanalysis.(*runner).analyze(0xc0017be230, {0xc000147000?, 0xc0004a6400?, 0x1?}, {0xc001234800?, 0x8e0125?, 0xc000601400?})
 [lint]         github.com/golangci/golangci-lint/pkg/golinters/goanalysis/runner.go:279 +0x5d8

@Helcaraxan
Copy link
Contributor

Given that this is very likely a completely different bug than the original one I would recommend opening a new issue. The error message is a generic Golang one, so even if it's the same it does not mean that it's the same bug instance inside golangci.

I am unable to address this myself for the next few months in any case.

@golangci golangci locked as off-topic and limited conversation to collaborators Jun 19, 2024
@ldez
Copy link
Member

ldez commented Jun 19, 2024

@dimmo your problem is related to gitlab.com/bosi/[email protected].

This problem has been fixed in gitlab.com/bosi/[email protected] (#4056).

gitlab.com/bosi/[email protected] is used by golangci-lint v1.54 (2023-08-09).

You should update your golangci-lint version.

https://github.com/golangci/golangci-lint/releases

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests