Skip to content

cmd/trace: goroutine analysis grouped by PC and reported N=?, but PC is zero and Name is empty #54284

@hitzhangjie

Description

@hitzhangjie

What version of Go are you using (go version)?

$ go version
go1.18.3

Does this issue reproduce with the latest release?

I only tried go1.18.3

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE="on"
GOARCH="arm64"
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOOS="darwin"
GOVERSION="go1.18.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
...

What did you do?

go tool trace trace.out, then view the goroutine analysis, at last there's a N=4, what does it mean?

image

I check the code src/cmd/trace, it is caused by the GDesc.PC / GDesc.Name is zero value.
When does this occasion happend?

What did you expect to see?

I want to know what does it mean, if detailed description is shown, it may be better understood.

What did you see instead?

I see N=4 at last, it is not clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions