Skip to content

runtime/pprof: TestStackBarrierProfiling hangs #15477

@alexbrainman

Description

@alexbrainman

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
go version devel +80e9a7f Thu Apr 28 05:26:36 2016 +0000 linux/386
  1. What operating system and processor architecture are you using (go env)?
GOARCH="386"
GOBIN=""
GOEXE=""
GOHOSTARCH="386"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root"
GORACE=""
GOROOT="/root/go"
GOTOOLDIR="/root/go/pkg/tool/linux_386"
CC="gcc"
GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build695579586=/tmp/go-build"
CXX="g++"
CGO_ENABLED="1"
  1. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    A link on play.golang.org is best.

I run:

go test runtime/pprof -v -short -run=TestStackBarrierProfiling -timeout=1m
  1. What did you expect to see?

I expect test pass.

  1. What did you see instead?
=== RUN   TestStackBarrierProfiling
panic: test timed out after 1m0s

goroutine 8 [running]:
panic(0x813de00, 0x184262d0)
        /root/go/src/runtime/panic.go:500 +0x331
testing.startAlarm.func1()
        /root/go/src/testing/testing.go:855 +0xf5
created by time.goFunc
        /root/go/src/time/sleep.go:129 +0x36

goroutine 1 [chan receive]:
testing.(*T).Run(0x18418280, 0x8160c86, 0x19, 0x816f7b0, 0x1)
        /root/go/src/testing/testing.go:584 +0x2c4
testing.RunTests.func1(0x18418200)
        /root/go/src/testing/testing.go:730 +0x98
testing.tRunner(0x18418200, 0x18439ed8)
        /root/go/src/testing/testing.go:547 +0x8c
testing.RunTests(0x816f50c, 0x81d9da0, 0x9, 0x9, 0x18462001)
        /root/go/src/testing/testing.go:736 +0x332
testing.(*M).Run(0x18439f7c, 0x0)
        /root/go/src/testing/testing.go:680 +0x79
main.main()
        runtime/pprof/_test/_testmain.go:72 +0x100

goroutine 6 [syscall]:
syscall.Syscall6(0x72, 0x76c1, 0x184245cc, 0x0, 0x18478000, 0x0, 0x0, 0x80772bf, 0xb76df000, 0x0)
        /root/go/src/syscall/asm_linux_386.s:45 +0x5
syscall.wait4(0x76c1, 0x184245cc, 0x0, 0x18478000, 0x50, 0x0, 0x0)
        /root/go/src/syscall/zsyscall_linux_386.go:172 +0x71
syscall.Wait4(0x76c1, 0x184245f0, 0x0, 0x18478000, 0x184262b0, 0x0, 0x0)
        /root/go/src/syscall/syscall_linux.go:256 +0x4d
os.(*Process).wait(0x184103a0, 0x1f, 0x0, 0x0)
        /root/go/src/os/exec_unix.go:22 +0xae
os.(*Process).Wait(0x184103a0, 0x0, 0x0, 0x0)
        /root/go/src/os/doc.go:49 +0x2b
os/exec.(*Cmd).Wait(0x1840e140, 0x0, 0x0)
        /root/go/src/os/exec/exec.go:396 +0x11c
os/exec.(*Cmd).Run(0x1840e140, 0x0, 0x0)
        /root/go/src/os/exec/exec.go:262 +0x58
os/exec.(*Cmd).CombinedOutput(0x1840e140, 0x0, 0x0, 0x0, 0x0, 0x0)
        /root/go/src/os/exec/exec.go:453 +0x1a7
runtime/pprof_test.TestStackBarrierProfiling(0x18418280)
        /root/go/src/runtime/pprof/pprof_test.go:392 +0x2b6
testing.tRunner(0x18418280, 0x816f7b0)
        /root/go/src/testing/testing.go:547 +0x8c
created by testing.(*T).Run
        /root/go/src/testing/testing.go:583 +0x2a5

goroutine 7 [syscall]:
syscall.Syscall(0x3, 0x4, 0x1847a000, 0x200, 0xb76df000, 0x0, 0x1)
        /root/go/src/syscall/asm_linux_386.s:20 +0x5
syscall.read(0x4, 0x1847a000, 0x200, 0x200, 0x816f4fc, 0x0, 0x0)
        /root/go/src/syscall/zsyscall_linux_386.go:783 +0x5b
syscall.Read(0x4, 0x1847a000, 0x200, 0x200, 0x0, 0x0, 0x0)
        /root/go/src/syscall/syscall_unix.go:161 +0x45
os.(*File).read(0x184262a8, 0x1847a000, 0x200, 0x200, 0x1847a000, 0x0, 0x0)
        /root/go/src/os/file_unix.go:228 +0x4a
os.(*File).Read(0x184262a8, 0x1847a000, 0x200, 0x200, 0x11de5298, 0x0, 0x0)
        /root/go/src/os/file.go:97 +0x6f
bytes.(*Buffer).ReadFrom(0x18462180, 0x81c9770, 0x184262a8, 0x0, 0x0, 0x0, 0x0)
        /root/go/src/bytes/buffer.go:176 +0x1c5
io.copyBuffer(0x81c96f0, 0x18462180, 0x81c9770, 0x184262a8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /root/go/src/io/io.go:392 +0x129
io.Copy(0x81c96f0, 0x18462180, 0x81c9770, 0x184262a8, 0x0, 0x0, 0x0, 0x0)
        /root/go/src/io/io.go:368 +0x53
os/exec.(*Cmd).writerDescriptor.func1(0x0, 0x0)
        /root/go/src/os/exec/exec.go:236 +0x57
os/exec.(*Cmd).Start.func1(0x1840e140, 0x18410260)
        /root/go/src/os/exec/exec.go:344 +0x1d
created by os/exec.(*Cmd).Start
        /root/go/src/os/exec/exec.go:345 +0x698
exit status 2
FAIL    runtime/pprof   60.005s

The test fails on my windows-amd64 too.

Alex

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions