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

runtime, x/mobile: runtime.raise_trampoline.abi0 crash #61173

Closed
NightBlaze opened this issue Jul 5, 2023 · 9 comments
Closed

runtime, x/mobile: runtime.raise_trampoline.abi0 crash #61173

NightBlaze opened this issue Jul 5, 2023 · 9 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@NightBlaze
Copy link

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

$ go version
go version go1.20.5 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/user/Library/Caches/go-build"
GOENV="/Users/user/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/user/go/pkg/mod"
GONOPROXY="*"
GONOSUMDB="*"
GOOS="darwin"
GOPATH="/Users/user/go"
GOPRIVATE="*"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.20.5"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/user/Work/gomobile-experiments/go.mod"
GOWORK=""
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 -fdebug-prefix-map=/var/folders/7v/1f7g4jw1337ggmqlxxgq74g00000gn/T/go-build1425140998=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I have an app in production which uses library created with gomobile bind. Sometimes iOS crashes with runtime.raise_trampoline.abi0. There is no dependence on the user's device type and iOS version.

What did you expect to see?

No crash.

What did you see instead?

Crash.

stacktrace

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 5, 2023
@cherrymui
Copy link
Member

This function is only called when the program is already about to crash or terminate, usually when it receives a signal that it doesn't want to handle. Does this program or other program send it signals that it doesn't want to handle?

@cherrymui cherrymui added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jul 5, 2023
@NightBlaze
Copy link
Author

@cherrymui I don't send any signals and don't wait for them. The crash is pretty rare and nobody from our team had it but according to reports it's about 80% of all crashes in the application. Users said that the crash can occur at any time: on the app start or even when user is doing nothing.

Full crash report is here. FIRCLSMatchException* is from Firebase library and it's the only suspect.
stacktrace1
stacktrace2
stacktrace3
stacktrace4

@cherrymui
Copy link
Member

FIRCLSMatchException* is from Firebase library and it's the only suspect.

That is possible.

Unfortunately the stack traces for Go threads are stopped at runtime.asmcgocall. Could you try Go 1.21rc2 and see if that makes any difference? Thanks.

@NightBlaze
Copy link
Author

Could you try Go 1.21rc2 and see if that makes any difference?

I will try 1.21 after it will be released and notify on results.

@jiangzhiguo1992
Copy link

@NightBlaze I also encountered the same problem, any follow-up?

@NightBlaze
Copy link
Author

@jiangzhiguo1992 Nope. Will make next release with go 1.21 and check if the issue still present.

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Sep 18, 2023
@brave723
Copy link

go version go1.21.1 darwin/arm64
I get this crash all the time,how to slove it?
help me

@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
@tex0l
Copy link

tex0l commented Dec 19, 2023

I have the same issue with a library built with the latest gomobile (v0.0.0-20231127183840-76ac6878050a) and go version (1.21.5).

I am not able to find a root cause that triggers the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

7 participants