-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed as not planned
Closed as not planned
Copy link
Labels
FrozenDueToAgecompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Description
Go version
go version go1.23.0 darwin/amd64
Output of go env
in your module/workspace:
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/Users/a/Library/Caches/go-build'
GOENV='/Users/a/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/a/go/pkg/mod'
GONOPROXY='xxx.com'
GONOSUMDB='xxxx.com'
GOOS='darwin'
GOPATH='/Users/a/go'
GOPRIVATE='xxxx.com'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_amd64'
GOVCS=''
GOVERSION='go1.23.0'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/a/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/xxx/go.mod'
GOWORK='/xxx/go.work'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/mw/884f6hx53r56gd7zxsm1h8bm0000gp/T/go-build2465272456=/tmp/go-build -gno-record-gcc-switches -fno-common'
What did you do?
go build -o ./bin/tAlloc3 ./make/tAlloc3
GODEBUG=allocfreetrace=1 ./bin/tAlloc3 &> ./tmp/2.log
my code
package main
import "fmt"
func main(){
fmt.Println("abc")
}
What did you see happen?
nothing, only "abc"
What did you expect to see?
a lot of stack of alloc place of my code like in ./tmp/2.log
tracealloc(0xc000024000, 0x40, *runtime.p)
goroutine 0 [idle]:
runtime.mallocgc(0x40, 0x1098460, 0x1)
/usr/local/go/src/runtime/malloc.go:1121 +0x7aa fp=0x7ff7bfeff6d8 sp=0x7ff7bfeff660 pc=0x100b9ea
runtime.makeslice(0x59960e85937f?, 0x105cbc1?, 0x1006a3f?)
/usr/local/go/src/runtime/slice.go:103 +0x52 fp=0x7ff7bfeff700 sp=0x7ff7bfeff6d8 pc=0x1045c72
runtime.procresize(0x8)
/usr/local/go/src/runtime/proc.go:4822 +0x15c fp=0x7ff7bfeff7b8 sp=0x7ff7bfeff700 pc=0x103d53c
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:722 +0x1d3 fp=0x7ff7bfeff810 sp=0x7ff7bfeff7b8 pc=0x1034713
runtime.rt0_go()
/usr/local/go/src/runtime/asm_amd64.s:345 +0x11e fp=0x7ff7bfeff818 sp=0x7ff7bfeff810 pc=0x105ab3e
Metadata
Metadata
Assignees
Labels
FrozenDueToAgecompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.