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

x/mobile: The sdk generated by gomobile cause crash in Android Q (API 29) #33715

Closed
AlisaLLL opened this issue Aug 19, 2019 · 2 comments
Closed

x/mobile: The sdk generated by gomobile cause crash in Android Q (API 29) #33715

AlisaLLL opened this issue Aug 19, 2019 · 2 comments

Comments

@AlisaLLL
Copy link

@AlisaLLL AlisaLLL commented Aug 19, 2019

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

$ go version 1.12.7

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
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/wucanrui/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="linux"
GOPATH="/Users/wucanrui/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.7/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.7/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="0"
GOMOD="/Users/wucanrui/Desktop/develop/SAG/go.mod"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/0_/j6m36l9s0psg9xm5ggt2_b680000gp/T/go-build077800331=/tmp/go-build -gno-record-gcc-switches"

What did you do?

When I call the function in sdk generated by gomobile in andorid api 29, the application crashed and I get the log as below. While it runs well in andorid api 28 and lower.

A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 15296 (e.myapplication), pid 15272 (e.myapplication)
A/go/Seq: failed to initialize jnienvs thread local storage
Application terminated.
@gopherbot gopherbot added this to the Unreleased milestone Aug 19, 2019
@gopherbot gopherbot added the mobile label Aug 19, 2019
@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Aug 19, 2019

@hyangah

This comment has been minimized.

Copy link
Contributor

@hyangah hyangah commented Aug 19, 2019

See #29674

Please try the go1.13 release candidate or beta version. The fix is non-trivial so it's not backported to go1.12.

@hyangah hyangah closed this Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.