Git Product home page Git Product logo

Comments (2)

pierrre avatar pierrre commented on June 14, 2024

Same problem.

Strangely, this issue occurred randomly only once.
After running golangci-lint again, I couldn't reproduce the issue.

from bodyclose.

aaron42net avatar aaron42net commented on June 14, 2024

I'm having the same issue with bodyclose under golangci-lint. In case my stack trace is useful somehow:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x9b883f]

goroutine 20790 [running]:
github.com/timakin/bodyclose/passes/bodyclose.(*runner).run(0xc00016c240, 0xc0d5b72d20, 0x10, 0xd6bb00, 0xa5dc4d767ca7de01, 0xc08dc478c0)
	/go/pkg/mod/github.com/timakin/[email protected]/passes/bodyclose/bodyclose.go:57 +0x1af
github.com/golangci/golangci-lint/pkg/golinters/goanalysis/checker.(*action).execOnce(0xc004107180)
	/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/checker/checker.go:382 +0x68a
sync.(*Once).Do(0xc004107180, 0xc0012ee790)
	/usr/local/go/src/sync/once.go:44 +0xb3
github.com/golangci/golangci-lint/pkg/golinters/goanalysis/checker.(*action).exec(0xc004107180)
	/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/checker/checker.go:303 +0x50
github.com/golangci/golangci-lint/pkg/golinters/goanalysis/checker.execAll.func1(0xc004107180)
	/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/checker/checker.go:291 +0x34
created by github.com/golangci/golangci-lint/pkg/golinters/goanalysis/checker.execAll
	/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/goanalysis/checker/checker.go:297 +0x11b

This is happening intermittently against a large internal codebase, and I haven't been able to carve out a useful test case.

from bodyclose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.