Skip to content

runtime/pprof: tests "out of memory" on Plan 9 #9712

@0intro

Description

@0intro

The runtime/pprof trace_parser_test.go and trace_test.go
test files were added in CL 2039.

TestTraceDoubleStart, TestTrace, TestTraceStres and
TestTraceSymbolize are failing on Plan 9 ("out of memory").

However, only TestTrace is failing when the tests are run individually.

cpu% go test -run TestTraceDoubleStart
PASS
ok      runtime/pprof   0.052s
cpu% go test -run TestTrace
fatal error: trace: out of memory
goroutine 7 [running]:
runtime.throw(0x196ac8, 0x14)
    /usr/go/src/runtime/panic.go:508 +0x71 fp=0x10397ddc sp=0x10397dd0
runtime.traceFlush(0x0, 0x0)
    /usr/go/src/runtime/trace.go:511 +0x1f0 fp=0x10397e08 sp=0x10397ddc
runtime.traceEvent(0x10d, 0x10397ec0, 0x2, 0x2)
    /usr/go/src/runtime/trace.go:411 +0x68a fp=0x10397eb0 sp=0x10397e08
runtime.traceGoCreate(0x1037a0a0, 0x21680)
    /usr/go/src/runtime/trace.go:734 +0x99 fp=0x10397ee0 sp=0x10397eb0
runtime.StartTrace(0x0, 0x0)
    /usr/go/src/runtime/trace.go:151 +0x146 fp=0x10397f3c sp=0x10397ee0
runtime/pprof.StartTrace(0x3038dbc0, 0x103ec420, 0x0, 0x0)
    /usr/go/src/runtime/pprof/pprof.go:624 +0x57 fp=0x10397f5c sp=0x10397f3c
runtime/pprof_test.TestTraceDoubleStart(0x103ec3c0)
    /usr/go/src/runtime/pprof/trace_test.go:38 +0x60 fp=0x10397fb4 sp=0x10397f5c
testing.tRunner(0x103ec3c0, 0x252300)
    /usr/go/src/testing/testing.go:448 +0xb6 fp=0x10397fe8 sp=0x10397fb4
runtime.goexit()
    /usr/go/src/runtime/asm_386.s:2408 +0x1 fp=0x10397fec sp=0x10397fe8
created by testing.RunTests
    /usr/go/src/testing/testing.go:556 +0x881
goroutine 1 [chan receive]:
testing.RunTests(0x1cc818, 0x2522a0, 0xc, 0xc, 0x1)
    /usr/go/src/testing/testing.go:557 +0x8bb
testing.(*M).Run(0x103cc060, 0x268040)
    /usr/go/src/testing/testing.go:486 +0x5d
main.main()
    runtime/pprof/_test/_testmain.go:76 +0x176
exit status: 'pprof.test 16942: 2'
FAIL    runtime/pprof   3.325s
cpu% go test -run TestTraceStress
PASS
ok      runtime/pprof   4.844s
cpu% go test -run TestTraceSymbolize
PASS
ok      runtime/pprof   9.812s

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