Skip to content

internal panic in pointer analysis #48

Description

@chronark

I'm not sure how useful this is, but it asked me to report this

~/go/bin/chronos --file=./cmd/main.go --mod=/Users/andreasthomas/github/unkeyed/unkey/apps/agent
Internal panic in pointer analysis:
goroutine 1 [running]:
runtime/debug.Stack()
        /opt/homebrew/Cellar/go/1.22.5/libexec/src/runtime/debug/stack.go:24 +0x64
runtime/debug.PrintStack()
        /opt/homebrew/Cellar/go/1.22.5/libexec/src/runtime/debug/stack.go:16 +0x1c
golang.org/x/tools/go/pointer.Analyze.func1()
        /Users/andreasthomas/go/pkg/mod/golang.org/x/tools/go/pointer@v0.1.0-deprecated/analysis.go:225 +0xc0
panic({0x102765f60?, 0x1029b0f00?})
        /opt/homebrew/Cellar/go/1.22.5/libexec/src/runtime/panic.go:770 +0x124
golang.org/x/tools/go/ssa.(*Function).Type(0x1027632c0?)
        /Users/andreasthomas/go/pkg/mod/golang.org/x/tools@v0.23.0/go/ssa/ssa.go:1557
golang.org/x/tools/go/pointer.(*analysis).valueNode(0x1404a24e400, {0x1027c80a8, 0x0})
        /Users/andreasthomas/go/pkg/mod/golang.org/x/tools/go/pointer@v0.1.0-deprecated/gen.go:234 +0xa8
golang.org/x/tools/go/pointer.(*analysis).genMethodsOf(0x1404a24e400, {0x1027c4948, 0x14028363c00})
        /Users/andreasthomas/go/pkg/mod/golang.org/x/tools/go/pointer@v0.1.0-deprecated/gen.go:1297 +0xd8
golang.org/x/tools/go/pointer.(*analysis).generate(0x1404a24e400)
        /Users/andreasthomas/go/pkg/mod/golang.org/x/tools/go/pointer@v0.1.0-deprecated/gen.go:1336 +0x268
golang.org/x/tools/go/pointer.Analyze(0x1404a46d450)
        /Users/andreasthomas/go/pkg/mod/golang.org/x/tools/go/pointer@v0.1.0-deprecated/analysis.go:290 +0x9a0
github.com/amit-davidson/Chronos/pointerAnalysis.Analysis(0x14019c54200, {0x1404a42d500, 0x14, 0x4?})
        /Users/andreasthomas/go/pkg/mod/github.com/amit-davidson/!chronos@v0.0.0-20220422084152-0fc56a9e04b4/pointerAnalysis/PointerAnalysis.go:44 +0x264
main.main()
        /Users/andreasthomas/go/pkg/mod/github.com/amit-davidson/!chronos@v0.0.0-20220422084152-0fc56a9e04b4/cmd/chronos/main.go:45 +0x434
Error in analysis:internal error in pointer analysis: runtime error: invalid memory address or nil pointer dereference (please report this bug)

Reproduction:

  1. git clone git@github.com:unkeyed/unkey.git
  2. cd unkey/apps/agent
  3. chronos --file=./cmd/main.go --mod=/path/to/unkeyed/unkey/apps/agent

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions