Skip to content

runtime: TestSegv failures in race mode on darwin #73784

@prattmic

Description

@prattmic

This is a new consistent failure on darwin race builders. https://go.dev/cl/643897 started running TestSegv (and other testprog tests) in -race mode for the first time.

https://ci.chromium.org/ui/p/golang/builders/ci/gotip-darwin-arm64-race/b8714420763090571297/test-results?sortby=&groupby=

This test is fine in race mode on Linux, but on Darwin we seem to have some problem unwinding.

runtime: newstack sp=0x16d1e69a0 stack=[0xc00003e000, 0xc00003e800]
        	morebuf={pc:0x102dac62c sp:0x16d1e69a0 lr:0x0}
        	sched={pc:0x102c913fc sp:0x16d1e69a0 lr:0x102dac62c ctxt:0x0}
        runtime: gp=0xc0000828c0, goid=19, gp->status=0x2
         runtime: split stack overflow: 0x16d1e69a0 < 0xc00003e000
        fatal error: runtime: split stack overflow
        
        runtime stack:
        runtime.throw({0x102df1816?, 0x102c54044?})
        	/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1089 +0x34 fp=0x16d1e68c0 sp=0x16d1e6890 pc=0x102c8f784
        runtime.newstack()
        	/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/stack.go:1052 +0x588 fp=0x16d1e69f0 sp=0x16d1e68c0 pc=0x102c75148
        runtime.morestack()
        	/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_arm64.s:392 +0x70 fp=0x16d1e69f0 sp=0x16d1e69f0 pc=0x102c953b0
        
        goroutine 19 gp=0xc0000828c0 m=0 mp=0x102f9dc40 [running]:
        runtime.sigpanic()
        	/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/signal_unix.go:906 +0x35c fp=0x16d1e69a0 sp=0x16d1e69a0 pc=0x102c913fc
        runtime: g 19: unexpected return pc for runtime.sigpanic called from 0x102dac62c
        stack: frame={sp:0x16d1e69a0, fp:0x16d1e69a0} stack=[0xc00003e000,0xc00003e800)
        
        created by main.SegvInCgo in goroutine 1
        	/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/testdata/testprogcgo/segv.go:21 +0x94

Metadata

Metadata

Assignees

Labels

BugReportIssues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.OS-DarwinTestingAn issue that has been verified to require only test changes, not just a test failure.compiler/runtimeIssues related to the Go compiler and/or runtime.release-blocker

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions