golang/go

runtime: TestWindowsStackMemoryCgo is flaky

Open

#22,575 opened on Nov 4, 2017

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsInvestigationOS-Windowscompiler/runtimehelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

CL 74490 has added TestWindowsStackMemoryCgo that has been flaky. It fails with on windows-386-2008 builder

https://build.golang.org/log/6eac250b23e6d93f36a6824e260c69c67bd639be https://build.golang.org/log/8528fd237adab902144de46f4a1814a162ed1514 https://build.golang.org/log/790eb5b35c79bb3154775987f5294c66715ed85a

--- FAIL: TestWindowsStackMemoryCgo (0.03s)
	crash_cgo_test.go:460: Failed to read stack usage: strconv.Atoi: parsing "59678\r\nThis application has requested the Runtime to terminate it in an unusual way.\nPlease contact the application's support team for more information.\r\nruntime: failed to create new OS thread (12)\r\n": invalid syntax
FAIL
FAIL	runtime	19.962s

on windows-amd64-2008 builder

https://build.golang.org/log/48659fdd5ce7d5fa4b5ac88009a1bb58a3ca3989 https://build.golang.org/log/b90c3a5bac8098da6dbbd0f1de78b349885d064f

and on windows-amd64-race builder

https://build.golang.org/log/c15b87b42bd461acb0066ca98b8f22aa982b5fc2

The error 12 is (from https://docs.microsoft.com/en-us/cpp/c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerr ) ENOMEM Not enough memory.

We also had trybots failed with different message

https://storage.googleapis.com/go-build-log/7228f1ad/windows-386-2008_ede19d12.log

--- FAIL: TestWindowsStackMemoryCgo (0.03s)
	crash_cgo_test.go:460: Failed to read stack usage: strconv.Atoi: parsing "69550\r\nThis application has requested the Runtime to terminate it in an unusual way.\nPlease contact the application's support team for more information.\r\nruntime: failed to create new OS thread (13)\r\n": invalid syntax
FAIL
FAIL	runtime	21.491s

13 is EACCES Permission denied

Alex

Contributor guide