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

cmd/internal/sys: runtime error: index out of range [] with length 0 #55054

Closed
toothrot opened this issue Sep 13, 2022 · 3 comments
Closed

cmd/internal/sys: runtime error: index out of range [] with length 0 #55054

toothrot opened this issue Sep 13, 2022 · 3 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge

Comments

@toothrot
Copy link
Contributor

# cmd/internal/sys [cmd/internal/sys.test]
panic: runtime error: index out of range [9616] with length 0

goroutine 51 [running]:
panic({0x1168720, 0xc0007100f0})
	/workdir/go/src/runtime/panic.go:987 +0x3cc fp=0xc00120e958 sp=0xc00120e898 pc=0x43ce8c
runtime.goPanicIndex(0x2590, 0x0)
	/workdir/go/src/runtime/panic.go:113 +0x7f fp=0xc00120e998 sp=0xc00120e958 pc=0x43af3f
cmd/compile/internal/ssa.AutoVar(0xc001185ce0)
	/workdir/go/src/cmd/compile/internal/ssa/value.go:553 +0x34a fp=0xc00120ead0 sp=0xc00120e998 pc=0xdf614a
cmd/compile/internal/liveness.affectedVar(0xc001185ce0)
	/workdir/go/src/cmd/compile/internal/liveness/plive.go:323 +0x85 fp=0xc00120ec20 sp=0xc00120ead0 pc=0xe06885
cmd/compile/internal/liveness.(*liveness).valueEffects(0xc0005a3400, 0xc001185ce0)
	/workdir/go/src/cmd/compile/internal/liveness/plive.go:254 +0x65 fp=0xc00120ecd0 sp=0xc00120ec20 pc=0xe064c5
cmd/compile/internal/liveness.(*liveness).prologue(0xc0005a3400)
	/workdir/go/src/cmd/compile/internal/liveness/plive.go:642 +0x126 fp=0xc00120ede0 sp=0xc00120ecd0 pc=0xe09006
cmd/compile/internal/liveness.Compute(0xc00056a500, 0xc000582820, 0x0, 0xc0004cad20)
	/workdir/go/src/cmd/compile/internal/liveness/plive.go:1338 +0x176 fp=0xc00120f008 sp=0xc00120ede0 pc=0xe0f436
cmd/compile/internal/ssagen.genssa(0xc000582820, 0xc0004cad20)
	/workdir/go/src/cmd/compile/internal/ssagen/ssa.go:6906 +0x158 fp=0xc00120fdd8 sp=0xc00120f008 pc=0xe580f8
cmd/compile/internal/ssagen.Compile(0xc00056a500, 0x2)
	/workdir/go/src/cmd/compile/internal/ssagen/pgen.go:197 +0x325 fp=0xc00120ff48 sp=0xc00120fdd8 pc=0xe1bfa5
cmd/compile/internal/gc.compileFunctions.func4.1(0x2)
	/workdir/go/src/cmd/compile/internal/gc/compile.go:153 +0x47 fp=0xc00120ffa0 sp=0xc00120ff48 pc=0x109dc87
cmd/compile/internal/gc.compileFunctions.func3.1()
	/workdir/go/src/cmd/compile/internal/gc/compile.go:140 +0x52 fp=0xc00120ffe0 sp=0xc00120ffa0 pc=0x109de32
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00120ffe8 sp=0xc00120ffe0 pc=0x472721
created by cmd/compile/internal/gc.compileFunctions.func3
	/workdir/go/src/cmd/compile/internal/gc/compile.go:138 +0xa5

goroutine 1 [semacquire]:
runtime.gopark(0x11d2e30, 0x1752cc0, 0x12, 0x19, 0x4)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0006a18f0 sp=0xc0006a18c0 pc=0x43fe5d
runtime.goparkunlock(0x1752cc0?, 0x11?, 0x7a?, 0xc00061a660?)
	/workdir/go/src/runtime/proc.go:369 +0x2a fp=0xc0006a1920 sp=0xc0006a18f0 pc=0x43feea
runtime.semacquire1(0xc0005a55d8?, 0x0?, 0x1, 0x0)
	/workdir/go/src/runtime/sema.go:150 +0x18d fp=0xc0006a1980 sp=0xc0006a1920 pc=0x45150d
sync.runtime_Semacquire(0xc0005955c0?)
	/workdir/go/src/runtime/sema.go:62 +0x25 fp=0xc0006a19b0 sp=0xc0006a1980 pc=0x46ee25
sync.(*WaitGroup).Wait(0xc0005955c0)
	/workdir/go/src/sync/waitgroup.go:116 +0x97 fp=0xc0006a1a18 sp=0xc0006a19b0 pc=0x4997d7
cmd/compile/internal/gc.compileFunctions()
	/workdir/go/src/cmd/compile/internal/gc/compile.go:165 +0x231 fp=0xc0006a1a90 sp=0xc0006a1a18 pc=0x109d9d1
cmd/compile/internal/gc.Main(0x11d1a80)
	/workdir/go/src/cmd/compile/internal/gc/main.go:301 +0x1775 fp=0xc0006a1ed8 sp=0xc0006a1a90 pc=0x10a0095
main.main()
	/workdir/go/src/cmd/compile/main.go:57 +0x171 fp=0xc0006a1f80 sp=0xc0006a1ed8 pc=0x10d8291
runtime.main()
	/workdir/go/src/runtime/proc.go:250 +0x1d3 fp=0xc0006a1fe0 sp=0xc0006a1f80 pc=0x43fa13
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0006a1fe8 sp=0xc0006a1fe0 pc=0x472721

goroutine 2 [force gc (idle)]:
runtime.gopark(0x11d2e30, 0x173de90, 0x11, 0x14, 0x1)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc000062f88 sp=0xc000062f58 pc=0x43fe5d
runtime.goparkunlock(0x0?, 0x0?, 0x0?, 0x0?)
	/workdir/go/src/runtime/proc.go:369 +0x2a fp=0xc000062fb8 sp=0xc000062f88 pc=0x43feea
runtime.forcegchelper()
	/workdir/go/src/runtime/proc.go:302 +0xb0 fp=0xc000062fe0 sp=0xc000062fb8 pc=0x43fc90
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000062fe8 sp=0xc000062fe0 pc=0x472721
created by runtime.init.5
	/workdir/go/src/runtime/proc.go:290 +0x25

goroutine 3 [GC sweep wait]:
runtime.gopark(0x11d2e30, 0x173e2a0, 0xc, 0x14, 0x1)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc000063768 sp=0xc000063738 pc=0x43fe5d
runtime.goparkunlock(0x1?, 0x0?, 0x0?, 0x0?)
	/workdir/go/src/runtime/proc.go:369 +0x2a fp=0xc000063798 sp=0xc000063768 pc=0x43feea
runtime.bgsweep(0x0?)
	/workdir/go/src/runtime/mgcsweep.go:298 +0xd1 fp=0xc0000637c8 sp=0xc000063798 pc=0x427cd1
runtime.gcenable.func1()
	/workdir/go/src/runtime/mgc.go:178 +0x26 fp=0xc0000637e0 sp=0xc0000637c8 pc=0x41c1e6
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000637e8 sp=0xc0000637e0 pc=0x472721
created by runtime.gcenable
	/workdir/go/src/runtime/mgc.go:178 +0x6b

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x11d2e30, 0x173e7c0, 0xd, 0x14, 0x2)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc000063f48 sp=0xc000063f18 pc=0x43fe5d
runtime.goparkunlock(0x3b9aca00?, 0x0?, 0x0?, 0x0?)
	/workdir/go/src/runtime/proc.go:369 +0x2a fp=0xc000063f78 sp=0xc000063f48 pc=0x43feea
runtime.(*scavengerState).park(0x173e7c0)
	/workdir/go/src/runtime/mgcscavenge.go:389 +0x4b fp=0xc000063fa0 sp=0xc000063f78 pc=0x42590b
runtime.bgscavenge(0x0?)
	/workdir/go/src/runtime/mgcscavenge.go:622 +0x65 fp=0xc000063fc8 sp=0xc000063fa0 pc=0x425f05
runtime.gcenable.func2()
	/workdir/go/src/runtime/mgc.go:179 +0x26 fp=0xc000063fe0 sp=0xc000063fc8 pc=0x41c186
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000063fe8 sp=0xc000063fe0 pc=0x472721
created by runtime.gcenable
	/workdir/go/src/runtime/mgc.go:179 +0xaa

goroutine 5 [finalizer wait]:
runtime.gopark(0x11d2c98, 0x17801c8, 0x10, 0x14, 0x1)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc000062628 sp=0xc0000625f8 pc=0x43fe5d
runtime.runfinq()
	/workdir/go/src/runtime/mfinal.go:193 +0x107 fp=0xc0000627e0 sp=0xc000062628 pc=0x41b267
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000627e8 sp=0xc0000627e0 pc=0x472721
created by runtime.createfing
	/workdir/go/src/runtime/mfinal.go:163 +0x50

goroutine 15 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc000480040, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc000064748 sp=0xc000064718 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000647e0 sp=0xc000064748 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000647e8 sp=0xc0000647e0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 13 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000a4020, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc000064f48 sp=0xc000064f18 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc000064fe0 sp=0xc000064f48 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000064fe8 sp=0xc000064fe0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 12 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000a4000, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc000065748 sp=0xc000065718 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000657e0 sp=0xc000065748 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000657e8 sp=0xc0000657e0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 11 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000286c0, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc000065f48 sp=0xc000065f18 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc000065fe0 sp=0xc000065f48 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000065fe8 sp=0xc000065fe0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 14 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000a4060, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc00005e748 sp=0xc00005e718 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc00005e7e0 sp=0xc00005e748 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00005e7e8 sp=0xc00005e7e0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 17 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc000480000, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000aa748 sp=0xc0000aa718 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000aa7e0 sp=0xc0000aa748 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000aa7e8 sp=0xc0000aa7e0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 33 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000286e0, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000a6748 sp=0xc0000a6718 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000a67e0 sp=0xc0000a6748 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000a67e8 sp=0xc0000a67e0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 34 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000a4040, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000a6f48 sp=0xc0000a6f18 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000a6fe0 sp=0xc0000a6f48 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000a6fe8 sp=0xc0000a6fe0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 18 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc000480020, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000aaf48 sp=0xc0000aaf18 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000aafe0 sp=0xc0000aaf48 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000aafe8 sp=0xc0000aafe0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 35 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000a4080, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000a7748 sp=0xc0000a7718 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000a77e0 sp=0xc0000a7748 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000a77e8 sp=0xc0000a77e0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 16 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000a40a0, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc00005ef48 sp=0xc00005ef18 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc00005efe0 sp=0xc00005ef48 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00005efe8 sp=0xc00005efe0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 36 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000a40c0, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000a7f48 sp=0xc0000a7f18 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000a7fe0 sp=0xc0000a7f48 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000a7fe8 sp=0xc0000a7fe0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 19 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc000028700, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000ab748 sp=0xc0000ab718 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000ab7e0 sp=0xc0000ab748 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000ab7e8 sp=0xc0000ab7e0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 37 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc000028720, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000a8748 sp=0xc0000a8718 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000a87e0 sp=0xc0000a8748 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000a87e8 sp=0xc0000a87e0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 20 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc000028740, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000abf48 sp=0xc0000abf18 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000abfe0 sp=0xc0000abf48 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000abfe8 sp=0xc0000abfe0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25

goroutine 38 [GC worker (idle)]:
runtime.gopark(0x11d2cb8, 0xc0000a40e0, 0x18, 0x14, 0x0)
	/workdir/go/src/runtime/proc.go:363 +0xfd fp=0xc0000a8f48 sp=0xc0000a8f18 pc=0x43fe5d
runtime.gcBgMarkWorker()
	/workdir/go/src/runtime/mgc.go:1234 +0x107 fp=0xc0000a8fe0 sp=0xc0000a8f48 pc=0x41db87
runtime.goexit()
	/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000a8fe8 sp=0xc0000a8fe0 pc=0x472721
created by runtime.gcBgMarkStartWorkers
	/workdir/go/src/runtime/mgc.go:1158 +0x25
FAIL	cmd/internal/sys [build failed]

2022-09-09T15:30:06-f53b211/linux-amd64-noopt

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Sep 13, 2022
@cuonglm
Copy link
Member

cuonglm commented Sep 14, 2022

Seems duplicated of #54906

@bcmills
Copy link
Contributor

bcmills commented Sep 14, 2022

Indeed. This is not a failure in cmd/internal/sys, it is a failure when compiling cmd/internal/sys.

@bcmills
Copy link
Contributor

bcmills commented Sep 14, 2022

Duplicate of #54906

@bcmills bcmills marked this as a duplicate of #54906 Sep 14, 2022
@bcmills bcmills closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2022
@golang golang locked and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

4 participants