Description
What version of Go are you using (go version
)?
main branch tip
go version go1.19-pre4 cl/455575533 +12f49fe0ed
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env
)?
windows/386, specifically the new builder with update windows image and compilers, for example windows-386-2012-newcc
.
What did you do?
ran the misc/cgo/test as part of all.bat
What did you expect to see?
clean run
What did you see instead?
Representative slowbot failure:
https://storage.googleapis.com/go-build-log/6a2e5140/windows-386-2012-newcc_2be6fdb8.log
The test fails with this failure mode:
test run output with stack traces
../misc/cgo/test
ok misc/cgo/test 12.649s
Exception 0xc0000005 0x8 0x424448b 0x424448b
PC=0x424448b
signal arrived during external code executionruntime.cgocall(0x403170, 0x128a4f70)
C:/workdir/go/src/runtime/cgocall.go:158 +0x58 fp=0x128a4f5c sp=0x128a4f44 pc=0x40d9f8
misc/cgo/test._Cfunc_scatter()
_cgo_gotypes.go:2043 +0x2f fp=0x128a4f70 sp=0x128a4f5c pc=0x52134f
misc/cgo/test.test1635(0x129083c0)
C:/workdir/go/misc/cgo/test/test.go:1254 +0x1e fp=0x128a4f94 sp=0x128a4f70 pc=0x542b0e
misc/cgo/test.Test1635(0x129083c0)
C:/workdir/go/misc/cgo/test/cgo_test.go:15 +0x21 fp=0x128a4f9c sp=0x128a4f94 pc=0x51ceb1
testing.tRunner(0x129083c0, 0x584428)
C:/workdir/go/src/testing/testing.go:1446 +0x113 fp=0x128a4fe4 sp=0x128a4f9c pc=0x4e0693
testing.(*T).Run.func1()
C:/workdir/go/src/testing/testing.go:1493 +0x2e fp=0x128a4ff0 sp=0x128a4fe4 pc=0x4e148e
runtime.goexit()
C:/workdir/go/src/runtime/asm_386.s:1326 +0x1 fp=0x128a4ff4 sp=0x128a4ff0 pc=0x473291
created by testing.(*T).Run
C:/workdir/go/src/testing/testing.go:1493 +0x374goroutine 1 [chan receive]:
runtime.gopark(0x5859cc, 0x12902270, 0xe, 0x17, 0x2)
C:/workdir/go/src/runtime/proc.go:363 +0xff fp=0x1292bcd4 sp=0x1292bcc0 pc=0x446bdf
runtime.chanrecv(0x12902240, 0x1292bd53, 0x1)
C:/workdir/go/src/runtime/chan.go:583 +0x3f2 fp=0x1292bd1c sp=0x1292bcd4 pc=0x410282
runtime.chanrecv1(0x12902240, 0x1292bd53)
C:/workdir/go/src/runtime/chan.go:442 +0x1c fp=0x1292bd30 sp=0x1292bd1c pc=0x40fe8c
testing.(*T).Run(0x128840f0, {0x576e27, 0x8}, 0x584428)
C:/workdir/go/src/testing/testing.go:1494 +0x393 fp=0x1292bd7c sp=0x1292bd30 pc=0x4e1413
testing.runTests.func1(0x128840f0)
C:/workdir/go/src/testing/testing.go:1846 +0x5e fp=0x1292bda0 sp=0x1292bd7c pc=0x4e31ae
testing.tRunner(0x128840f0, 0x1292be38)
C:/workdir/go/src/testing/testing.go:1446 +0x113 fp=0x1292bde8 sp=0x1292bda0 pc=0x4e0693
testing.runTests(0x12898000, {0x6af760, 0x59, 0x59}, {0xc0a55481db90a338, 0x8bb304cc19, 0x6b2260})
C:/workdir/go/src/testing/testing.go:1844 +0x3a6 fp=0x1292be4c sp=0x1292bde8 pc=0x4e3096
testing.(*M).Run(0x12894000)
C:/workdir/go/src/testing/testing.go:1726 +0x680 fp=0x1292bf88 sp=0x1292be4c pc=0x4e1c30
main.main()
_testmain.go:229 +0x185 fp=0x1292bfc4 sp=0x1292bf88 pc=0x549785
runtime.main()
C:/workdir/go/src/runtime/proc.go:250 +0x231 fp=0x1292bff0 sp=0x1292bfc4 pc=0x446821
runtime.goexit()
C:/workdir/go/src/runtime/asm_386.s:1326 +0x1 fp=0x1292bff4 sp=0x1292bff0 pc=0x473291goroutine 2 [force gc (idle)]:
runtime.gopark(0x585aa4, 0x6b2020, 0x11, 0x14, 0x1)
C:/workdir/go/src/runtime/proc.go:363 +0xff fp=0x1282ffdc sp=0x1282ffc8 pc=0x446bdf
runtime.goparkunlock(...)
C:/workdir/go/src/runtime/proc.go:369
runtime.forcegchelper()
C:/workdir/go/src/runtime/proc.go:302 +0xc3 fp=0x1282fff0 sp=0x1282ffdc pc=0x446a63
runtime.goexit()
C:/workdir/go/src/runtime/asm_386.s:1326 +0x1 fp=0x1282fff4 sp=0x1282fff0 pc=0x473291
created by runtime.init.5
C:/workdir/go/src/runtime/proc.go:290 +0x23goroutine 3 [GC sweep wait]:
runtime.gopark(0x585aa4, 0x6b21c0, 0xc, 0x14, 0x1)
C:/workdir/go/src/runtime/proc.go:363 +0xff fp=0x12830fd4 sp=0x12830fc0 pc=0x446bdf
runtime.goparkunlock(...)
C:/workdir/go/src/runtime/proc.go:369
runtime.bgsweep(0x12816100)
C:/workdir/go/src/runtime/mgcsweep.go:278 +0x96 fp=0x12830fe8 sp=0x12830fd4 pc=0x42e916
runtime.gcenable.func1()
C:/workdir/go/src/runtime/mgc.go:178 +0x27 fp=0x12830ff0 sp=0x12830fe8 pc=0x420577
runtime.goexit()
C:/workdir/go/src/runtime/asm_386.s:1326 +0x1 fp=0x12830ff4 sp=0x12830ff0 pc=0x473291
created by runtime.gcenable
C:/workdir/go/src/runtime/mgc.go:178 +0x7cgoroutine 4 [GC scavenge wait]:
runtime.gopark(0x585aa4, 0x6b2320, 0xd, 0x14, 0x2)
C:/workdir/go/src/runtime/proc.go:363 +0xff fp=0x12831fb8 sp=0x12831fa4 pc=0x446bdf
runtime.goparkunlock(...)
C:/workdir/go/src/runtime/proc.go:369
runtime.(*scavengerState).park(0x6b2320)
C:/workdir/go/src/runtime/mgcscavenge.go:389 +0x5f fp=0x12831fcc sp=0x12831fb8 pc=0x42c41f
runtime.bgscavenge(0x12816100)
C:/workdir/go/src/runtime/mgcscavenge.go:617 +0x4b fp=0x12831fe8 sp=0x12831fcc pc=0x42caab
runtime.gcenable.func2()
C:/workdir/go/src/runtime/mgc.go:179 +0x27 fp=0x12831ff0 sp=0x12831fe8 pc=0x420537
runtime.goexit()
C:/workdir/go/src/runtime/asm_386.s:1326 +0x1 fp=0x12831ff4 sp=0x12831ff0 pc=0x473291
created by runtime.gcenable
C:/workdir/go/src/runtime/mgc.go:179 +0xc1goroutine 18 [finalizer wait]:
runtime.gopark(0x585aa4, 0x6d90bc, 0x10, 0x14, 0x1)
C:/workdir/go/src/runtime/proc.go:363 +0xff fp=0x1282ef90 sp=0x1282ef7c pc=0x446bdf
runtime.goparkunlock(...)
C:/workdir/go/src/runtime/proc.go:369
runtime.runfinq()
C:/workdir/go/src/runtime/mfinal.go:180 +0xfb fp=0x1282eff0 sp=0x1282ef90 pc=0x41f7cb
runtime.goexit()
C:/workdir/go/src/runtime/asm_386.s:1326 +0x1 fp=0x1282eff4 sp=0x1282eff0 pc=0x473291
created by runtime.createfing
C:/workdir/go/src/runtime/mfinal.go:157 +0x54goroutine 19 [syscall]:
runtime.cgocall(0x4034c0, 0x1282afe4)
C:/workdir/go/src/runtime/cgocall.go:158 +0x58 fp=0x1282afd0 sp=0x1282afb8 pc=0x40d9f8
misc/cgo/test._Cfunc_usleep(0x2710)
_cgo_gotypes.go:2373 +0x37 fp=0x1282afe4 sp=0x1282afd0 pc=0x5217a7
misc/cgo/test.lockOSThreadCallback.func1()
C:/workdir/go/misc/cgo/test/testx.go:359 +0x28 fp=0x1282aff0 sp=0x1282afe4 pc=0x548988
runtime.goexit()
C:/workdir/go/src/runtime/asm_386.s:1326 +0x1 fp=0x1282aff4 sp=0x1282aff0 pc=0x473291
created by misc/cgo/test.lockOSThreadCallback
C:/workdir/go/misc/cgo/test/testx.go:359 +0x87
eax 0x18feb8
ebx 0x128a4f70
ecx 0x6b2854
edx 0x128a4f40
edi 0xc0
esi 0x5b502a
ebp 0x6b2820
esp 0x18fea0
eip 0x424448b
eflags 0x10206
cs 0x23
fs 0x53
gs 0x2b
FAIL misc/cgo/test 0.142s
FAIL
2022/06/23 21:16:43 Failed: exit status 1
ok misc/cgo/test 12.454s
ok misc/cgo/test 12.651s
ok misc/cgo/test 5.689s
skipped due to earlier error
go tool dist: FAILED
I am not sure what the root cause is here, needs to be debugged.