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/compiler: nil pointer dereference in cmd/internal/obj.(*Link).NumberSyms on openbsd/arm64 #61697

Open
gopherbot opened this issue Aug 1, 2023 · 3 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 ~ `internal compiler error` && log ~ `^cmd/internal/obj\.\(\*Link\)\.NumberSyms`

Issue created automatically to collect these failures.

Example (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 +0x64
cmd/compile/internal/base.FatalfAt({0x1a47508?, 0x40?}, {0x8c275a, 0x9}, {0x4001a47538, 0x1, 0x1})
	cmd/compile/internal/base/print.go:230 +0x1fc
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/gc.handlePanic()
	cmd/compile/internal/gc/main.go:52 +0x90
panic({0x8451c0?, 0xef6310?})
	runtime/panic.go:612 +0x120
cmd/internal/obj.(*Link).NumberSyms.func4(0x4000ffee00?)
	cmd/internal/obj/sym.go:267 +0x28
cmd/internal/obj.(*Link).traverseSyms.func1(...)
	cmd/internal/obj/sym.go:352
cmd/internal/obj.(*Link).traverseSyms(0x4000110600, 0x6, 0x4001a47960)
	cmd/internal/obj/sym.go:364 +0x570
cmd/internal/obj.(*Link).NumberSyms(0x4000110600)
	cmd/internal/obj/sym.go:266 +0x2fc
cmd/compile/internal/gc.Main(0x8f9858)
	cmd/compile/internal/gc/main.go:368 +0x154c
main.main()
	cmd/compile/main.go:57 +0x110

watchflakes

@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "testing" && test == ""
2023-07-31 22:18 openbsd-arm64-jsing go@be0e0b06 testing [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 +0x64
cmd/compile/internal/base.FatalfAt({0x1a47508?, 0x40?}, {0x8c275a, 0x9}, {0x4001a47538, 0x1, 0x1})
	cmd/compile/internal/base/print.go:230 +0x1fc
cmd/compile/internal/base.Fatalf(...)
	cmd/compile/internal/base/print.go:199
cmd/compile/internal/gc.handlePanic()
	cmd/compile/internal/gc/main.go:52 +0x90
panic({0x8451c0?, 0xef6310?})
	runtime/panic.go:612 +0x120
cmd/internal/obj.(*Link).NumberSyms.func4(0x4000ffee00?)
	cmd/internal/obj/sym.go:267 +0x28
cmd/internal/obj.(*Link).traverseSyms.func1(...)
	cmd/internal/obj/sym.go:352
cmd/internal/obj.(*Link).traverseSyms(0x4000110600, 0x6, 0x4001a47960)
	cmd/internal/obj/sym.go:364 +0x570
cmd/internal/obj.(*Link).NumberSyms(0x4000110600)
	cmd/internal/obj/sym.go:266 +0x2fc
cmd/compile/internal/gc.Main(0x8f9858)
	cmd/compile/internal/gc/main.go:368 +0x154c
main.main()
	cmd/compile/main.go:57 +0x110

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
@bcmills bcmills changed the title testing: unrecognized failures cmd/compiler: nil pointer dereference in cmd/internal/obj.(*Link).NumberSyms Aug 7, 2023
@bcmills bcmills added the compiler/runtime Issues related to the Go compiler and/or runtime. label Aug 7, 2023
@bcmills
Copy link
Contributor

bcmills commented Aug 7, 2023

(CC @golang/openbsd @golang/arm)

@mknyszek
Copy link
Contributor

mknyszek commented Aug 9, 2023

Possibly related to #61686?

@bcmills bcmills changed the title cmd/compiler: nil pointer dereference in cmd/internal/obj.(*Link).NumberSyms cmd/compiler: nil pointer dereference in cmd/internal/obj.(*Link).NumberSyms on openbsd/arm64 Aug 21, 2023
@bcmills bcmills changed the title cmd/compiler: nil pointer dereference in cmd/internal/obj.(*Link).NumberSyms on openbsd/arm64 cmd/compiler: nil pointer dereference in cmd/internal/obj.(*Link).NumberSyms on openbsd/arm64 Aug 21, 2023
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

3 participants