Skip to content

runtime/pprof: blockprofile test fails in VMs #7696

@gopherbot

Description

@gopherbot

by guillaume@charmes.net:

I am on ubuntu 13.10 (vagrant), 3.11.0-15, amd64/linux
The test suite fail from a fresh clone of the release (1.2.1)
I reproduce with 1.2 as well, didn't try ealier version.

```
$> hg clone https://code.google.com/p/go ~/goroot
$> hg checkout release
$> export GOROOT=~/goroot
$> cd ~/goroot/src && ./all.bash
--- FAIL: TestBlockProfile (0.17 seconds)
        pprof_test.go:332: Bad chan recv entry, expect:

                [0-9]+ [0-9]+ @ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+
                #       0x[0-9,a-f]+    runtime\.chanrecv1\+0x[0-9,a-f]+        .*/src/pkg/runtime/chan.c:[0-9]+
                #       0x[0-9,a-f]+    runtime/pprof_test\.blockChanRecv\+0x[0-9,a-f]+ .*/src/pkg/runtime/pprof/pprof_test.go:[0-9]+
                #       0x[0-9,a-f]+    runtime/pprof_test\.TestBlockProfile\+0x[0-9,a-f]+      .*/src/pkg/runtime/pprof/pprof_test.go:[0-9]+

                got:
                --- contention:
                cycles/second=2284813705
                285181184 1 @ 0x404c68 0x439a0b 0x4392a9 0x43266b 0x417a40
                #       0x404c68        runtime.chanrecv1+0x38                          /home/vagrant/goroot/src/pkg/runtime/chan.c:446
                #       0x439a0b        runtime/pprof_test.blockChanClose+0x9b          /home/vagrant/goroot/src/pkg/runtime/pprof/pprof_test.go:363
                #       0x4392a9        runtime/pprof_test.TestBlockProfile+0x189       /home/vagrant/goroot/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x43266b        testing.tRunner+0x8b                            /home/vagrant/goroot/src/pkg/testing/testing.go:391

                25687733 1 @ 0x404c1c 0x439960 0x4392a9 0x43266b 0x417a40
                #       0x404c1c        runtime.chansend1+0x4c                          /home/vagrant/goroot/src/pkg/runtime/chan.c:438
                #       0x439960        runtime/pprof_test.blockChanSend+0xa0           /home/vagrant/goroot/src/pkg/runtime/pprof/pprof_test.go:354
                #       0x4392a9        runtime/pprof_test.TestBlockProfile+0x189       /home/vagrant/goroot/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x43266b        testing.tRunner+0x8b                            /home/vagrant/goroot/src/pkg/testing/testing.go:391

                25192867 1 @ 0x45e616 0x439ce4 0x4392a9 0x43266b 0x417a40
                #       0x45e616        sync.(*Mutex).Lock+0xd6                         /home/vagrant/goroot/src/pkg/sync/mutex.go:66
                #       0x439ce4        runtime/pprof_test.blockMutex+0x74              /home/vagrant/goroot/src/pkg/runtime/pprof/pprof_test.go:399
                #       0x4392a9        runtime/pprof_test.TestBlockProfile+0x189       /home/vagrant/goroot/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x43266b        testing.tRunner+0x8b                            /home/vagrant/goroot/src/pkg/testing/testing.go:391

                23778388 1 @ 0x4052e2 0x439c6c 0x4392a9 0x43266b 0x417a40
                #       0x4052e2        runtime.selectgo+0x12                           /home/vagrant/goroot/src/pkg/runtime/chan.c:840
                #       0x439c6c        runtime/pprof_test.blockSelectSendSync+0x12c    /home/vagrant/goroot/src/pkg/runtime/pprof/pprof_test.go:386
                #       0x4392a9        runtime/pprof_test.TestBlockProfile+0x189       /home/vagrant/goroot/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x43266b        testing.tRunner+0x8b                            /home/vagrant/goroot/src/pkg/testing/testing.go:391

FAIL
FAIL    runtime/pprof   7.425s

$> go version
go version go1.2.1 linux/amd64
```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions