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

runtime: stack corruption on freebsd/arm #62251

Open
mknyszek opened this issue Aug 23, 2023 · 1 comment
Open

runtime: stack corruption on freebsd/arm #62251

mknyszek opened this issue Aug 23, 2023 · 1 comment
Labels
arch-arm Issues solely affecting the 32-bit arm architecture. 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-FreeBSD
Milestone

Comments

@mknyszek
Copy link
Contributor

mknyszek commented Aug 23, 2023

#!watchflakes
post <- goos == "freebsd" && goarch == "arm" && log ~ `fatal error: unknown caller pc`

CC @golang/freebsd

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Aug 23, 2023
@bcmills bcmills added OS-FreeBSD arch-arm Issues solely affecting the 32-bit arm architecture. labels Aug 23, 2023
@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "freebsd" && goarch == "arm" && log ~ `fatal error: unknown caller pc`
2023-08-21 17:53 freebsd-arm-paulzhol net@9cde5a08 go@e7e99a8e (log)
runtime: g 1: unexpected return pc for bootstrap/cmd/compile/internal/noder.(*pkgWriter).typeAndValue called from 0x294b7124
stack: frame={sp:0x298fed90, fp:0x298fedec} stack=[0x298f8000,0x29900000)
0x298fed10:  0x00000000  0x41440c2e  0x00000000  0x41f00000 
0x298fed20:  0x1bad4acf  0x3fd2fac5  0xbc31d5e9  0x3fd283a8 
0x298fed30:  0x00000000  0x41486a00  0x00000000  0x00000000 
0x298fed40:  0x00000000  0x41cdcd65  0xc0000000  0x415e3c85 
0x298fed50:  0x25c9140d  0x3fd6ad45  0x00000000  0x3fe00000 
0x298fed60:  0x00000000  0x00000000  0x00000000  0x00000000 
0x298fed70:  0x00000000  0x00000000  0x00000000  0x00000000 
0x298fed80:  0x0028185c <bootstrap/cmd/compile/internal/abt.(*node32).aDeleteMax+0x00000008>  0x00000000  0x006cb53c <bootstrap/cmd/compile/internal/noder.(*pkgWriter).maybeTypeAndValue+0x00000030>  0x006cb400 <bootstrap/cmd/compile/internal/noder.(*pkgWriter).typeAndValue+0x00000040> 
...
fatal error: unknown caller pc

runtime stack:
runtime.throw({0x7d42ee, 0x11})
	/tmp/workdir-host-freebsd-arm-paulzhol/go/src/runtime/panic.go:1047 +0x4c fp=0x29443b8c sp=0x29443b78 pc=0x51d2c
runtime.gentraceback(0xffffffff, 0xffffffff, 0x0, 0x294020f0, 0x0, 0x0, 0x7fffffff, 0x29443edc, 0x0, 0x0)
	/tmp/workdir-host-freebsd-arm-paulzhol/go/src/runtime/traceback.go:270 +0x183c fp=0x29443d90 sp=0x29443b8c pc=0x7e150
runtime.scanstack(0x294020f0, 0x2942a95c)
	/tmp/workdir-host-freebsd-arm-paulzhol/go/src/runtime/mgcmark.go:804 +0x1fc fp=0x29443ee8 sp=0x29443d90 pc=0x35024
runtime.markroot.func1()
...
runtime.markroot(0x2942a95c, 0x7, 0x1)
	/tmp/workdir-host-freebsd-arm-paulzhol/go/src/runtime/mgcmark.go:213 +0x234 fp=0x29443f70 sp=0x29443f14 pc=0x3346c
runtime.gcDrain(0x2942a95c, 0x3)
	/tmp/workdir-host-freebsd-arm-paulzhol/go/src/runtime/mgcmark.go:1069 +0x58c fp=0x29443fb8 sp=0x29443f70 pc=0x35eb0
runtime.gcBgMarkWorker.func2()
	/tmp/workdir-host-freebsd-arm-paulzhol/go/src/runtime/mgc.go:1348 +0xb8 fp=0x29443fe4 sp=0x29443fb8 pc=0x30b18
runtime.systemstack()
	/tmp/workdir-host-freebsd-arm-paulzhol/go/src/runtime/asm_arm.s:317 +0x60 fp=0x29443fe8 sp=0x29443fe4 pc=0x87a04

go tool dist: FAILED: /tmp/workdir-host-freebsd-arm-paulzhol/go/pkg/tool/freebsd_arm/compile -std -pack -o /tmp/workdir-host-freebsd-arm-paulzhol/tmp/go-tool-dist-1856047159/regexp/syntax/_go_.a -p regexp/syntax -importcfg /tmp/workdir-host-freebsd-arm-paulzhol/tmp/go-tool-dist-1856047159/regexp/syntax/importcfg /tmp/workdir-host-freebsd-arm-paulzhol/go/src/regexp/syntax/compile.go /tmp/workdir-host-freebsd-arm-paulzhol/go/src/regexp/syntax/doc.go /tmp/workdir-host-freebsd-arm-paulzhol/go/src/regexp/syntax/op_string.go /tmp/workdir-host-freebsd-arm-paulzhol/go/src/regexp/syntax/parse.go /tmp/workdir-host-freebsd-arm-paulzhol/go/src/regexp/syntax/perl_groups.go /tmp/workdir-host-freebsd-arm-paulzhol/go/src/regexp/syntax/prog.go /tmp/workdir-host-freebsd-arm-paulzhol/go/src/regexp/syntax/regexp.go /tmp/workdir-host-freebsd-arm-paulzhol/go/src/regexp/syntax/simplify.go: exit status 2

watchflakes

@cagedmantis cagedmantis added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 24, 2023
@cagedmantis cagedmantis added this to the Backlog milestone Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-arm Issues solely affecting the 32-bit arm architecture. 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-FreeBSD
Projects
Status: No status
Development

No branches or pull requests

4 participants