Skip to content

runtime/pprof: TestBlockProfile fails on windows #6975

@alexbrainman

Description

@alexbrainman
C:\>go test -short runtime/pprof
--- FAIL: TestBlockProfile (0.20 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=2311091883
                28215648 1 @ 0x4584fd 0x43577a 0x434e91 0x42edd7 0x416a70
                #       0x4584fd        sync.(*Mutex).Lock+0xcd
        C:\go\root\src\pkg\sync\mutex.go:66
                #       0x43577a        runtime/pprof_test.blockMutex+0x6a
        c:\go\root\src\pkg\runtime\pprof\pprof_test.go:399
                #       0x434e91        runtime/pprof_test.TestBlockProfile+0x12
1       c:\go\root\src\pkg\runtime\pprof\pprof_test.go:320
                #       0x42edd7        testing.tRunner+0x87
        C:\go\root\src\pkg\testing\testing.go:391

                21807162 1 @ 0x40512f 0x4355df 0x434e91 0x42edd7 0x416a70
                #       0x40512f        runtime.selectgo+0xf
        C:\go\root\src\pkg\runtime\chan.c:840
                #       0x4355df        runtime/pprof_test.blockSelectRecvAsync+
0x10f   c:\go\root\src\pkg\runtime\pprof\pprof_test.go:373
                #       0x434e91        runtime/pprof_test.TestBlockProfile+0x12
1       c:\go\root\src\pkg\runtime\pprof\pprof_test.go:320
                #       0x42edd7        testing.tRunner+0x87
        C:\go\root\src\pkg\testing\testing.go:391

                12994587 1 @ 0x404b4f 0x4354c2 0x434e91 0x42edd7 0x416a70
                #       0x404b4f        runtime.chanrecv1+0x2f
        C:\go\root\src\pkg\runtime\chan.c:446
                #       0x4354c2        runtime/pprof_test.blockChanClose+0x92
        c:\go\root\src\pkg\runtime\pprof\pprof_test.go:363
                #       0x434e91        runtime/pprof_test.TestBlockProfile+0x12
1       c:\go\root\src\pkg\runtime\pprof\pprof_test.go:320
                #       0x42edd7        testing.tRunner+0x87
        C:\go\root\src\pkg\testing\testing.go:391

                12217131 1 @ 0x40512f 0x435708 0x434e91 0x42edd7 0x416a70
                #       0x40512f        runtime.selectgo+0xf
        C:\go\root\src\pkg\runtime\chan.c:840
                #       0x435708        runtime/pprof_test.blockSelectSendSync+0
x118    c:\go\root\src\pkg\runtime\pprof\pprof_test.go:386
                #       0x434e91        runtime/pprof_test.TestBlockProfile+0x12
1       c:\go\root\src\pkg\runtime\pprof\pprof_test.go:320
                #       0x42edd7        testing.tRunner+0x87
        C:\go\root\src\pkg\testing\testing.go:391

                11915568 1 @ 0x404b0f 0x435427 0x434e91 0x42edd7 0x416a70
                #       0x404b0f        runtime.chansend1+0x3f
        C:\go\root\src\pkg\runtime\chan.c:438
                #       0x435427        runtime/pprof_test.blockChanSend+0x97
        c:\go\root\src\pkg\runtime\pprof\pprof_test.go:354
                #       0x434e91        runtime/pprof_test.TestBlockProfile+0x12
1       c:\go\root\src\pkg\runtime\pprof\pprof_test.go:320
                #       0x42edd7        testing.tRunner+0x87
        C:\go\root\src\pkg\testing\testing.go:391

                10845774 1 @ 0x404b4f 0x435382 0x434e91 0x42edd7 0x416a70
                #       0x404b4f        runtime.chanrecv1+0x2f
        C:\go\root\src\pkg\runtime\chan.c:446
                #       0x435382        runtime/pprof_test.blockChanRecv+0x92
        c:\go\root\src\pkg\runtime\pprof\pprof_test.go:345
                #       0x434e91        runtime/pprof_test.TestBlockProfile+0x12
1       c:\go\root\src\pkg\runtime\pprof\pprof_test.go:320
                #       0x42edd7        testing.tRunner+0x87
        C:\go\root\src\pkg\testing\testing.go:391

FAIL
FAIL    runtime/pprof   6.813s

C:\>hg id
8ef815dd2770+ tip

C:\>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions