Skip to content

x/mobile: fatal error: bulkBarrierPreWrite: unaligned arguments #75889

@miguelmcmc

Description

@miguelmcmc

Go version

go1.25.1

Output of go env in your module/workspace:

AR='ar'
CC='clang'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='clang++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/ironchip/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/ironchip/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/76/5htjf1r15q3cbd69bc6plx3h0000gn/T/go-build3381140789=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/dev/null'
GOMODCACHE='/Users/ironchip/go/pkg/mod'
GONOPROXY='gitlab.com/ironchip_dev/*,git.kydom.net'
GONOSUMDB='gitlab.com/ironchip_dev/*,git.kydom.net'
GOOS='darwin'
GOPATH='/Users/ironchip/go'
GOPRIVATE='gitlab.com/ironchip_dev/*,git.kydom.net'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/ironchip/sdk/go1.25.1'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/ironchip/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/ironchip/sdk/go1.25.1/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.25.1'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

gomobile bind -target=android

gradle: 8.5.1
ndk: 28.2.13676358
kotlin: 1.9.24
Flutter: 3.35.4
Dart: 3.9.2

What did you see happen?

Randomly (10%-25% cases) appear fatal error and app close

fatal error: bulkBarrierPreWrite: unaligned arguments

What did you expect to see?

No crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.mobileAndroid, iOS, and x/mobile

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions