Skip to content
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

fix: panic runtime error: invalid memory address or nil pointer dereference #27

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

ldez
Copy link
Contributor

@ldez ldez commented Jun 25, 2024

[runner] Panic: tparallel: package \"testing_test\" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference: goroutine 11990 [running]:
runtime/debug.Stack()
	/usr/lib/go/src/runtime/debug/stack.go:24 +0x5e
github.com/golangci/golangci-lint/pkg/goanalysis.(*action).analyzeSafe.func1()
	/home/ldez/sources/go/src/github.com/golangci/golangci-lint/pkg/goanalysis/runner_action.go:109 +0x277
panic({0x18105a0?, 0x255e430?})
	/usr/lib/go/src/runtime/panic.go:770 +0x132
github.com/moricho/tparallel.appendTestMap({0x27ad6e0, 0x0, 0x0}, {0x1c82ae8?, 0xc0230e3d10?})
	/home/ldez/sources/go/pkg/mod/github.com/moricho/tparallel@v0.3.1/testmap.go:52 +0x5d
github.com/moricho/tparallel.getTestMap(0xc0193164c0, {0x1c75b60, 0xc006d97030})
	/home/ldez/sources/go/pkg/mod/github.com/moricho/tparallel@v0.3.1/testmap.go:35 +0x2ca
github.com/moricho/tparallel.run(0xc016e1e620)
	/home/ldez/sources/go/pkg/mod/github.com/moricho/tparallel@v0.3.1/tparallel.go:41 +0x169
github.com/golangci/golangci-lint/pkg/goanalysis.(*action).analyze(0xc0024d9d80)
	/home/ldez/sources/go/src/github.com/golangci/golangci-lint/pkg/goanalysis/runner_action.go:191 +0xa02
github.com/golangci/golangci-lint/pkg/goanalysis.(*action).analyzeSafe.func2()
	/home/ldez/sources/go/src/github.com/golangci/golangci-lint/pkg/goanalysis/runner_action.go:113 +0x17
github.com/golangci/golangci-lint/pkg/timeutils.(*Stopwatch).TrackStage(0xc00259ae10, {0x19b45ef, 0x9}, 0xc0020d7748)
	/home/ldez/sources/go/src/github.com/golangci/golangci-lint/pkg/timeutils/stopwatch.go:111 +0x44
github.com/golangci/golangci-lint/pkg/goanalysis.(*action).analyzeSafe(0xc00240e420?)
	/home/ldez/sources/go/src/github.com/golangci/golangci-lint/pkg/goanalysis/runner_action.go:112 +0x7a
github.com/golangci/golangci-lint/pkg/goanalysis.(*loadingPackage).analyze.func2(0xc0024d9d80)
	/home/ldez/sources/go/src/github.com/golangci/golangci-lint/pkg/goanalysis/runner_loadingpackage.go:80 +0xa8
created by github.com/golangci/golangci-lint/pkg/goanalysis.(*loadingPackage).analyze in goroutine 1920
	/home/ldez/sources/go/src/github.com/golangci/golangci-lint/pkg/goanalysis/runner_loadingpackage.go:75 +0x205

Copy link
Owner

@moricho moricho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR!

@moricho moricho merged commit a71256f into moricho:master Jun 26, 2024
@ldez ldez deleted the fix/panic branch June 26, 2024 06:20
@ldez
Copy link
Contributor Author

ldez commented Jun 26, 2024

The secrets.ACCESS_TOKEN seems missing or needs to be updated inside the repo settings.

GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

https://github.com/moricho/tparallel/actions/runs/9674572513/job/26690448877#step:4:69

@moricho
Copy link
Owner

moricho commented Jun 26, 2024

@ldez Updated the access token and just published the new version v0.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants