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

cmd/pprof: "emulated forward to an arm pc that isn't in translated code" on mac M1 #44042

Closed
xiazemin opened this issue Feb 1, 2021 · 5 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@xiazemin
Copy link

xiazemin commented Feb 1, 2021

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

$ go version
go version go1.15.6 darwin/amd64

Does this issue reproduce with the latest release?

yes

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

go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/xiazemin/Library/Caches/go-build"
GOENV="/Users/xiazemin/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/xiazemin/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/xiazemin/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hb/1q06vpss7_d1fw3ymxb1ztbr0000gn/T/go-build783208607=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

go tool pprof

What did you expect to see?

profile

What did you see instead?

(pprof) top
assertion failed [abi_info.kind == AbiKind::TranslatedCode]: emulated forward to an arm pc that isn't in translated code. arm_pc=0x101ddf4d8 abi_kind=6 emulation_interval=[0x101e3cb64,0x101e3cb7c) instruction_interval=[0x101e3cb4c, 0x101e3cb7c) x86_rip=0x7fff20392ee4
(ThreadContextRegisterState.cpp:677 move_to_instruction_boundary)
I have the problem on mac M1 when I use pprof .

@changkun
Copy link
Member

changkun commented Feb 1, 2021

Does the problem still exist in the M1 optimized 1.16 release candidate?

Download: https://golang.org/dl/go1.16rc1.darwin-arm64.tar.gz

@ALTree ALTree changed the title I have the problem on mac M1 when I use pprof . cmd/pprof: "emulated forward to an arm pc that isn't in translated code" on mac M1 Feb 1, 2021
@ALTree ALTree added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Feb 1, 2021
@ALTree
Copy link
Member

ALTree commented Feb 1, 2021

As @changkun pointed out go1.15 is not supposed to work on the arm64 macs, so please try with the 1.16 release candidate.

@ALTree
Copy link
Member

ALTree commented Feb 1, 2021

(and it seems that rosetta 2 has issues running the Go runtime, see #42700). In this case let's keep the discussion in that thread.

@cherrymui
Copy link
Member

Yes, this is a dup of #42700 (which is actually not a Go bug). Closing. Thanks.

@xiazemin
Copy link
Author

xiazemin commented Feb 9, 2021

Does the problem still exist in the M1 optimized 1.16 release candidate?

Download: https://golang.org/dl/go1.16rc1.darwin-arm64.tar.gz

gcc_arm64.S:34:16: error: brackets expression not supported on this target

@golang golang locked and limited conversation to collaborators Feb 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants