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

panic: runtime error: slice bounds out of range #9

Open
websecer opened this issue Jul 30, 2022 · 3 comments
Open

panic: runtime error: slice bounds out of range #9

websecer opened this issue Jul 30, 2022 · 3 comments

Comments

@websecer
Copy link

`panic: runtime error: slice bounds out of range [:6917919642050060544] with capacity 788480

goroutine 1 [running]:
gostrip/gore.parseString(0xc0000461c0, 0xff, 0x4ba000, {0xc0006fc000, 0xc0800, 0xc0800})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:706 +0x1b4
gostrip/gore.typeParse(0x577e08?, 0xc0000461c0, 0x2c098, {0xc0006fc000, 0xc0800, 0xc0800}, 0x4ba000)
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:384 +0x34d
gostrip/gore.getLegacyTypes(0xc0000461c0, {0x578a78, 0xc00001e380})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:117 +0x325
gostrip/gore.getTypes(0xc0000461c0, {0x578a78, 0xc00001e380})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:61 +0x36e
gostrip/gore.(*GoFile).GetTypes(0xc000140000)
/home/runner/work/go-strip-source/go-strip-source/gore/file.go:422 +0x71
main.main()
/home/runner/work/go-strip-source/go-strip-source/cmd/cmd.go:72 +0x312`

@veo
Copy link

veo commented Aug 14, 2022

panic: runtime error: slice bounds out of range [:3612844831] with capacity 335360
一样的问题

@kakuilan
Copy link

一样
`
2022/09/16 17:30:58 GoRoot获取失败,err: no goroot found
panic: runtime error: slice bounds out of range [:14652563515960607797] with capacity 3344896

goroutine 1 [running]:
gostrip/gore.parseString(0xc00007c180, 0xc4834818246c8b48, 0x1000, {0xc0023a0000, 0x330a00, 0x330a00})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:706 +0x1b4
gostrip/gore.typeParse(0x56ace8?, 0xc00007c180, 0x2440b, {0xc0023a0000, 0x330a00, 0x330a00}, 0x1000)
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:384 +0x34d
gostrip/gore.getLegacyTypes(0xc00007c180, {0x56b998, 0xc000024080})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:117 +0x325
gostrip/gore.getTypes(0xc00007c180, {0x56b998, 0xc000024080})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:61 +0x36e
gostrip/gore.(*GoFile).GetTypes(0xc000156000)
/home/runner/work/go-strip-source/go-strip-source/gore/file.go:422 +0x71
main.main()
/home/runner/work/go-strip-source/go-strip-source/cmd/cmd.go:72 +0x312

`

@NotAzay
Copy link

NotAzay commented Sep 21, 2022

一样的问题,go 1.18.6 二进制文件大小45Mb,go build -ldflags "-s -w -H=windowsgui" -buildmode=pie

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

No branches or pull requests

4 participants