Skip to content

runtime/pprof: test timed out in StartCPUProfile #60108

@bcmills

Description

@bcmills
#!watchflakes
post <- pkg == "runtime/pprof" && log ~ `Test killed with quit` && log ~ `^runtime/pprof\.StartCPUProfile`

https://build.golang.org/log/e7671b5aac25301376187c735141b1a0dd33bbe0 (from #57995 (comment)):

SIGQUIT: quit
PC=0x7ff81b7a62be m=1 sigcode=0
…
goroutine 2 [running]:
	goroutine running on other thread; stack unavailable
created by runtime.init.6 in goroutine 1
	/tmp/buildlet/go/src/runtime/proc.go:310 +0x1a
…
goroutine 55 [running]:
	goroutine running on other thread; stack unavailable
created by testing.(*T).Run in goroutine 1
	/tmp/buildlet/go/src/testing/testing.go:1648 +0x836
…
goroutine 57 [syscall]:
runtime.notetsleepg(0x10bce3a?, 0xc000050ec8?)
	/tmp/buildlet/go/src/runtime/lock_sema.go:294 +0x31 fp=0xc000050e90 sp=0xc000050e48 pc=0x105c711
runtime.(*profBuf).read(0xc000138090, 0x0)
	/tmp/buildlet/go/src/runtime/profbuf.go:500 +0xa8 fp=0xc000050ee8 sp=0xc000050e90 pc=0x10978a8
runtime/pprof.readProfile()
	/tmp/buildlet/go/src/runtime/cpuprof.go:230 +0x4b fp=0xc000050f48 sp=0xc000050ee8 pc=0x10b6f4b
runtime/pprof.profileWriter({0x12eea60, 0xc000414000})
	/tmp/buildlet/go/src/runtime/pprof/pprof.go:810 +0x65 fp=0xc000050fb0 sp=0xc000050f48 pc=0x121d105
runtime/pprof.StartCPUProfile.func2()
	/tmp/buildlet/go/src/runtime/pprof/pprof.go:794 +0x45 fp=0xc000050fe0 sp=0xc000050fb0 pc=0x121d005
runtime.goexit()
	/tmp/buildlet/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000050fe8 sp=0xc000050fe0 pc=0x10bd041
created by runtime/pprof.StartCPUProfile in goroutine 55
	/tmp/buildlet/go/src/runtime/pprof/pprof.go:794 +0x1af
…
*** Test killed with quit: ran too long (4m0s).
FAIL	runtime/pprof	240.037s

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.OS-Darwincompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Done

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions