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: gomobile integrated app crashes on GBox clone mode #66989

Open
Sylariam opened this issue Apr 23, 2024 · 0 comments
Open

x/mobile: gomobile integrated app crashes on GBox clone mode #66989

Sylariam opened this issue Apr 23, 2024 · 0 comments
Labels
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.
Milestone

Comments

@Sylariam
Copy link

Go version

go version go1.19 darwin/arm64

Output of go env in your module/workspace:

GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/sylardeng/go/pkg/mod"
GOOS="darwin"
GOPATH="/Users/sylardeng/go"
GOPROXY="https://goproxy.cn,direct"
GOROOT="/Users/sylardeng/.gvm/gos/go1.19"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/sylardeng/.gvm/gos/go1.19/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.19"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/j_/cgg61p1n3jx8lk96nbgg5x6m0000gn/T/go-build2217954749=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I've been using gomobile bind to build Android sdk for my app. It worked well most times. However when I tried to run app with gbox clone mode, it crashed every time on init.

GBox(https://gboxlab.com/) on Android is a multifunctional toolbox that allows users to clone apps, enabling them to run multiple instances of the same app simultaneously. Additionally, GBox provides enhanced privacy and security features.

What did you see happen?

As I mentioned above, my app crashes every time on init, only on clone mode. More specifically, it occurs when the app loads the libgojni.so file I compiled.
Go involved Logcat logs from Android studio:

2024-04-23 16:00:02.037 18524-0 Go com.nimispace.app E unexpected fault address 0x40001a6d60
2024-04-23 16:00:02.037 18524-0 Go com.nimispace.app E fatal error: fault
2024-04-23 16:00:02.039 18524-0 Go com.nimispace.app E [signal SIGSEGV: segmentation violation code=0x2 addr=0x40001a6d60 pc=0x40001a6d60]
2024-04-23 16:00:02.039 18524-0 Go com.nimispace.app E
2024-04-23 16:00:02.039 18524-0 Go com.nimispace.app E goroutine 35 [running]:
2024-04-23 16:00:02.039 18524-0 Go com.nimispace.app E runtime.throw({0x7461de3662?, 0x0?})
2024-04-23 16:00:02.039 18524-0 Go com.nimispace.app E runtime/panic.go:1047 +0x40 fp=0x40001a6ce0 sp=0x40001a6cb0 pc=0x7461653170
2024-04-23 16:00:02.039 18524-0 Go com.nimispace.app E runtime: g 35: unexpected return pc for runtime.sigpanic called from 0x40001a6d60
2024-04-23 16:00:02.039 18524-0 Go com.nimispace.app E stack: frame={sp:0x40001a6ce0, fp:0x40001a6d10} stack=[0x40001a6800,0x40001a7000)
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6be0: 0x0000007461654a9c <runtime.gwrite+0x00000000000000cc> 0x00000040001a6c28
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6bf0: 0x0000007461654a00 <runtime.gwrite+0x0000000000000030> 0x000000000000000c
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c00: 0x000000746263956f 0x000000000000000f
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c10: 0x00000000000003f1 0x0000000000000000
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c20: 0x000000746263956f 0x00000040001a6c68
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c30: 0x00000074616551ec <runtime.printstring+0x000000000000004c> 0x0000007461f004b9
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c40: 0x0000000000000001 0x0000000000000001
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c50: 0x0000007461669548 <runtime.sigpanic+0x0000000000000188> 0x00000040001a6c68
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c60: 0x0000007461653408 <runtime.fatalthrow+0x0000000000000058> 0x00000040001a6ca8
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c70: 0x0000007461653170 <runtime.throw+0x0000000000000040> 0x00000040001a6c88
2024-04-23 16:00:02.040 18524-0 Go com.nimispace.app E 0x00000040001a6c80: 0x00000040001844e0 0x0000007461653420 <runtime.fatalthrow.func1+0x0000000000000000>
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6c90: 0x00000040001844e0 0x0000007461653170 <runtime.throw+0x0000000000000040>
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6ca0: 0x00000040001a6cb0 0x00000040001a6cd8
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6cb0: 0x0000007461669560 <runtime.sigpanic+0x00000000000001a0> 0x00000040001a6cc0
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6cc0: 0x0000007461653180 <runtime.throw.func1+0x0000000000000000> 0x0000007461de3662
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6cd0: 0x0000000000000005 0x00000075292e4174
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6ce0: <0x00000040001a6d60 0x0000007461de3662
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6cf0: 0x0000000000000000 0x00000040001a6d60
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d00: 0x00000040001844e0 0x00000040001a0120
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d10: >0x00000040001a6d60 0x00000040001a6d78
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d20: 0x000000746170d1cc <bufio.(*Reader).fill+0x00000000000000fc> 0x00000040001a0120
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d30: 0x000000400011e000 0x0000000000000400
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d40: 0x0000000000000400 0x000000752a0c15e0
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d50: 0x0000000000400000 0x00000040001a6d98
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d60: 0x0000000000000000 0x0000000000000000
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d70: 0x0000007530f00000 0x0000004000000000
2024-04-23 16:00:02.041 18524-0 Go com.nimispace.app E 0x00000040001a6d80: 0x0000000000008000 0xfffffffc3bba6a27
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E 0x00000040001a6d90: 0x000000400011e000 0x00000040001a6db8
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E 0x00000040001a6da0: 0x000000746162a6dc <runtime.mallocgc+0x000000000000087c> 0x0000007462638d40
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E 0x00000040001a6db0: 0x0000000000000064 0x00000040001a6e08
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E 0x00000040001a6dc0: 0x000000746170e0a4 <bufio.(*Reader).ReadLine+0x0000000000000024> 0x00000040001a6f50
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E 0x00000040001a6dd0: 0x0000000000000000 0x0000000000000400
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E 0x00000040001a6de0: 0x000000000000000a 0xffffffffffffffff
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E 0x00000040001a6df0: 0x0a0000752a0c15e0 0x0000000000000000
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E 0x00000040001a6e00: 0x0000000000000000 0x00000040001a6e58
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E runtime.sigpanic()
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E runtime/signal_unix.go:842 +0x1a0 fp=0x40001a6d10 sp=0x40001a6ce0 pc=0x7461669560
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E created by golang.org/x/mobile/internal/mobileinit.init.0
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E golang.org/x/mobile@v0.0.0-20240404231514-09dbf07665ed/internal/mobileinit/mobileinit_android.go:82 +0x184
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E goroutine 2 [force gc (idle)]:
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2024-04-23 16:00:02.042 18524-0 Go com.nimispace.app E runtime/proc.go:363 +0xe4 fp=0x4000058fa0 sp=0x4000058f80 pc=0x7461655b44
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime.goparkunlock(...)
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime/proc.go:369
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime.forcegchelper()
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime/proc.go:302 +0xac fp=0x4000058fd0 sp=0x4000058fa0 pc=0x74616559dc
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime.goexit()
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime/asm_arm64.s:1165 +0x4 fp=0x4000058fd0 sp=0x4000058fd0 pc=0x7461683b74
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E created by runtime.init.6
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime/proc.go:290 +0x24
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E goroutine 18 [GC sweep wait]:
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime/proc.go:363 +0xe4 fp=0x4000054770 sp=0x4000054750 pc=0x7461655b44
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime.goparkunlock(...)
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime/proc.go:369
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime.bgsweep(0x0?)
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime/mgcsweep.go:278 +0xa4 fp=0x40000547b0 sp=0x4000054770 pc=0x7461642104
2024-04-23 16:00:02.043 18524-0 Go com.nimispace.app E runtime.gcenable.func1()
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime/mgc.go:178 +0x28 fp=0x40000547d0 sp=0x40000547b0 pc=0x74616366f8
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime.goexit()
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime/asm_arm64.s:1165 +0x4 fp=0x40000547d0 sp=0x40000547d0 pc=0x7461683b74
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E created by runtime.gcenable
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime/mgc.go:178 +0x74
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E goroutine 19 [GC scavenge wait]:
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime.gopark(0x400010e000?, 0x7461f024b8?, 0x1?, 0x0?, 0x0?)
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime/proc.go:363 +0xe4 fp=0x4000054f50 sp=0x4000054f30 pc=0x7461655b44
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime.goparkunlock(...)
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime/proc.go:369
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime.(*scavengerState).park(0x74626066e0)
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime/mgcscavenge.go:389 +0x5c fp=0x4000054f80 sp=0x4000054f50 pc=0x74616400ec
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime.bgscavenge(0x0?)
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime/mgcscavenge.go:617 +0x44 fp=0x4000054fb0 sp=0x4000054f80 pc=0x7461640664
2024-04-23 16:00:02.044 18524-0 Go com.nimispace.app E runtime.gcenable.func2()
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime/mgc.go:179 +0x28 fp=0x4000054fd0 sp=0x4000054fb0 pc=0x7461636698
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime.goexit()
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime/asm_arm64.s:1165 +0x4 fp=0x4000054fd0 sp=0x4000054fd0 pc=0x7461683b74
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E created by runtime.gcenable
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime/mgc.go:179 +0xb8
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E goroutine 34 [finalizer wait]:
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime/proc.go:363 +0xe4 fp=0x40001a6580 sp=0x40001a6560 pc=0x7461655b44
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime.goparkunlock(...)
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime/proc.go:369
2024-04-23 16:00:02.045 18524-0 Go com.nimispace.app E runtime.runfinq()
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E runtime/mfinal.go:180 +0x120 fp=0x40001a67d0 sp=0x40001a6580 pc=0x7461635920
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E runtime.goexit()
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E runtime/asm_arm64.s:1165 +0x4 fp=0x40001a67d0 sp=0x40001a67d0 pc=0x7461683b74
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E created by runtime.createfing
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E runtime/mfinal.go:157 +0x84
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E goroutine 36 [IO wait]:
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E runtime.gopark(0x40001a7420?, 0x1000?, 0x0?, 0x4?, 0x400?)
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E runtime/proc.go:363 +0xe4 fp=0x40001a7400 sp=0x40001a73e0 pc=0x7461655b44
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E runtime.netpollblock(0x0?, 0xffffffff?, 0xff?)
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E runtime/netpoll.go:526 +0x158 fp=0x40001a7440 sp=0x40001a7400 pc=0x746164e5c8
2024-04-23 16:00:02.046 18524-0 Go com.nimispace.app E internal/poll.runtime_pollWait(0x752a00cd18, 0x72)
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E runtime/netpoll.go:305 +0xa0 fp=0x40001a7470 sp=0x40001a7440 pc=0x746167e170
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E internal/poll.(*pollDesc).wait(0x40001a01e0?, 0x4000200000?, 0x1)
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x40001a74a0 sp=0x40001a7470 pc=0x74616e3668
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E internal/poll.(*pollDesc).waitRead(...)
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E internal/poll/fd_poll_runtime.go:89
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E internal/poll.(*FD).Read(0x40001a01e0, {0x4000200000, 0x400, 0x400})
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E internal/poll/fd_unix.go:167 +0x1e0 fp=0x40001a7520 sp=0x40001a74a0 pc=0x74616e4990
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E os.(*File).read(...)
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E os/file_posix.go:31
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E os.(*File).Read(0x400019e028, {0x4000200000?, 0x40001a75a8?, 0x7461621364?})
2024-04-23 16:00:02.047 18524-0 Go com.nimispace.app E os/file.go:118 +0x5c fp=0x40001a7580 sp=0x40001a7520 pc=0x74616ed7fc
2024-04-23 16:00:02.048 18524-0 Go com.nimispace.app E bufio.(*Reader).fill(0x40001a7750)
2024-04-23 16:00:02.048 18524-0 Go com.nimispace.app E bufio/bufio.go:106 +0xfc fp=0x40001a75c0 sp=0x40001a7580 pc=0x746170d1cc
2024-04-23 16:00:02.048 18524-0 Go com.nimispace.app E bufio.(*Reader).ReadSlice(0x40001a7750, 0x58?)
2024-04-23 16:00:02.048 18524-0 Go com.nimispace.app E bufio/bufio.go:372 +0x30 fp=0x40001a7610 sp=0x40001a75c0 pc=0x746170de70
2024-04-23 16:00:02.048 18524-0 Go com.nimispace.app E bufio.(*Reader).ReadLine(0x40001a7750)
2024-04-23 16:00:02.048 18524-0 Go com.nimispace.app E bufio/bufio.go:401 +0x24 fp=0x40001a7660 sp=0x40001a7610 pc=0x746170e0a4
2024-04-23 16:00:02.048 18524-0 Go com.nimispace.app E golang.org/x/mobile/internal/mobileinit.lineLog(0x400019e028, 0x0?)
2024-04-23 16:00:02.048 18524-0 Go com.nimispace.app E golang.org/x/mobile@v0.0.0-20240404231514-09dbf07665ed/internal/mobileinit/mobileinit_android.go:55 +0xd0 fp=0x40001a77b0 sp=0x40001a7660 pc=0x74617137d0
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E golang.org/x/mobile/internal/mobileinit.init.0.func2()
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E golang.org/x/mobile@v0.0.0-20240404231514-09dbf07665ed/internal/mobileinit/mobileinit_android.go:92 +0x2c fp=0x40001a77d0 sp=0x40001a77b0 pc=0x7461713c1c
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E runtime.goexit()
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E runtime/asm_arm64.s:1165 +0x4 fp=0x40001a77d0 sp=0x40001a77d0 pc=0x7461683b74
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E created by golang.org/x/mobile/internal/mobileinit.init.0
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E golang.org/x/mobile@v0.0.0-20240404231514-09dbf07665ed/internal/mobileinit/mobileinit_android.go:92 +0x2a4
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E goroutine 37 [select, locked to thread]:
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E runtime.gopark(0x4000208fa0?, 0x2?, 0x78?, 0x7e?, 0x4000208f9c?)
2024-04-23 16:00:02.049 18524-0 Go com.nimispace.app E runtime/proc.go:363 +0xe4 fp=0x4000208e20 sp=0x4000208e00 pc=0x7461655b44
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E runtime.selectgo(0x4000208fa0, 0x4000208f98, 0x0?, 0x0, 0x0?, 0x1)
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E runtime/select.go:328 +0x688 fp=0x4000208f40 sp=0x4000208e20 pc=0x7461665928
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E runtime.ensureSigM.func1()
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E runtime/signal_unix.go:991 +0x1b8 fp=0x4000208fd0 sp=0x4000208f40 pc=0x7461669988
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E runtime.goexit()
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E runtime/asm_arm64.s:1165 +0x4 fp=0x4000208fd0 sp=0x4000208fd0 pc=0x7461683b74
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E created by runtime.ensureSigM
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E runtime/signal_unix.go:974 +0xf4
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E
2024-04-23 16:00:02.050 18524-0 Go com.nimispace.app E goroutine 20 [syscall]:
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E runtime.notetsleepg(0x101000000000000?, 0x0?)
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E runtime/lock_futex.go:236 +0x34 fp=0x4000058790 sp=0x4000058750 pc=0x7461629184
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E os/signal.signal_recv()
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E runtime/sigqueue.go:152 +0x30 fp=0x40000587b0 sp=0x4000058790 pc=0x74616801b0
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E os/signal.loop()
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E os/signal/signal_unix.go:23 +0x1c fp=0x40000587d0 sp=0x40000587b0 pc=0x7461c7f17c
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E runtime.goexit()
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E runtime/asm_arm64.s:1165 +0x4 fp=0x40000587d0 sp=0x40000587d0 pc=0x7461683b74
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E created by os/signal.Notify.func1.1
2024-04-23 16:00:02.051 18524-0 Go com.nimispace.app E os/signal/signal.go:151 +0x2c

Will provide more if needed.

What did you expect to see?

At first I presumed this would be some kind of biz error. But after I went though the logs, no biz-matching runtime panic occured.
I did a bit of digging in the stacktrace. Panic happens in go lineLog(r, C.ANDROID_LOG_ERROR). Maybe this is some kind of permission bug?

created by golang.org/x/mobile/internal/mobileinit.init.0
golang.org/x/mobile@v0.0.0-20240404231514-09dbf07665ed/internal/mobileinit/mobileinit_android.go:82 +0x184

Not an Android developer actually. Would really appreciate any professional help.

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Apr 23, 2024
@gopherbot gopherbot added this to the Unreleased milestone Apr 23, 2024
@joedian joedian added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

No branches or pull requests

3 participants