Compile a fairly large closed source project which I unfortunately cannot share with you. The issue is intermittent, and later reruns passed. Note that the compilation happens in parallel with other go builds.
panic: runtime error: index out of range [-536880912]
goroutine 60 [running]:
cmd/compile/internal/ssagen.genssa.func1(0x4ccb3780?, 0x10ee?)
cmd/compile/internal/ssagen/ssa.go:7337 +0xeb
cmd/compile/internal/ssa.(*FuncDebug).PutLocationListDwarf5(0x104b0c0?, {0x10ee4d23bf40, 0x13, 0x3c}, 0x10ee4771a488, 0x10ee4ccb3780, 0x10ee4c357600)
cmd/compile/internal/ssa/debug.go:1502 +0x246
cmd/compile/internal/ssa.(*FuncDebug).PutLocationList(0x58f4f5?, {0x10ee4d23bf40?, 0x10ee4ccb3700?, 0x5?}, 0x10ee4c60e580?, 0x1?, 0xffffffffffffffff?)
cmd/compile/internal/ssa/debug.go:1478 +0x25
cmd/compile/internal/dwarfgen.createComplexVars.createComplexVar.func1({0x104b0c0?, 0x10ee4ccb3780?}, {0x104b0c0?, 0x10ee4c357600?})
cmd/compile/internal/dwarfgen/dwarf.go:568 +0x5f
cmd/internal/dwarf.putvar(...)
cmd/internal/dwarf/dwarf.go:1635
cmd/internal/dwarf.putscope({0x10d4ec8, 0x10ee4771a488}, 0x10ee4ce3dd50, {0x10ee4cfc5b80, 0x1, 0x1}, 0x0, 0x6, {0x10ee4d2667b0, 0x0, ...})
cmd/internal/dwarf/dwarf.go:1509 +0xb4e
cmd/internal/dwarf.putPrunedScopes({0x10d4ec8, 0x10ee4771a488}, 0x10ee4ce3dd50, 0x6)
cmd/internal/dwarf/dwarf.go:1191 +0x5ba
cmd/internal/dwarf.PutConcreteFunc({0x10d4ec8, 0x10ee4771a488}, 0x10ee4ce3dd50, 0x0, 0x10ee49d3da40?)
cmd/internal/dwarf/dwarf.go:1388 +0x247
cmd/internal/obj.(*Link).populateDWARF(...)
cmd/internal/obj/dwarf.go:384
cmd/internal/obj.Flushplist(0x10ee4771a488, 0x10ee4ce3df18, 0x10ee4d210420)
cmd/internal/obj/plist.go:173 +0x13d9
cmd/compile/internal/objw.(*Progs).Flush(...)
cmd/compile/internal/objw/prog.go:112
cmd/compile/internal/ssagen.Compile(0x10ee49d3da40, 0x0, 0x0?)
cmd/compile/internal/ssagen/pgen.go:329 +0x6df
cmd/compile/internal/gc.compileFunctions.func5.1(0x10ee475b3680?)
cmd/compile/internal/gc/compile.go:199 +0x38
cmd/compile/internal/gc.compileFunctions.func3.1()
cmd/compile/internal/gc/compile.go:181 +0x30
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 17
cmd/compile/internal/gc/compile.go:180 +0x325
The compiler not panic.
Go version
1.26.2
Output of
go envin your module/workspace:What did you do?
Compile a fairly large closed source project which I unfortunately cannot share with you. The issue is intermittent, and later reruns passed. Note that the compilation happens in parallel with other go builds.
What did you see happen?
What did you expect to see?
The compiler not panic.