Skip to content

Instantly share code, notes, and snippets.

@isinyaaa
Created March 8, 2024 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isinyaaa/41cb1bfab94c497f3c97a395dd1dd551 to your computer and use it in GitHub Desktop.
Save isinyaaa/41cb1bfab94c497f3c97a395dd1dd551 to your computer and use it in GitHub Desktop.
<!-- everything is fine up to here -->
/Users/isinyaaa/repos/redhat/model-registry/bin/goverter gen github.com/kubeflow/model-registry/internal/converter/
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x104b325f0]
goroutine 27 [running]:
go/types.(*Checker).handleBailout(0x140003a6000, 0x14000cadbe8)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/check.go:367 +0x9c
panic({0x104c87ce0?, 0x104e32770?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/panic.go:770 +0x124
go/types.(*StdSizes).Sizeof(0x0, {0x104cccca8, 0x104e35880})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/sizes.go:228 +0x320
go/types.(*Config).sizeof(...)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/sizes.go:333
go/types.representableConst.func1({0x104cccca8?, 0x104e35880?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/const.go:76 +0x9c
go/types.representableConst({0x104ccdd28, 0x104e2b170}, 0x140003a6000, 0x104e35880, 0x14000ca7dd8)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/const.go:92 +0x138
go/types.(*Checker).representation(0x140003a6000, 0x14000d03b40, 0x104e35880)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/const.go:256 +0x68
go/types.(*Checker).implicitTypeAndValue(0x140003a6000, 0x14000d03b40, {0x104cccca8, 0x104e35880})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/expr.go:375 +0x340
go/types.(*Checker).assignment(0x140003a6000, 0x14000d03b40, {0x104cccca8, 0x104e35880}, {0x140002273a0, 0x1d})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/assignments.go:52 +0x23c
go/types.(*Checker).arguments(0x140003a6000, 0x1400090ed80, 0x140004af740, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, {0x14000cb7160, ...}, ...)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/call.go:654 +0xef4
go/types.(*Checker).callExpr(0x140003a6000, 0x14000d03ac0, 0x1400090ed80)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/call.go:304 +0x5ac
go/types.(*Checker).exprInternal(0x140003a6000, 0x0, 0x14000d03ac0, {0x104ccd950, 0x1400090ed80}, {0x0, 0x0})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/expr.go:1374 +0xd0
go/types.(*Checker).rawExpr(0x140003a6000, 0x0, 0x14000d03ac0, {0x104ccd950?, 0x1400090ed80?}, {0x0?, 0x0?}, 0x1)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/expr.go:979 +0x12c
go/types.(*Checker).genericExprList(0x140003a6000, {0x1400090a410, 0x1, 0x14000901200?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/call.go:408 +0x328
go/types.(*Checker).callExpr(0x140003a6000, 0x14000d03a80, 0x1400090edc0)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/call.go:303 +0x560
go/types.(*Checker).exprInternal(0x140003a6000, 0x0, 0x14000d03a80, {0x104ccd950, 0x1400090edc0}, {0x0, 0x0})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/expr.go:1374 +0xd0
go/types.(*Checker).rawExpr(0x140003a6000, 0x0, 0x14000d03a80, {0x104ccd950?, 0x1400090edc0?}, {0x0?, 0x0?}, 0x0)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/expr.go:979 +0x12c
go/types.(*Checker).multiExpr(0x140003a6000, {0x104ccd950, 0x1400090edc0}, 0x0)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/expr.go:1532 +0x60
go/types.(*Checker).assignVars(0x140003a6000, {0x1400090a3f0, 0x1, 0x1}, {0x1400090a420, 0x1, 0x1})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/assignments.go:472 +0xb4
go/types.(*Checker).stmt(0x140003a6000, 0x13, {0x104ccd590, 0x1400090ee00})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:476 +0x1104
go/types.(*Checker).stmtList(0x140003a6000, 0x13, {0x1400090a430?, 0x104cd0418?, 0x104cbbbe0?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:121 +0x88
go/types.(*Checker).stmt(0x140003a6000, 0x3, {0x104ccd770, 0x1400090c810})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:737 +0x2d20
go/types.(*Checker).stmtList(0x140003a6000, 0x3, {0x1400090f440?, 0x104bf3ddd?, 0x5?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:121 +0x88
go/types.(*Checker).stmt(0x140003a6000, 0x3, {0x104ccd6b0, 0x1400090c870})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:562 +0x1980
go/types.(*Checker).rangeStmt(0x140003a6000, 0x3, 0x140009020c0)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:970 +0x580
go/types.(*Checker).stmt(0x140003a6000, 0x0, {0x104ccd830, 0x140009020c0})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:827 +0x880
go/types.(*Checker).stmtList(0x140003a6000, 0x0, {0x1400090f480?, 0x0?, 0x104c86420?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:121 +0x88
go/types.(*Checker).funcBody(0x140003a6000, 0x104ccccd0?, {0x140005341b0?, 0x140000c8070?}, 0x14000cc0800, 0x1400090c8a0, {0x0?, 0x0?})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/stmt.go:41 +0x21c
go/types.(*Checker).funcDecl.func1()
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/decl.go:852 +0x44
go/types.(*Checker).processDelayed(0x140003a6000, 0x0)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/check.go:467 +0x12c
go/types.(*Checker).checkFiles(0x140003a6000, {0x140008f0300, 0x6, 0x6})
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/check.go:411 +0x188
go/types.(*Checker).Files(...)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/go/types/check.go:372
golang.org/x/tools/go/packages.(*loader).loadPackage(0x14000106000, 0x14000214d80)
/Users/isinyaaa/go/pkg/mod/golang.org/x/tools@v0.5.0/go/packages/packages.go:1044 +0x784
golang.org/x/tools/go/packages.(*loader).loadRecursive.func1()
/Users/isinyaaa/go/pkg/mod/golang.org/x/tools@v0.5.0/go/packages/packages.go:851 +0x178
sync.(*Once).doSlow(0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/sync/once.go:74 +0x100
sync.(*Once).Do(...)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/sync/once.go:65
golang.org/x/tools/go/packages.(*loader).loadRecursive(0x0?, 0x0?)
/Users/isinyaaa/go/pkg/mod/golang.org/x/tools@v0.5.0/go/packages/packages.go:839 +0x50
golang.org/x/tools/go/packages.(*loader).refine.func2(0x0?)
/Users/isinyaaa/go/pkg/mod/golang.org/x/tools@v0.5.0/go/packages/packages.go:774 +0x30
created by golang.org/x/tools/go/packages.(*loader).refine in goroutine 1
/Users/isinyaaa/go/pkg/mod/golang.org/x/tools@v0.5.0/go/packages/packages.go:773 +0xaa4
make: *** [internal/converter/generated/converter.go] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment