Skip to content

runtime/trace: TestTraceCPUProfile fails intermittently starting 2022-05-03 #52693

@rhysh

Description

@rhysh

The failures I've seen so far are on android/386 and openbsd/amd64. Both show a sample starting in runtime.mcall (which I think is important to the bug) and leading to how a preemption is reported in the execution trace (which I think is less important). I'll take a look at what mcall means for getg(), and getg().m.p.ptr().

CC @bcmills (you'll see these when you do the next dashboard triage).

$ greplogs -e TestTraceCPUProfile -dashboard -l -since 2022-05-02 -md

2022-05-03T21:11:24-23f1325/android-386-emu
2022-05-03T21:11:24-23f1325/openbsd-amd64-70

--- FAIL: TestTraceCPUProfile (0.31s)
    trace_test.go:689: CPU profile included 1 samples at stack "runtime.step:1122 runtime.pcvalue:918 runtime.funcspdelta:1041 runtime.gentraceback:191 runtime.gcallers:920 runtime.traceStackID:791 runtime.traceEventLocked:667 runtime.traceEvent:601 runtime.traceGoPreempt:1285 runtime.gopreempt_m:3396 runtime.mcall:325" not present in execution trace
    trace_test.go:693: execution trace CPU samples:
    trace_test.go:695: 8: "runtime/trace_test.cpuHog0:732 runtime/trace_test.cpuHog1:723 runtime/trace_test.cpuHogger:710 runtime/trace_test.TestTraceCPUProfile.func1.1:613 runtime/pprof.Do:40 runtime/trace_test.TestTraceCPUProfile.func1:612 runtime/trace_test.TestTraceCPUProfile:618 testing.tRunner:1449"
    trace_test.go:695: 10: "runtime/trace_test.cpuHog0:732 runtime/trace_test.cpuHog1:723 runtime/trace_test.cpuHogger:710 runtime/trace_test.TestTraceCPUProfile.func1:617 runtime/trace_test.TestTraceCPUProfile:618 testing.tRunner:1449"
--- FAIL: TestTraceCPUProfile (0.32s)
    trace_test.go:689: CPU profile included 1 samples at stack "runtime.gentraceback:154 runtime.gcallers:920 runtime.traceStackID:791 runtime.traceEventLocked:667 runtime.traceEvent:601 runtime.traceGoPreempt:1285 runtime.gopreempt_m:3396 runtime.mcall:448" not present in execution trace
    trace_test.go:693: execution trace CPU samples:
    trace_test.go:695: 9: "runtime/trace_test.cpuHog0:732 runtime/trace_test.cpuHog1:723 runtime/trace_test.cpuHogger:710 runtime/trace_test.TestTraceCPUProfile.func1.1:613 runtime/pprof.Do:40 runtime/trace_test.TestTraceCPUProfile.func1:612 runtime/trace_test.TestTraceCPUProfile:618 testing.tRunner:1449"
    trace_test.go:695: 10: "runtime/trace_test.cpuHog0:732 runtime/trace_test.cpuHog1:723 runtime/trace_test.cpuHogger:710 runtime/trace_test.TestTraceCPUProfile.func1:617 runtime/trace_test.TestTraceCPUProfile:618 testing.tRunner:1449"

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.SoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions