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
Labels
FrozenDueToAge help wanted mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Android
Milestone

Comments

@AlisaLLL
Copy link

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 Android, iOS, and x/mobile label Aug 19, 2019
@bcmills
Copy link
Contributor

bcmills commented Aug 19, 2019

CC @hyangah @steeve

@bcmills bcmills added help wanted OS-Android NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Aug 19, 2019
@hyangah
Copy link
Contributor

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 as completed Aug 19, 2019
@golang golang locked and limited conversation to collaborators Aug 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge help wanted mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Android
Projects
None yet
Development

No branches or pull requests

4 participants