go-callvis icon indicating copy to clipboard operation
go-callvis copied to clipboard

panic: in crypto/sha256.Sum224: cannot convert slice t0[:] ([]byte) to *[28]byte

Open tantingting1012 opened this issue 2 years ago • 11 comments

tantingting1012 avatar Apr 28 '22 07:04 tantingting1012

I am getting the same error

smjure avatar May 02 '22 09:05 smjure

me too

Kevinello avatar May 02 '22 19:05 Kevinello

It looks like it's the reasons for not adapting to go 1.18, when i set it back to go 1.17.8 it worked perfectly

Kevinello avatar May 02 '22 19:05 Kevinello

Thank for the feedback. I have tried with both, first actually with 1.17 and then 1.18 and it gives the same panic.

smjure avatar May 03 '22 05:05 smjure

Same error here, with go 1.18.1 linux/arm64.

dreamerlzl avatar May 10 '22 05:05 dreamerlzl

I found this, probably this error is unrelated to go-callvis. https://github.com/golang/go/issues/51822

dreamerlzl avatar May 10 '22 05:05 dreamerlzl

same issue, tired it with minikube

$ go-callvis ./cmd/minikube
panic: in crypto/sha512.Sum384: cannot convert slice t0[:] ([]byte) to *[48]byte

goroutine 15576 [running]:
golang.org/x/tools/go/ssa.emitConv(0x14038d55680, {0x102848cb8, 0x1406f5d8780}, {0x102844788?, 0x1400f66e330})
    /Users/medya/go/pkg/mod/golang.org/x/[email protected]/go/ssa/emit.go:242 +0x6b8
golang.org/x/tools/go/ssa.(*builder).expr0(0x1027b5ae0?, 0x14038d55680, {0x102845680?, 0x1400f2cd0c0}, {0x7, {0x102844788, 0x1400f66e330}, {0x0, 0x0}})
    /Users/medya/go/pkg/mod/golang.org/x/[email protected]/go/ssa/builder.go:573 +0x824
golang.org/x/tools/go/ssa.(*builder).expr(0x10280e8c0?, 0x14038d55680, {0x102845680?, 0x1400f2cd0c0?})
    /Users/medya/go/pkg/mod/golang.org/x/[email protected]/go/ssa/builder.go:530 +0x13c
golang.org/x/tools/go/ssa.(*builder).assign(0x14038d55680?, 0x14038d55680?, {0x102846968?, 0x1406f5d2d80}, {0x102845680?, 0x1400f2cd0c0?}, 0x0?, 0x1404de875a0)

medyagh avatar Aug 05 '22 19:08 medyagh

Possibly fixed by #121 ?

ondrajz avatar Aug 07 '22 22:08 ondrajz

+1

Antonboom avatar Aug 15 '22 09:08 Antonboom

mee to . how to solve ?

feng99 avatar Mar 17 '23 07:03 feng99