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

iOS fatal error: bulkBarrierPreWrite: unaligned arguments #63255

Closed
brave723 opened this issue Sep 27, 2023 · 2 comments
Closed

iOS fatal error: bulkBarrierPreWrite: unaligned arguments #63255

brave723 opened this issue Sep 27, 2023 · 2 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@brave723
Copy link

brave723 commented Sep 27, 2023

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

go version go1.21.1 darwin/arm64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/brave/Library/Caches/go-build'
GOENV='/Users/brave/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/brave/golang/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/brave/golang'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.21.1'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/_t/_wtnl54j38x3wk38rjnvxnp80000gn/T/go-build2417035017=/tmp/go-build -gno-record-gcc-switches -fno-common'

goroutine 17 [running, locked to thread]:
runtime.throw({0x104425002?, 0x1042c1a70?})
	/usr/local/go/src/runtime/panic.go:1077 +0x40 fp=0x13070fd00 sp=0x13070fcd0 pc=0x103cfaa90
runtime.bulkBarrierPreWrite(0x0?, 0x0?, 0x2832b7680?)
	/usr/local/go/src/runtime/mbitmap.go:543 +0x2ec fp=0x13070fd70 sp=0x13070fd00 pc=0x103cd7bdc
runtime.wbMove(0x28042b5c0?, 0x4f?, 0x2832b7680?)
	/usr/local/go/src/runtime/mbarrier.go:189 +0x20 fp=0x13070fda0 sp=0x13070fd70 pc=0x103cd7070
_cgoexp_a69482def850_proxyhunterwallet__GeneratePrivateKeyFromMnemonic(0x16d27defc)
	_cgo_gotypes.go:2764 +0x74 fp=0x13070fe10 sp=0x13070fda0 pc=0x1042cbf94
runtime.cgocallbackg1(0x1042cbf20, 0x1306d9fe0?, 0x0)
	/usr/local/go/src/runtime/cgocall.go:329 +0x23c fp=0x13070fef0 sp=0x13070fe10 pc=0x103cc81bc
runtime.cgocallbackg(0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/cgocall.go:245 +0xec fp=0x13070ff80 sp=0x13070fef0 pc=0x103cc7eec
runtime.cgocallbackg(0x1042cbf20, 0x16d27defc, 0x0)
	<autogenerated>:1 +0x1c fp=0x13070ffb0 sp=0x13070ff80 pc=0x103d30b0c
runtime.cgocallback(0x0, 0x0, 0x0)
	/usr/local/go/src/runtime/asm_arm64.s:1105 +0xb0 fp=0x13070ffe0 sp=0x13070ffb0 pc=0x103d2e870
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x13070ffe0 sp=0x13070ffe0 pc=0x103d2e964

goroutine 19 [select, 1 minutes]:
runtime.gopark(0x130437f78?, 0x2?, 0x68?, 0x7e?, 0x130437f74?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x130437e20 sp=0x130437e00 pc=0x103cfd828
runtime.selectgo(0x130437f78, 0x130437f70, 0x0?, 0x0, 0x0?, 0x1)
	/usr/local/go/src/runtime/select.go:327 +0x60c fp=0x130437f30 sp=0x130437e20 pc=0x103d0e1cc
database/sql.(*DB).connectionOpener(0x13045a000, {0x1048e8d80, 0x130452000})
	/usr/local/go/src/database/sql/sql.go:1218 +0x80 fp=0x130437fa0 sp=0x130437f30 pc=0x103f16950
database/sql.OpenDB.func1()
	/usr/local/go/src/database/sql/sql.go:791 +0x30 fp=0x130437fd0 sp=0x130437fa0 pc=0x103f14ce0
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130437fd0 sp=0x130437fd0 pc=0x103d2e964
created by database/sql.OpenDB in goroutine 34
	/usr/local/go/src/database/sql/sql.go:791 +0x158

goroutine 2 [force gc (idle), 1 minutes]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x13004df90 sp=0x13004df70 pc=0x103cfd828
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:404
runtime.forcegchelper()
	/usr/local/go/src/runtime/proc.go:322 +0xb8 fp=0x13004dfd0 sp=0x13004df90 pc=0x103cfd688
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x13004dfd0 sp=0x13004dfd0 pc=0x103d2e964
created by runtime.init.6 in goroutine 1
	/usr/local/go/src/runtime/proc.go:310 +0x24

goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x13004ef60 sp=0x13004ef40 pc=0x103cfd828
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:404
runtime.bgsweep(0x0?)
	/usr/local/go/src/runtime/mgcsweep.go:321 +0x108 fp=0x13004efb0 sp=0x13004ef60 pc=0x103ce8618
runtime.gcenable.func1()
	/usr/local/go/src/runtime/mgc.go:200 +0x28 fp=0x13004efd0 sp=0x13004efb0 pc=0x103cdd088
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x13004efd0 sp=0x13004efd0 pc=0x103d2e964
created by runtime.gcenable in goroutine 1
	/usr/local/go/src/runtime/mgc.go:200 +0x6c

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x2d05f3e2?, 0xfde677e2b?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x13004ff50 sp=0x13004ff30 pc=0x103cfd828
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:404
runtime.(*scavengerState).park(0x1050a0d80)
	/usr/local/go/src/runtime/mgcscavenge.go:425 +0x5c fp=0x13004ff80 sp=0x13004ff50 pc=0x103ce5e1c
runtime.bgscavenge(0x0?)
	/usr/local/go/src/runtime/mgcscavenge.go:658 +0xac fp=0x13004ffb0 sp=0x13004ff80 pc=0x103ce63dc
runtime.gcenable.func2()
	/usr/local/go/src/runtime/mgc.go:201 +0x28 fp=0x13004ffd0 sp=0x13004ffb0 pc=0x103cdd028
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x13004ffd0 sp=0x13004ffd0 pc=0x103d2e964
created by runtime.gcenable in goroutine 1
	/usr/local/go/src/runtime/mgc.go:201 +0xac

goroutine 5 [finalizer wait, 1 minutes]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x130048d80 sp=0x130048d60 pc=0x103cfd828
runtime.runfinq()
	/usr/local/go/src/runtime/mfinal.go:193 +0x10c fp=0x130048fd0 sp=0x130048d80 pc=0x103cdc16c
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130048fd0 sp=0x130048fd0 pc=0x103d2e964
created by runtime.createfing in goroutine 1
	/usr/local/go/src/runtime/mfinal.go:163 +0x80

goroutine 6 [select, 1 minutes, locked to thread]:
runtime.gopark(0x13004cfa0?, 0x2?, 0xa8?, 0xce?, 0x13004cf9c?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x13004ce40 sp=0x13004ce20 pc=0x103cfd828
runtime.selectgo(0x13004cfa0, 0x13004cf98, 0x0?, 0x0, 0x0?, 0x1)
	/usr/local/go/src/runtime/select.go:327 +0x60c fp=0x13004cf50 sp=0x13004ce40 pc=0x103d0e1cc
runtime.ensureSigM.func1()
	/usr/local/go/src/runtime/signal_unix.go:1014 +0x168 fp=0x13004cfd0 sp=0x13004cf50 pc=0x103d24e48
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x13004cfd0 sp=0x13004cfd0 pc=0x103d2e964
created by runtime.ensureSigM in goroutine 1
	/usr/local/go/src/runtime/signal_unix.go:997 +0xd8

goroutine 18 [syscall, 1 minutes]:
runtime.sigNoteSleep(0x0)
	/usr/local/go/src/runtime/os_darwin.go:124 +0x20 fp=0x130436f90 sp=0x130436f50 pc=0x103cf7df0
os/signal.signal_recv()
	/usr/local/go/src/runtime/sigqueue.go:149 +0x2c fp=0x130436fb0 sp=0x130436f90 pc=0x103d2a62c
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:23 +0x1c fp=0x130436fd0 sp=0x130436fb0 pc=0x1042b821c
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130436fd0 sp=0x130436fd0 pc=0x103d2e964
created by os/signal.Notify.func1.1 in goroutine 1
	/usr/local/go/src/os/signal/signal.go:151 +0x28

goroutine 37 [GC worker (idle), 1 minutes]:
runtime.gopark(0x1050df240?, 0x3?, 0x74?, 0xaf?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x130432f30 sp=0x130432f10 pc=0x103cfd828
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x130432fd0 sp=0x130432f30 pc=0x103cdece8
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130432fd0 sp=0x130432fd0 pc=0x103d2e964
created by runtime.gcBgMarkStartWorkers in goroutine 17
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 38 [GC worker (idle)]:
runtime.gopark(0x35f28e6f0c0?, 0x2?, 0x88?, 0xc?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x130438f30 sp=0x130438f10 pc=0x103cfd828
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x130438fd0 sp=0x130438f30 pc=0x103cdece8
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130438fd0 sp=0x130438fd0 pc=0x103
created by runtime.gcBgMarkStartWorkers in goroutine 17
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 7 [GC worker (idle)]:
runtime.gopark(0x35f875bb92f?, 0x1304a2020?, 0x1a?, 0x14?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x130049f30 sp=0x130049f10 pc=0x103cfd828
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x130049fd0 sp=0x130049f30 pc=0x103cdece8
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130049fd0 sp=0x130049fd0 pc=0x103d2e964
created by runtime.gcBgMarkStartWorkers in goroutine 17
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 8 [running]:
	goroutine running on other thread; stack unavailable
created by runtime.gcBgMarkStartWorkers in goroutine 17
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 9 [GC worker (idle), 1 minutes]:
runtime.gopark(0x347b79f52a2?, 0x2?, 0xe7?, 0x11?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x13004bf30 sp=0x13004bf10 pc=0x103cfd828
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x13004bfd0 sp=0x13004bf30 pc=0x103cdece8
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x13004bfd0 sp=0x13004bfd0 pc=0x103d2e964
created by runtime.gcBgMarkStartWorkers in goroutine 17
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 39 [GC worker (idle)]:
runtime.gopark(0x35f875bb9ac?, 0x1?, 0xda?, 0xa2?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x130433f30 sp=0x130433f10 pc=0x103cfd828
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x130433fd0 sp=0x130433f30 pc=0x103cdece8
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130433fd0 sp=0x130433fd0 pc=0x103d2e964
created by runtime.gcBgMarkStartWorkers in goroutine 17
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 10 [select, 1 minutes]:
runtime.gopark(0x130669f78?, 0x2?, 0x68?, 0x9e?, 0x130669f74?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x130669e20 sp=0x130669e00 pc=0x103cfd828
runtime.selectgo(0x130669f78, 0x130669f70, 0x3f085f82de4dff56?, 0x0, 0xbfcac5978b51d9c6?, 0x1)
	/usr/local/go/src/runtime/select.go:327 +0x60c fp=0x130669f30 sp=0x130669e20 pc=0x103d0e1cc
database/sql.(*DB).connectionOpener(0x13045a270, {0x1048e8d80, 0x1304520a0})
	/usr/local/go/src/database/sql/sql.go:1218 +0x80 fp=0x130669fa0 sp=0x130669f30 pc=0x103f16950
database/sql.OpenDB.func1()
	/usr/local/go/src/database/sql/sql.go:791 +0x30 fp=0x130669fd0 sp=0x130669fa0 pc=0x103f14ce0
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130669fd0 sp=0x130669fd0 pc=0x103d2e964
created by database/sql.OpenDB in goroutine 34
	/usr/local/go/src/database/sql/sql.go:791 +0x158
@brave723 brave723 changed the title fatal error: bulkBarrierPreWrite: unaligned arguments iOS fatal error: bulkBarrierPreWrite: unaligned arguments Sep 27, 2023
@bcmills bcmills added the compiler/runtime Issues related to the Go compiler and/or runtime. label Sep 27, 2023
@cherrymui
Copy link
Member

The write barrier call is from cgo generated code _cgoexp_a69482def850_proxyhunterwallet__GeneratePrivateKeyFromMnemonic, which is generated from the cgo exported function proxyhunterwallet__GeneratePrivateKeyFromMnemonic (or some similar name). What is the signature of that function? Thanks.

@cherrymui cherrymui added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 27, 2023
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2023
@golang golang locked and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants