Skip to content

cmd/compile: internal compiler error - 'can't find empty register' on ppc64le builders #34468

@ALTree

Description

@ALTree

The linux-ppc64le builders are currently broken with a internal compiler error: 'checkIfRange' crash:

##### Testing race detector
# net/http
m:0 unique:58 final:0 rematerializable:0
v2: v2 SP
v414: v414 R3
v205: v205 R4
v459: v348 R5
v458: v458 modtime+8[int64]
v457: v457 modtime+16[*time.Location]
net/http/fs.go:448:14: internal compiler error: 'checkIfRange': can't find empty register on edge b61->b65

goroutine 1 [running]:
runtime/debug.Stack(0xadf820, 0xc000086008, 0x0)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/runtime/debug/stack.go:24 +0x8c
cmd/compile/internal/gc.Fatalf(0xc002c89170, 0x2e, 0xc002d93b00, 0x3, 0x3)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/gc/subr.go:188 +0x294
cmd/compile/internal/gc.(*ssafn).Fatalf(0xc002f254d0, 0x1c00e000000007, 0x93d17d, 0x28, 0xc002d8d9e0, 0x2, 0x2)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/gc/ssa.go:6177 +0x160
cmd/compile/internal/ssa.(*Func).Fatalf(...)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/ssa/func.go:617
cmd/compile/internal/ssa.(*edgeState).findRegFor(0xc002da4a90, 0xc0000883c0, 0xc002da4908, 0xc002ebdca8)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/ssa/regalloc.go:2287 +0x3dc
cmd/compile/internal/ssa.(*edgeState).process(0xc002da4a90)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/ssa/regalloc.go:2010 +0x308
cmd/compile/internal/ssa.(*regAllocState).shuffle(0xc002f2b200, 0xc002f03800, 0x49, 0x49)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/ssa/regalloc.go:1848 +0x204
cmd/compile/internal/ssa.(*regAllocState).regalloc(0xc002f2b200, 0xc002eaac60)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/ssa/regalloc.go:1659 +0x18d0
cmd/compile/internal/ssa.regalloc(0xc002eaac60)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/ssa/regalloc.go:146 +0x5c
cmd/compile/internal/ssa.Compile(0xc002eaac60)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/ssa/compile.go:92 +0x8a4
cmd/compile/internal/gc.buildssa(0xc0008dc160, 0x0, 0x0)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/gc/ssa.go:289 +0x778
cmd/compile/internal/gc.compileSSA(0xc0008dc160, 0x0)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/gc/pgen.go:298 +0x38
cmd/compile/internal/gc.compile(0xc0008dc160)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/gc/pgen.go:277 +0x26c
cmd/compile/internal/gc.funccompile(0xc0008dc160)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/gc/pgen.go:222 +0xe8
cmd/compile/internal/gc.Main(0x949c48)
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/internal/gc/main.go:682 +0x3184
main.main()
	/tmp/workdir-host-linux-ppc64le-osu/go/src/cmd/compile/main.go:51 +0xb8

2019/09/23 06:03:30 Failed: exit status 2
2019/09/23 06:03:50 FAILED

Full log: https://build.golang.org/log/b288cd59a7c053c8cf0136972f9c37c42bc678c6

The breakage started after CL 194297 (compile: prefer an AND instead of SHR+SHL instructions).

cc @martisch

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions