Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to find function context #17

Open
Zxilly opened this issue Aug 8, 2024 · 2 comments
Open

unable to find function context #17

Zxilly opened this issue Aug 8, 2024 · 2 comments

Comments

@Zxilly
Copy link
Contributor

Zxilly commented Aug 8, 2024

Describe the bug

2024-08-08T14:29:19+08:00 error layer=debugger local variables err: unable to find function context
2024/08/08 14:29:20 successfully output to `grf.out`

Also terminate the running process.

image

To Reproduce

git clone https://github.com/Zxilly/go-size-analyzer.git
cd go-size-analyzer
go build -tags debug ./cmd/gsa

./gsa --verbose ./gsa

Wait for something like debug: ${pid} appears.

grf attach ${pid}

Expected behavior

No error reported.

Screenshots

image

Goref version:

bfd02d0

Environment:

set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\zxilly\AppData\Local\go-build
set GOENV=C:\Users\zxilly\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\zxilly\go\pkg\mod
set GONOPROXY=1
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\zxilly\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.22.4
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\zxilly\AppData\Local\Temp\go-build1152204704=/tmp/go-build -gno-record-gcc-switches
@Zxilly
Copy link
Contributor Author

Zxilly commented Aug 8, 2024

@jayantxie This issue didn't got resolved, please reopen.

@GuangmingLuo GuangmingLuo reopened this Aug 9, 2024
@jayantxie
Copy link
Member

Got it, I thought you've fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants