Skip to content

runtime/pprof: TestBlockProfile failures with "Bad chan … entry" or "Bad select … entry" #6999

@gopherbot

Description

@gopherbot

by jphilbin@google.com:

What steps will reproduce the problem?

No go version currently installed.
$ hg clone -u release https://code.google.com/p/go
$ cd go/src
$ ./all.bash

Get the following failure:
===
--- 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=1659580313
                27164213 1 @ 0x4052e2 0x439bec 0x439229 0x4325eb 0x417a30
                #       0x4052e2        runtime.selectgo+0x12                           /home/jphilbin/go/src/pkg/runtime/chan.c:840
                #       0x439bec        runtime/pprof_test.blockSelectSendSync+0x12c    /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:386
                #       0x439229        runtime/pprof_test.TestBlockProfile+0x189       /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x4325eb        testing.tRunner+0x8b                            /home/jphilbin/go/src/pkg/testing/testing.go:391

                17075383 1 @ 0x45e596 0x439c64 0x439229 0x4325eb 0x417a30
                #       0x45e596        sync.(*Mutex).Lock+0xd6                         /home/jphilbin/go/src/pkg/sync/mutex.go:66
                #       0x439c64        runtime/pprof_test.blockMutex+0x74              /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:399
                #       0x439229        runtime/pprof_test.TestBlockProfile+0x189       /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x4325eb        testing.tRunner+0x8b                            /home/jphilbin/go/src/pkg/testing/testing.go:391

                17055513 1 @ 0x404c68 0x43998b 0x439229 0x4325eb 0x417a30
                #       0x404c68        runtime.chanrecv1+0x38                          /home/jphilbin/go/src/pkg/runtime/chan.c:446
                #       0x43998b        runtime/pprof_test.blockChanClose+0x9b          /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:363
                #       0x439229        runtime/pprof_test.TestBlockProfile+0x189       /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x4325eb        testing.tRunner+0x8b                            /home/jphilbin/go/src/pkg/testing/testing.go:391

                17000189 1 @ 0x404c1c 0x4398e0 0x439229 0x4325eb 0x417a30
                #       0x404c1c        runtime.chansend1+0x4c                          /home/jphilbin/go/src/pkg/runtime/chan.c:438
                #       0x4398e0        runtime/pprof_test.blockChanSend+0xa0           /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:354
                #       0x439229        runtime/pprof_test.TestBlockProfile+0x189       /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x4325eb        testing.tRunner+0x8b                            /home/jphilbin/go/src/pkg/testing/testing.go:391

                16926852 1 @ 0x4052e2 0x439ab1 0x439229 0x4325eb 0x417a30
                #       0x4052e2        runtime.selectgo+0x12                           /home/jphilbin/go/src/pkg/runtime/chan.c:840
                #       0x439ab1        runtime/pprof_test.blockSelectRecvAsync+0x121   /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:373
                #       0x439229        runtime/pprof_test.TestBlockProfile+0x189       /home/jphilbin/go/src/pkg/runtime/pprof/pprof_test.go:320
                #       0x4325eb        testing.tRunner+0x8b                            /home/jphilbin/go/src/pkg/testing/testing.go:391

FAIL
FAIL    runtime/pprof   8.001s
===

Which operating system are you using?
Ubuntu 12.10 amd64


Which version are you using?  (run 'go version')
go version go1.2 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions