Skip to content

cmd/compile: internal compiler errors in test flakes #55257

Not planned
@rsc

Description

@rsc
#!watchflakes
default <- `: internal compiler error:` && date < "2023-07-25"

This issue collects build dashboard flakes due to internal compiler errors.

Activity

added
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
on Sep 20, 2022
gopherbot

gopherbot commented on Sep 20, 2022

@gopherbot
Contributor

Found new matching flaky dashboard failures for:

#!watchflakes
post <- `: internal compiler error:`
2022-08-31 21:10 linux-ppc64-sid-buildlet go@52d9e7f5 flag (log)
go/src/flag/flag.go:213:44: internal compiler error: '(*uintValue).Get': panic during regalloc while compiling (*uintValue).Get:

runtime error: index out of range [-1]

goroutine 144 [running]:
cmd/compile/internal/ssa.Compile.func1()
	/workdir/go/src/cmd/compile/internal/ssa/compile.go:50 +0x7c
panic({0x8dda80, 0xc0006a92f0})
	/workdir/go/src/runtime/panic.go:884 +0x244
cmd/compile/internal/ssa.(*sparseMap).set(...)
...
cmd/compile/internal/ssagen.buildssa(0xc00042fa40, 0x1)
	/workdir/go/src/cmd/compile/internal/ssagen/ssa.go:574 +0x1dbc
cmd/compile/internal/ssagen.Compile(0xc00042fa40, 0x0?)
	/workdir/go/src/cmd/compile/internal/ssagen/pgen.go:187 +0x48
cmd/compile/internal/gc.compileFunctions.func4.1(0x0?)
	/workdir/go/src/cmd/compile/internal/gc/compile.go:153 +0x4c
cmd/compile/internal/gc.compileFunctions.func3.1()
	/workdir/go/src/cmd/compile/internal/gc/compile.go:140 +0x54
created by cmd/compile/internal/gc.compileFunctions.func3
	/workdir/go/src/cmd/compile/internal/gc/compile.go:138 +0x8c

watchflakes

moved this to Active in Test Flakeson Sep 20, 2022
bcmills

bcmills commented on Sep 20, 2022

@bcmills
Contributor

2022-08-31 21:10 linux-ppc64-sid-buildlet go@52d9e7f5

That particular crash bears a strong resemblance to #54906.

changed the title [-]cmd/compile: flaky internal compiler errors[/-] [+]cmd/compile: internal compiler errors in test flakes[/+] on Sep 20, 2022
prattmic

prattmic commented on Oct 5, 2022

@prattmic
Member

#55257 (comment) is #54906, closing.

Watchflakes will reopen with new default matching crashes.

Repository owner moved this from Active to Done in Test Flakeson Oct 5, 2022
gopherbot

gopherbot commented on Dec 20, 2022

@gopherbot
Repository owner moved this from Done to In Progress in Go Compiler / Runtimeon Dec 20, 2022

53 remaining items

gopherbot

gopherbot commented on May 30, 2023

@gopherbot
Contributor

Found new dashboard test flakes for:

#!watchflakes
default <- `: internal compiler error:`
2023-05-22 18:55 linux-ppc64le-power10osu vuln@4d485808 go@5ad676a7 runtime [build] (log)
/workdir/go/src/runtime/mgc.go:1259:6: internal compiler error: 'gcBgMarkWorker': value .autotmp_4 (v487) incorrectly live at entry

goroutine 2648 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x6c
cmd/compile/internal/base.FatalfAt({0x98f5350?, 0xc0?}, {0xc004f2b800, 0x2d}, {0xc0062ba990, 0x3, 0x3})
	cmd/compile/internal/base/print.go:230 +0x250
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0x65e344?, {0x1b21908?, 0xc0?}, {0x9818c0, 0x27}, {0xc005bf0860, 0x2, 0xc0098f5501?})
	cmd/compile/internal/ssagen/ssa.go:7985 +0x1a0
cmd/compile/internal/ssagen.(*state).Fatalf(0x8de2c0?, {0x9818c0?, 0xc002e9a560?}, {0xc005bf0860?, 0xac8b88?, 0xc0062d1b20?})
	cmd/compile/internal/ssagen/ssa.go:932 +0xb8
cmd/compile/internal/ssagen.(*simplePhiState).insertPhis(0xc0098f5bc8)
	cmd/compile/internal/ssagen/phi.go:486 +0x2a4
cmd/compile/internal/ssagen.(*state).insertPhis(...)
	cmd/compile/internal/ssagen/phi.go:45
cmd/compile/internal/ssagen.buildssa(0xc001b198c0, 0x2)
	cmd/compile/internal/ssagen/ssa.go:565 +0x24fc
cmd/compile/internal/ssagen.Compile(0xc001b198c0, 0x0?)
	cmd/compile/internal/ssagen/pgen.go:187 +0x48
cmd/compile/internal/gc.compileFunctions.func5.1(0x0?)
	cmd/compile/internal/gc/compile.go:184 +0x4c
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x48
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 149
	cmd/compile/internal/gc/compile.go:165 +0x20c

watchflakes

gopherbot

gopherbot commented on May 30, 2023

@gopherbot
Contributor

Found new dashboard test flakes for:

#!watchflakes
default <- `: internal compiler error:`
2023-05-04 15:43 linux-ppc64le-power10osu term@119f7033 go@301370c8 runtime [build] (log)
/workdir/go/src/runtime/heapdump.go:225:6: internal compiler error: 'dumpfinalizer': value .autotmp_20 (nil) incorrectly live at entry

goroutine 1685 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x6c
cmd/compile/internal/base.FatalfAt({0xbbc1a0?, 0xc0?}, {0xc00729aba0, 0x2d}, {0xc0072fc8a0, 0x3, 0x3})
	cmd/compile/internal/base/print.go:230 +0x250
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0x71724e960a68?, {0x72e3740?, 0xc0?}, {0x9818c0, 0x27}, {0xc00135bf40, 0x2, 0x20c30?})
...
cmd/compile/internal/ssagen.buildssa(0xc001968b00, 0x3)
	cmd/compile/internal/ssagen/ssa.go:548 +0x235c
cmd/compile/internal/ssagen.Compile(0xc001968b00, 0x0?)
	cmd/compile/internal/ssagen/pgen.go:187 +0x48
cmd/compile/internal/gc.compileFunctions.func5.1(0x0?)
	cmd/compile/internal/gc/compile.go:184 +0x4c
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x48
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 179
	cmd/compile/internal/gc/compile.go:165 +0x20c

watchflakes

gopherbot

gopherbot commented on May 31, 2023

@gopherbot
Contributor

Found new dashboard test flakes for:

#!watchflakes
default <- `: internal compiler error:`
2023-05-31 15:21 linux-ppc64-sid-buildlet go@e73e5d80 net/http [build] (log)
net/dnsclient.go:17446:192: internal compiler error: '(*http2clientConnReadLoop).processSettings': unhandled stmt XXX

goroutine 1388 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x6c
cmd/compile/internal/base.FatalfAt({0xc0?, 0x11db268?}, {0xc0011db240, 0x17}, {0xc007376720, 0x2, 0x2})
	cmd/compile/internal/base/print.go:230 +0x270
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0x670214?, {0x0?, 0x10?}, {0x96ce68, 0x11}, {0xc007319ec0, 0x1, 0x10000c007347c30?})
	cmd/compile/internal/ssagen/ssa.go:7985 +0x1a0
cmd/compile/internal/ssagen.(*state).Fatalf(0xc007347bf8?, {0x96ce68?, 0x221dc?}, {0xc007319ec0?, 0x2?, 0x100000800609820?})
	cmd/compile/internal/ssagen/ssa.go:932 +0xb8
cmd/compile/internal/ssagen.(*state).stmt(0xc007305e00, {0xacfa48, 0xc00146d968?})
	cmd/compile/internal/ssagen/ssa.go:2001 +0x398c
cmd/compile/internal/ssagen.(*state).stmtList(...)
	cmd/compile/internal/ssagen/ssa.go:1417
cmd/compile/internal/ssagen.buildssa(0xc003e9bb80, 0x0)
	cmd/compile/internal/ssagen/ssa.go:548 +0x24e0
cmd/compile/internal/ssagen.Compile(0xc003e9bb80, 0x0?)
	cmd/compile/internal/ssagen/pgen.go:187 +0x48
cmd/compile/internal/gc.compileFunctions.func5.1(0xc0033b6a20?)
	cmd/compile/internal/gc/compile.go:184 +0x4c
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x48
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 29
	cmd/compile/internal/gc/compile.go:165 +0x20c

go tool dist: FAILED: /workdir/go/pkg/tool/linux_ppc64/go_bootstrap install cmd: exit status 1

watchflakes

gopherbot

gopherbot commented on May 31, 2023

@gopherbot
Contributor

Found new dashboard test flakes for:

#!watchflakes
default <- `: internal compiler error:`
2023-05-30 22:47 linux-ppc64-sid-power10 tools@33c741de go@b71d4329 runtime [build] (log)
:1763:82: internal compiler error: 'reflect_mapassign': unhandled stmt XXX

goroutine 1314 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x6c
cmd/compile/internal/base.FatalfAt({0xc0?, 0x65fb268?}, {0xc0065fb240, 0x17}, {0xc0006f2440, 0x2, 0x2})
	cmd/compile/internal/base/print.go:230 +0x250
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0x675b44?, {0x0?, 0x10?}, {0x97ce60, 0x11}, {0xc00049d510, 0x1, 0x10000c003da71a0?})
	cmd/compile/internal/ssagen/ssa.go:7985 +0x1a0
cmd/compile/internal/ssagen.(*state).Fatalf(0xc003da7168?, {0x97ce60?, 0x2d2b8?}, {0xc00049d510?, 0x1006414?, 0xc0065fb328?})
	cmd/compile/internal/ssagen/ssa.go:932 +0xb8
cmd/compile/internal/ssagen.(*state).stmt(0xc000f84700, {0xadf608, 0xc001c21758?})
	cmd/compile/internal/ssagen/ssa.go:2001 +0x384c
cmd/compile/internal/ssagen.(*state).stmtList(...)
	cmd/compile/internal/ssagen/ssa.go:1417
cmd/compile/internal/ssagen.buildssa(0xc001cfcdc0, 0x1)
	cmd/compile/internal/ssagen/ssa.go:548 +0x2374
cmd/compile/internal/ssagen.Compile(0xc001cfcdc0, 0x0?)
	cmd/compile/internal/ssagen/pgen.go:187 +0x48
cmd/compile/internal/gc.compileFunctions.func5.1(0x0?)
	cmd/compile/internal/gc/compile.go:184 +0x4c
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x48
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 155
	cmd/compile/internal/gc/compile.go:165 +0x20c

watchflakes

gopherbot

gopherbot commented on May 31, 2023

@gopherbot
Contributor

Found new dashboard test flakes for:

#!watchflakes
default <- `: internal compiler error:`
2023-05-22 18:55 linux-ppc64le-buildlet vuln@4d485808 go@07719453 runtime [build] (log)
/workdir/go/src/runtime/profbuf.go:220:29: internal compiler error: 'spanOf': unhandled stmt <<

goroutine 2445 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x6c
cmd/compile/internal/base.FatalfAt({0x1723268?, 0xc0?}, {0xc001723240, 0x17}, {0xc008d49a00, 0x2, 0x2})
	cmd/compile/internal/base/print.go:230 +0x270
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0x666a94?, {0x2f69720?, 0xc0?}, {0x96cc50, 0x11}, {0xc008e813b0, 0x1, 0xc000094201?})
	cmd/compile/internal/ssagen/ssa.go:7985 +0x1a0
cmd/compile/internal/ssagen.(*state).Fatalf(0xc008e89b00?, {0x96cc50?, 0xc0032e9810?}, {0xc008e813b0?, 0xc002f69720?, 0x78c40e1d1518?})
	cmd/compile/internal/ssagen/ssa.go:932 +0xb8
cmd/compile/internal/ssagen.(*state).stmt(0xc008e89b00, {0xacf9a8, 0xc001fbc1c0?})
	cmd/compile/internal/ssagen/ssa.go:2001 +0x3958
cmd/compile/internal/ssagen.(*state).stmtList(...)
	cmd/compile/internal/ssagen/ssa.go:1417
cmd/compile/internal/ssagen.buildssa(0xc001f826e0, 0x3)
	cmd/compile/internal/ssagen/ssa.go:548 +0x24d0
cmd/compile/internal/ssagen.Compile(0xc001f826e0, 0x0?)
	cmd/compile/internal/ssagen/pgen.go:187 +0x48
cmd/compile/internal/gc.compileFunctions.func5.1(0x0?)
	cmd/compile/internal/gc/compile.go:184 +0x4c
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x48
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 94
	cmd/compile/internal/gc/compile.go:165 +0x20c

watchflakes

gopherbot

gopherbot commented on May 31, 2023

@gopherbot
Contributor

Found new dashboard test flakes for:

#!watchflakes
default <- `: internal compiler error:`
2023-05-31 19:56 linux-ppc64-sid-buildlet go@9552a112 net/http_test [build] (log)
:542:81: internal compiler error: 'ExampleServer_Shutdown': unhandled stmt XXX

goroutine 1318 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x6c
cmd/compile/internal/base.FatalfAt({0xc0?, 0x487d268?}, {0xc00487d240, 0x17}, {0xc0025186c0, 0x2, 0x2})
	cmd/compile/internal/base/print.go:230 +0x270
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0x670214?, {0x0?, 0x10?}, {0x96ce68, 0x11}, {0xc003efa380, 0x1, 0x10000c008485260?})
	cmd/compile/internal/ssagen/ssa.go:7985 +0x1a0
cmd/compile/internal/ssagen.(*state).Fatalf(0xc008485250?, {0x96ce68?, 0xc0044cdef0?}, {0xc003efa380?, 0x950140?, 0xc00487d328?})
	cmd/compile/internal/ssagen/ssa.go:932 +0xb8
cmd/compile/internal/ssagen.(*state).stmt(0xc0084a6f00, {0xacfa48, 0xc00170dbd8?})
	cmd/compile/internal/ssagen/ssa.go:2001 +0x398c
cmd/compile/internal/ssagen.(*state).stmtList(...)
	cmd/compile/internal/ssagen/ssa.go:1417
cmd/compile/internal/ssagen.buildssa(0xc005376f20, 0x1)
	cmd/compile/internal/ssagen/ssa.go:548 +0x24e0
cmd/compile/internal/ssagen.Compile(0xc005376f20, 0x675b7c?)
	cmd/compile/internal/ssagen/pgen.go:187 +0x48
cmd/compile/internal/gc.compileFunctions.func5.1(0x697ef4?)
	cmd/compile/internal/gc/compile.go:184 +0x4c
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x48
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 7
	cmd/compile/internal/gc/compile.go:165 +0x20c

watchflakes

gopherbot

gopherbot commented on Jun 14, 2023

@gopherbot
Contributor

Found new dashboard test flakes for:

#!watchflakes
default <- `: internal compiler error:`
2023-06-13 19:31 darwin-amd64-11_0 go@1d85bcea go/types [build] (log)
<autogenerated>:1: internal compiler error: unexpected fnsym: go/types.termlist.norm != ������{v.termlist.norm

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
go tool dist: FAILED: /tmp/buildlet/go/pkg/tool/darwin_amd64/go_bootstrap install std cmd: exit status 2

watchflakes

gopherbot

gopherbot commented on Jul 25, 2023

@gopherbot
Contributor

Found new dashboard test flakes for:

#!watchflakes
default <- `: internal compiler error:`
2023-07-25 00:57 darwin-amd64-13 go@6f597a8a runtime [build] (log)
<autogenerated>:1: internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference

goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x5e
cmd/compile/internal/base.FatalfAt({0x2000?, 0x0?}, {0x1968b98, 0x9}, {0xc003f2a850, 0x1, 0x1})
	cmd/compile/internal/base/print.go:230 +0x1d7
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/gc.handlePanic()
...
cmd/compile/internal/gc.compileFunctions.func5({0xc003b5e000, 0xbaf, 0xd50?})
	cmd/compile/internal/gc/compile.go:183 +0x59
cmd/compile/internal/gc.compileFunctions()
	cmd/compile/internal/gc/compile.go:194 +0x1eb
cmd/compile/internal/gc.Main(0x199fbe0)
	cmd/compile/internal/gc/main.go:344 +0x1637
main.main()
	cmd/compile/main.go:57 +0xf9

panic: /tmp/buildlet/go/bin/go build -gcflags  -buildmode=plugin -o /tmp/buildlet/tmp/plugin_test618494740/src/testplugin/plugin-mismatch.so ./plugin-mismatch: exit status 1
2023-07-25 00:57 darwin-amd64-13 go@6f597a8a runtime [build] (log)
<autogenerated>:1: internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference

goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x5e
cmd/compile/internal/base.FatalfAt({0x2000?, 0x0?}, {0x1968b98, 0x9}, {0xc003f2a850, 0x1, 0x1})
	cmd/compile/internal/base/print.go:230 +0x1d7
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/gc.handlePanic()
...
cmd/cgo/internal/testplugin_test.testMain(0xc0000ca000?)
	/tmp/buildlet/go/src/cmd/cgo/internal/testplugin/plugin_test.go:103 +0xb2e fp=0xc0000dbe50 sp=0xc0000db9c8 pc=0x1116bee
cmd/cgo/internal/testplugin_test.TestMain(0xc00003a6f0?)
	/tmp/buildlet/go/src/cmd/cgo/internal/testplugin/plugin_test.go:33 +0x76 fp=0xc0000dbe88 sp=0xc0000dbe50 pc=0x1115f96
main.main()
	_testmain.go:91 +0x1c6 fp=0xc0000dbf40 sp=0xc0000dbe88 pc=0x111a746
runtime.main()
	/tmp/buildlet/go/src/runtime/proc.go:267 +0x2bb fp=0xc0000dbfe0 sp=0xc0000dbf40 pc=0x10382bb
runtime.goexit()
	/tmp/buildlet/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000dbfe8 sp=0xc0000dbfe0 pc=0x1069da1

watchflakes

bcmills

bcmills commented on Jul 25, 2023

@bcmills
Contributor

This issue seems needlessly broad — it went from what seems to be an issue specific to linux/ppc64xx (possibly #60368?) to some new ICE (#61570).

I don't see evidence in the issue comments that this umbrella issue is being actively triaged, so I'm going to add a date cap and close it as stale.

locked and limited conversation to collaborators on Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rsc@prattmic@bcmills@gopherbot

        Issue actions

          cmd/compile: internal compiler errors in test flakes · Issue #55257 · golang/go