Skip to content

runtime, x/mobile: SIGABRT ABORT, runtime.raise_trampoline.abi0 + 462 (sys_darwin_arm64.s:462) for Mac Catalyst targets running on arm64 #52299

@CatStudioApp

Description

@CatStudioApp

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

$ go version
go version go1.18 darwin/arm64

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=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/[user]/Library/Caches/go-build"
GOENV="/Users/[user]/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/[user]/golang/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/[user]/golang"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.18/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.18/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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/cd/j79005393f7_zbyjw3zpkrlc0000gn/T/go-build3399080997=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I delivered my app continuously using Gomobile to MacCatalyst target. Starting from Go 1.18, my app started to have such a crash:

Crashed: Thread #1
SIGABRT ABORT 0x0000000186370db8
Crashed: Thread
0  libsystem_kernel.dylib         0x9db8 __pthread_kill + 8
1  libsystem_pthread.dylib        0x6ee0 pthread_kill + 288
2  libsystem_c.dylib              0x42674 raise + 32
3  [my_app_target_with_gomobile]                      0x189104 runtime.raise_trampoline.abi0 + 462 (sys_darwin_arm64.s:462)
4  [my_app_target_with_gomobile]                      0x187ee8 runtime.asmcgocall.abi0 + 1094 (asm_arm64.s:1094)
5  ???                            0xed65f03c0 (Missing)

What did you expect to see?

No crash

What did you see instead?

Crashes

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.OS-DarwinOS-iOSGOOS=iosarch-arm64compiler/runtimeIssues related to the Go compiler and/or runtime.mobileAndroid, iOS, and x/mobile

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions