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/compile/internal/ir: panic in IsSynthetic on openbsd/arm64 #61686

Open
gopherbot opened this issue Aug 1, 2023 · 4 comments
Open

cmd/compile/internal/ir: panic in IsSynthetic on openbsd/arm64 #61686

gopherbot opened this issue Aug 1, 2023 · 4 comments
Labels
arch-arm64 compiler/runtime Issues related to the Go compiler and/or runtime. help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-OpenBSD

Comments

@gopherbot
Copy link

gopherbot commented Aug 1, 2023

#!watchflakes
post <- goos == "openbsd" && goarch == "arm64" && log ~ `panic: runtime error: invalid memory address or nil pointer dereference` && log ~ `^cmd/compile/internal/ir\.IsSynthetic`

Issue created automatically to collect these failures.

Example (log):

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x32509c]

goroutine 10 [running]:
cmd/compile/internal/ir.IsSynthetic(...)
	cmd/compile/internal/ir/node.go:68
cmd/compile/internal/ssa.BuildFuncDebug(0x83e600?, 0x4000a941a0, 0x40002172c0?, 0x9?, 0x4000b15400)
	cmd/compile/internal/ssa/debug.go:600 +0xb2c
cmd/compile/internal/ssagen.genssa(0x4000a941a0, 0x4000e38af0)
	cmd/compile/internal/ssagen/ssa.go:7327 +0xe00
cmd/compile/internal/ssagen.Compile(0x40004869a0, 0x40006e6000?)
	cmd/compile/internal/ssagen/pgen.go:197 +0x280
cmd/compile/internal/gc.compileFunctions.func5.1(0x40006e6060?)
	cmd/compile/internal/gc/compile.go:184 +0x3c
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x3c
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 9
	cmd/compile/internal/gc/compile.go:165 +0x1d8
go tool dist: FAILED: /home/gopher/build/go/pkg/tool/openbsd_arm64/go_bootstrap install std: exit status 1

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 1, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "encoding/asn1" && test == ""
2023-07-26 11:14 openbsd-arm64-jsing sys@104d4017 go@ee61186b encoding/asn1 [build] (log)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x32509c]

goroutine 10 [running]:
cmd/compile/internal/ir.IsSynthetic(...)
	cmd/compile/internal/ir/node.go:68
cmd/compile/internal/ssa.BuildFuncDebug(0x83e600?, 0x4000a941a0, 0x40002172c0?, 0x9?, 0x4000b15400)
	cmd/compile/internal/ssa/debug.go:600 +0xb2c
cmd/compile/internal/ssagen.genssa(0x4000a941a0, 0x4000e38af0)
	cmd/compile/internal/ssagen/ssa.go:7327 +0xe00
cmd/compile/internal/ssagen.Compile(0x40004869a0, 0x40006e6000?)
	cmd/compile/internal/ssagen/pgen.go:197 +0x280
cmd/compile/internal/gc.compileFunctions.func5.1(0x40006e6060?)
	cmd/compile/internal/gc/compile.go:184 +0x3c
cmd/compile/internal/gc.compileFunctions.func3.1()
	cmd/compile/internal/gc/compile.go:166 +0x3c
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 9
	cmd/compile/internal/gc/compile.go:165 +0x1d8
go tool dist: FAILED: /home/gopher/build/go/pkg/tool/openbsd_arm64/go_bootstrap install std: exit status 1

watchflakes

@bcmills bcmills added the compiler/runtime Issues related to the Go compiler and/or runtime. label Aug 8, 2023
@bcmills
Copy link
Contributor

bcmills commented Aug 8, 2023

This is a crash in the compiler, not an error relating to the encoding/asn1 package.

(@cherrymui, perhaps the watchflakes heuristics could be improved to better distinguish between a compiler panic and an error emitted by the compiler?)

@bcmills bcmills changed the title encoding/asn1: unrecognized failures cmd/compile/internal/ir: panic in IsSynthetic on openbsd/arm64 Aug 8, 2023
@bcmills
Copy link
Contributor

bcmills commented Aug 8, 2023

(attn @golang/openbsd @4a6f656c)

@mknyszek
Copy link
Contributor

mknyszek commented Aug 9, 2023

Unlikely to be an actual error in the logic of the compiler, more likely to be some kind of memory corruption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-arm64 compiler/runtime Issues related to the Go compiler and/or runtime. help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-OpenBSD
Projects
Status: No status
Development

No branches or pull requests

4 participants
@mknyszek @bcmills @gopherbot and others