golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.91k stars 17.65k forks source link

Heap corruption crash on darwin/arm64 #49865

Closed ikolombet closed 2 years ago

ikolombet commented 2 years ago

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

$ go version
go version go1.17.3 darwin/arm64

Does this issue reproduce with the latest release?

Yes

$ ~/go/bin/gotip version
go version devel go1.18-f598e29 Mon Nov 29 19:45:58 2021 +0000 darwin/arm64

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

go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/kolombet/Library/Caches/go-build"
GOENV="/Users/kolombet/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/kolombet/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/kolombet/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.17.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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/sp/fyc644ws6wgb3_zh332vy1bh0000gn/T/go-build3730336531=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOROOT/bin/go version: go version go1.17.3 darwin/arm64
GOROOT/bin/go tool compile -V: compile version go1.17.3
uname -v: Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000
ProductName:    macOS
ProductVersion: 12.0.1
BuildVersion:   21A559
lldb --version: lldb-1300.0.32.4
Swift version 5.5.1-dev

What did you do?

Was running "go test" for a project I'm working on. After switching to an Apple Silicon Macbook Pro I started experiencing random crashes. Which don't reproduce on an Intel-based Mac I was using previously.

What did you expect to see?

Should not crash.

What did you see instead?

Sometimes the tests crashed, although most of the time they pass. Hard to reproduce. Crashes are different too. Sometimes the "go test" program hanged/deadlocked. I'm not sure if all of this related to the same bug, or maybe these all are different bugs, but I think all of this somehow related to macOS Monterey or arm64 architecture, or a combination of both.

So far I've got:

Crash 1

SIGABRT with malloc: Heap corruption detected, free list is damaged at 0x60000125f660

Go stacktrace
% GOTRACEBACK=crash POSTGRES_DB=test_rna_ng ~/go/bin/gotip test -parallel 1 -race -shuffle=1638215812025314000 -covermode=atomic -coverprofile=coverage.out -v -v -v ./internal/rnad/engine/storage/memory/search/matching
SIGABRT: abort
PC=0x196d199b8 m=8 sigcode=0

goroutine 0 [idle]:
runtime: unknown pc 0x196d199b8
stack: frame={sp:0x16f2e2a30, fp:0x0} stack=[0x16f263328,0x16f2e2f28)
0x000000016f2e2930:  0x0000000000000000  0x0000000000000000
0x000000016f2e2940:  0x3631000000000000  0x0030303033653266
0x000000016f2e2950:  0x00000000000007b4  0x0000000000000000
0x000000016f2e2960:  0x000000000000000a  0x0000000000000000
0x000000016f2e2970:  0x0000000000000070  0x0000000000000000
0x000000016f2e2980:  0x0000000000000000  0x0000000196b89ecd
0x000000016f2e2990:  0x0000000109c80000  0x0000000000000000
0x000000016f2e29a0:  0x000000016f2e2a10  0x1940000196d64dac
0x000000016f2e29b0:  0x000000016f2e2b40  0x000000016f2e2a48
0x000000016f2e29c0:  0x00000000000007b4  0x000000016f2e3000
0x000000016f2e29d0:  0x000000016ef13831  0x0000000000000000
0x000000016f2e29e0:  0x0000000000000000  0x000000016f2e3000
0x000000016f2e29f0:  0x000000016ef13831  0x0000000109c80000
0x000000016f2e2a00:  0x0000000000000043  0x0000000196b89ed8
0x000000016f2e2a10:  0x000000016f2e2a30  0x0b7e800196d62748
0x000000016f2e2a20:  0x0000000000000043  0x000000016f2e2a40
0x000000016f2e2a30: <0x000000016f2e2b40  0x00000001094fc028
0x000000016f2e2a40:  0x000000016f2e2a78  0x000000016f2e3000
0x000000016f2e2a50:  0x000000016f2e2a90  0xd13a000196c8a314
0x000000016f2e2a60:  0x0000000000000000  0xffffffff094fc000
0x000000016f2e2a70:  0x000000016f2e2b40  0x00000001fffff9df
0x000000016f2e2a80:  0x0000000000000000  0x0000000000000043
0x000000016f2e2a90:  0x000000016f2e2b10  0xe33a000196b6fa1c
0x000000016f2e2aa0:  0x000000016ef13831  0x000000000000d63d
0x000000016f2e2ab0:  0x000000016f2e3000  0x000000016f2e2ad8
0x000000016f2e2ac0:  0x00000000000007b4  0x00000000001ff800
0x000000016f2e2ad0:  0x0000000000000020  0x0000000000000001
0x000000016f2e2ae0:  0x0000600001250000  0x00000000811ac7b4
0x000000016f2e2af0:  0x0000000101ee7058  0x0000600001250000
0x000000016f2e2b00:  0x0000600001055448  0x000000016f2e30e0
0x000000016f2e2b10:  0x000000016f2e2b30  0x0320000196b84c8c
0x000000016f2e2b20:  0x0000000100f3cb2c   0x000000016f2e2b40
runtime: unknown pc 0x196d199b8
stack: frame={sp:0x16f2e2a30, fp:0x0} stack=[0x16f263328,0x16f2e2f28)
0x000000016f2e2930:  0x0000000000000000  0x0000000000000000
0x000000016f2e2940:  0x3631000000000000  0x0030303033653266
0x000000016f2e2950:  0x00000000000007b4  0x0000000000000000
0x000000016f2e2960:  0x000000000000000a  0x0000000000000000
0x000000016f2e2970:  0x0000000000000070  0x0000000000000000
0x000000016f2e2980:  0x0000000000000000  0x0000000196b89ecd
0x000000016f2e2990:  0x0000000109c80000  0x0000000000000000
0x000000016f2e29a0:  0x000000016f2e2a10  0x1940000196d64dac
0x000000016f2e29b0:  0x000000016f2e2b40  0x000000016f2e2a48
0x000000016f2e29c0:  0x00000000000007b4  0x000000016f2e3000
0x000000016f2e29d0:  0x000000016ef13831  0x0000000000000000
0x000000016f2e29e0:  0x0000000000000000  0x000000016f2e3000
0x000000016f2e29f0:  0x000000016ef13831  0x0000000109c80000
0x000000016f2e2a00:  0x0000000000000043  0x0000000196b89ed8
0x000000016f2e2a10:  0x000000016f2e2a30  0x0b7e800196d62748
0x000000016f2e2a20:  0x0000000000000043  0x000000016f2e2a40
0x000000016f2e2a30: <0x000000016f2e2b40  0x00000001094fc028
0x000000016f2e2a40:  0x000000016f2e2a78  0x000000016f2e3000
0x000000016f2e2a50:  0x000000016f2e2a90  0xd13a000196c8a314
0x000000016f2e2a60:  0x0000000000000000  0xffffffff094fc000
0x000000016f2e2a70:  0x000000016f2e2b40  0x00000001fffff9df
0x000000016f2e2a80:  0x0000000000000000  0x0000000000000043
0x000000016f2e2a90:  0x000000016f2e2b10  0xe33a000196b6fa1c
0x000000016f2e2aa0:  0x000000016ef13831  0x000000000000d63d
0x000000016f2e2ab0:  0x000000016f2e3000  0x000000016f2e2ad8
0x000000016f2e2ac0:  0x00000000000007b4  0x00000000001ff800
0x000000016f2e2ad0:  0x0000000000000020  0x0000000000000001
0x000000016f2e2ae0:  0x0000600001250000  0x00000000811ac7b4
0x000000016f2e2af0:  0x0000000101ee7058  0x0000600001250000
0x000000016f2e2b00:  0x0000600001055448  0x000000016f2e30e0
0x000000016f2e2b10:  0x000000016f2e2b30  0x0320000196b84c8c
0x000000016f2e2b20:  0x0000000100f3cb2c   0x000000016f2e2b40

goroutine 1 [runnable, locked to thread]:
time.(*dataIO).big4(0xc0002a8e28)
    /Users/kolombet/sdk/gotip/src/time/zoneinfo_read.go:65 +0x208 fp=0xc0002a8b00 sp=0xc0002a8b00 pc=0x100fac848
time.(*dataIO).big8(0xc0002a8e28)
    /Users/kolombet/sdk/gotip/src/time/zoneinfo_read.go:76 +0x40 fp=0xc0002a8b30 sp=0xc0002a8b00 pc=0x100fac890
time.LoadLocationFromTZData({0x1011182f2, 0x12}, {0xc00014a900, 0x8b1, 0x900})
    /Users/kolombet/sdk/gotip/src/time/zoneinfo_read.go:291 +0x110c fp=0xc0002a8e70 sp=0xc0002a8b30 pc=0x100fada1c
time.loadLocation({0x1011182f2, 0x12}, {0x10130bc00, 0x4, 0x100f38a40?})
    /Users/kolombet/sdk/gotip/src/time/zoneinfo_read.go:533 +0x27c fp=0xc0002a8f30 sp=0xc0002a8e70 pc=0x100fafa4c
time.LoadLocation({0x1011182f2, 0x12})
    /Users/kolombet/sdk/gotip/src/time/zoneinfo.go:668 +0x258 fp=0xc0002a8fb0 sp=0xc0002a8f30 pc=0x100fac488
redacted/extranet/rna-ng/internal/rnad/engine/tz.init.0()
    /Users/kolombet/go/src/redacted/rna-ng/internal/rnad/engine/tz/tz.go:610 +0x128 fp=0xc0002ada70 sp=0xc0002a8fb0 pc=0x101109fb8
runtime.doInit(0x1012d2140)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6396 +0x138 fp=0xc0002adbb0 sp=0xc0002ada70 pc=0x100f6b068
runtime.doInit(0x1012d5820)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6373 +0x70 fp=0xc0002adcf0 sp=0xc0002adbb0 pc=0x100f6afa0
runtime.doInit(0x1012d4340)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6373 +0x70 fp=0xc0002ade30 sp=0xc0002adcf0 pc=0x100f6afa0
runtime.doInit(0x1012d4b20)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6373 +0x70 fp=0xc0002adf70 sp=0xc0002ade30 pc=0x100f6afa0
runtime.main()
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:238 +0x21c fp=0xc0002adfd0 sp=0xc0002adf70 pc=0x100f5d0bc
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0002adfd0 sp=0xc0002adfd0 pc=0x100f8d704

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000048fa0 sp=0xc000048f80 pc=0x100f5d4e8
runtime.goparkunlock(...)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:372
runtime.forcegchelper()
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:306 +0xb0 fp=0xc000048fd0 sp=0xc000048fa0 pc=0x100f5d380
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000048fd0 sp=0xc000048fd0 pc=0x100f8d704
created by runtime.init.6
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:294 +0x28

goroutine 18 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000044770 sp=0xc000044750 pc=0x100f5d4e8
runtime.goparkunlock(...)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:372
runtime.bgsweep(0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/mgcsweep.go:297 +0x110 fp=0xc0000447b0 sp=0xc000044770 pc=0x100f48e90
runtime.gcenable.func1()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:177 +0x2c fp=0xc0000447d0 sp=0xc0000447b0 pc=0x100f3e90c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000447d0 sp=0xc0000447d0 pc=0x100f8d704
created by runtime.gcenable
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:177 +0x78

goroutine 19 [runnable]:
runtime.(*pageAlloc).scavenge(0x10132ab88, 0x10000)
    /Users/kolombet/sdk/gotip/src/runtime/mgcscavenge.go:408 +0x11c fp=0xc000197f10 sp=0xc000197f10 pc=0x100f470cc
runtime.bgscavenge(0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/mgcscavenge.go:329 +0x344 fp=0xc000197fb0 sp=0xc000197f10 pc=0x100f46eb4
runtime.gcenable.func2()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:178 +0x2c fp=0xc000197fd0 sp=0xc000197fb0 pc=0x100f3e8ac
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000197fd0 sp=0xc000197fd0 pc=0x100f8d704
created by runtime.gcenable
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:178 +0xbc

goroutine 34 [finalizer wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000124590 sp=0xc000124570 pc=0x100f5d4e8
runtime.goparkunlock(...)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:372
runtime.runfinq()
    /Users/kolombet/sdk/gotip/src/runtime/mfinal.go:177 +0xcc fp=0xc0001247d0 sp=0xc000124590 pc=0x100f3da8c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0001247d0 sp=0xc0001247d0 pc=0x100f8d704
created by runtime.createfing
    /Users/kolombet/sdk/gotip/src/runtime/mfinal.go:157 +0x8c

goroutine 35 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000124f40 sp=0xc000124f20 pc=0x100f5d4e8
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc000124fd0 sp=0xc000124f40 pc=0x100f40d6c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000124fd0 sp=0xc000124fd0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 3 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000049740 sp=0xc000049720 pc=0x100f5d4e8
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0000497d0 sp=0xc000049740 pc=0x100f40d6c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000497d0 sp=0xc0000497d0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 20 [GC worker (idle)]:
runtime.gopark(0x0?, 0x2?, 0x40?, 0x45?, 0xc00008e000?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000048740 sp=0xc000048720 pc=0x100f5d4e8
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0000487d0 sp=0xc000048740 pc=0x100f40d6c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000487d0 sp=0xc0000487d0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 36 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000125740 sp=0xc000125720 pc=0x100f5d4e8
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0001257d0 sp=0xc000125740 pc=0x100f40d6c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0001257d0 sp=0xc0001257d0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 21 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000045740 sp=0xc000045720 pc=0x100f5d4e8
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0000457d0 sp=0xc000045740 pc=0x100f40d6c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000457d0 sp=0xc0000457d0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 4 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000049f40 sp=0xc000049f20 pc=0x100f5d4e8
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc000049fd0 sp=0xc000049f40 pc=0x100f40d6c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000049fd0 sp=0xc000049fd0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 22 [runnable]:
runtime.gcMarkDone()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:766 +0x2f0 fp=0xc000190f40 sp=0xc000190f40 pc=0x100f3fbf0
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1322 +0x350 fp=0xc000190fd0 sp=0xc000190f40 pc=0x100f40fd0
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000190fd0 sp=0xc000190fd0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 5 [GC worker (idle)]:
runtime.systemstack_switch()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:194 +0x8 fp=0xc00004a6e0 sp=0xc00004a6d0 pc=0x100f8af98
runtime.gcMarkDone()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:789 +0x114 fp=0xc00004a740 sp=0xc00004a6e0 pc=0x100f3fa14
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1322 +0x350 fp=0xc00004a7d0 sp=0xc00004a740 pc=0x100f40fd0
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc00004a7d0 sp=0xc00004a7d0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 37 [GC worker (idle)]:
runtime.gopark(0x1e2e583ea770?, 0x3?, 0x15?, 0x3b?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000194f40 sp=0xc000194f20 pc=0x100f5d4e8
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc000194fd0 sp=0xc000194f40 pc=0x100f40d6c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000194fd0 sp=0xc000194fd0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 6 [GC worker (idle)]:
runtime.gopark(0x1e2e583e999a?, 0x1?, 0x2a?, 0xf3?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc00004af40 sp=0xc00004af20 pc=0x100f5d4e8
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc00004afd0 sp=0xc00004af40 pc=0x100f40d6c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc00004afd0 sp=0xc00004afd0 pc=0x100f8d704
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

r0      0x0
r1      0x0
r2      0x0
r3      0x0
r4      0x0
r5      0x0
r6      0x1
r7      0x1094fc028
r8      0xa0dd86630a67b01e
r9      0xa0dd86626549801e
r10     0xcccccccccccccccd
r11     0xa
r12     0x0
r13     0x35
r14     0x1200000
r15     0x0
r16     0x148
r17     0x1f1133530
r18     0x0
r19     0x6
r20     0x16f2e3000
r21     0x1303
r22     0x16f2e2b40
r23     0x1094fc000
r24     0x0
r25     0x0
r26     0x16ef13831
r27     0x16f2e3000
r28     0x7b4
r29     0x16f2e2a50
lr      0x196d4d15c
sp      0x16f2e2a30
pc      0x196d199b8
fault   0x196d199b8
Apple crash report
{
  "uptime": 33000,
  "procLaunch": "2021-11-29 23:59:08.1485 +0300",
  "procRole": "Unspecified",
  "version": 2,
  "userID": 501,
  "deployVersion": 210,
  "modelCode": "MacBookPro18,2",
  "procStartAbsTime": 796422479256,
  "coalitionID": 1788,
  "osVersion": {
    "train": "macOS 12.0.1",
    "build": "21A559",
    "releaseType": "User"
  },
  "captureTime": "2021-11-29 23:59:13.2866 +0300",
  "incident": "5466C0A0-AADF-48F0-9E66-ACE137AA2D81",
  "bug_type": "309",
  "pid": 54845,
  "procExitAbsTime": 796545786006,
  "translated": false,
  "cpuType": "ARM-64",
  "procName": "matching.test",
  "procPath": "\/private\/var\/folders\/*\/matching.test",
  "parentProc": "go",
  "parentPid": 54818,
  "coalitionName": "com.googlecode.iterm2",
  "crashReporterKey": "4CEE213C-1F9C-44C6-8DE0-31B7B2E9BE02",
  "responsiblePid": 2046,
  "responsibleProc": "iTerm2",
  "wakeTime": 11175,
  "sleepWakeUUID": "5135B805-E21F-49E7-842E-1E4AED9E54ED",
  "sip": "enabled",
  "isCorpse": 1,
  "exception": {
    "codes": "0x0000000000000000, 0x0000000000000000",
    "rawCodes": [
      0,
      0
    ],
    "type": "EXC_CRASH",
    "signal": "SIGABRT"
  },
  "asi": {
    "matching.test": [],
    "libsystem_malloc.dylib": [
      "matching.test(54845,0x16f2e3000) malloc: Heap corruption detected, free list is damaged at 0x60000125f660",
      "*** Incorrect guard value: 0"
    ],
    "libsystem_c.dylib": [
      "abort() called"
    ]
  },
  "extMods": {
    "caller": {
      "thread_create": 0,
      "thread_set_state": 0,
      "task_for_pid": 0
    },
    "system": {
      "thread_create": 0,
      "thread_set_state": 0,
      "task_for_pid": 2
    },
    "targeted": {
      "thread_create": 0,
      "thread_set_state": 0,
      "task_for_pid": 0
    },
    "warnings": 0
  },
  "faultingThread": 7,
  "threads": [
    {
      "id": 473524,
      "queue": "com.apple.main-thread",
      "frames": [
        {
          "imageOffset": 20672,
          "symbol": "__psynch_cvwait",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 31412,
          "symbol": "_pthread_cond_wait",
          "symbolLocation": 1228,
          "imageIndex": 1
        },
        {
          "imageOffset": 4311281336,
          "symbol": "runtime.pthread_cond_wait_trampoline",
          "symbolLocation": 24,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    },
    {
      "id": 473525,
      "frames": [
        {
          "imageOffset": 20672,
          "symbol": "__psynch_cvwait",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 31456,
          "symbol": "_pthread_cond_wait",
          "symbolLocation": 1272,
          "imageIndex": 1
        },
        {
          "imageOffset": 4311281388,
          "symbol": "runtime.pthread_cond_timedwait_relative_np_trampoline",
          "symbolLocation": 28,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    },
    {
      "id": 473526,
      "frames": [
        {
          "imageOffset": 20672,
          "symbol": "__psynch_cvwait",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 31412,
          "symbol": "_pthread_cond_wait",
          "symbolLocation": 1228,
          "imageIndex": 1
        },
        {
          "imageOffset": 4311281336,
          "symbol": "runtime.pthread_cond_wait_trampoline",
          "symbolLocation": 24,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    },
    {
      "id": 473527,
      "frames": [
        {
          "imageOffset": 20672,
          "symbol": "__psynch_cvwait",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 31412,
          "symbol": "_pthread_cond_wait",
          "symbolLocation": 1228,
          "imageIndex": 1
        },
        {
          "imageOffset": 4311281336,
          "symbol": "runtime.pthread_cond_wait_trampoline",
          "symbolLocation": 24,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    },
    {
      "id": 473528,
      "frames": [
        {
          "imageOffset": 20672,
          "symbol": "__psynch_cvwait",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 31412,
          "symbol": "_pthread_cond_wait",
          "symbolLocation": 1228,
          "imageIndex": 1
        },
        {
          "imageOffset": 4311281336,
          "symbol": "runtime.pthread_cond_wait_trampoline",
          "symbolLocation": 24,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    },
    {
      "id": 473529,
      "frames": [
        {
          "imageOffset": 20672,
          "symbol": "__psynch_cvwait",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 31412,
          "symbol": "_pthread_cond_wait",
          "symbolLocation": 1228,
          "imageIndex": 1
        },
        {
          "imageOffset": 4311281336,
          "symbol": "runtime.pthread_cond_wait_trampoline",
          "symbolLocation": 24,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    },
    {
      "id": 473530,
      "frames": [
        {
          "imageOffset": 20672,
          "symbol": "__psynch_cvwait",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 31456,
          "symbol": "_pthread_cond_wait",
          "symbolLocation": 1272,
          "imageIndex": 1
        },
        {
          "imageOffset": 4311281388,
          "symbol": "runtime.pthread_cond_timedwait_relative_np_trampoline",
          "symbolLocation": 28,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    },
    {
      "triggered": true,
      "id": 473531,
      "threadState": {
        "x": [
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 824635150736
          },
          {
            "value": 824634798144
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 4315159968,
            "symbolLocation": 0,
            "symbol": "runtime.handlingSig"
          },
          {
            "value": 0
          },
          {
            "value": 11591568775855976478
          },
          {
            "value": 11591568773085757470
          },
          {
            "value": 17
          },
          {
            "value": 4311283744,
            "symbolLocation": 0,
            "symbol": "runtime.sigtrampgo.abi0"
          },
          {
            "value": 0
          },
          {
            "value": 824635150720
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 328
          },
          {
            "value": 8339535152
          },
          {
            "value": 0
          },
          {
            "value": 6
          },
          {
            "value": 6160265216
          },
          {
            "value": 4867
          },
          {
            "value": 4312959399,
            "symbolLocation": 0,
            "symbol": "go.func.*"
          },
          {
            "value": 4451188736
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 2112
          },
          {
            "value": 824634798144
          }
        ],
        "flavor": "ARM_THREAD_STATE64",
        "lr": {
          "value": 6825496924
        },
        "cpsr": {
          "value": 1073745920
        },
        "fp": {
          "value": 824635150656
        },
        "sp": {
          "value": 824635150624
        },
        "esr": {
          "value": 1442840704,
          "description": " Address size fault"
        },
        "pc": {
          "value": 6825286072,
          "matchesCrashFrame": 1
        },
        "far": {
          "value": 4314942896
        }
      },
      "frames": [
        {
          "imageOffset": 39352,
          "symbol": "__pthread_kill",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 29020,
          "symbol": "pthread_kill",
          "symbolLocation": 288,
          "imageIndex": 1
        },
        {
          "imageOffset": 269476,
          "symbol": "raise",
          "symbolLocation": 32,
          "imageIndex": 3
        },
        {
          "imageOffset": 4311281140,
          "symbol": "runtime.raise_trampoline",
          "symbolLocation": 20,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    },
    {
      "id": 473532,
      "frames": [
        {
          "imageOffset": 20672,
          "symbol": "__psynch_cvwait",
          "symbolLocation": 8,
          "imageIndex": 0
        },
        {
          "imageOffset": 31412,
          "symbol": "_pthread_cond_wait",
          "symbolLocation": 1228,
          "imageIndex": 1
        },
        {
          "imageOffset": 4311281336,
          "symbol": "runtime.pthread_cond_wait_trampoline",
          "symbolLocation": 24,
          "imageIndex": 2
        },
        {
          "imageOffset": 4311274872,
          "symbol": "runtime.asmcgocall.abi0",
          "symbolLocation": 200,
          "imageIndex": 2
        }
      ]
    }
  ],
  "usedImages": [
    {
      "source": "P",
      "arch": "arm64e",
      "base": 6825246720,
      "size": 221184,
      "uuid": "c8524c02-b14f-30bd-a228-c44b4a448e68",
      "path": "\/usr\/lib\/system\/libsystem_kernel.dylib",
      "name": "libsystem_kernel.dylib"
    },
    {
      "source": "P",
      "arch": "arm64e",
      "base": 6825467904,
      "size": 53248,
      "uuid": "4786e19a-9312-38e6-80ef-9c1394548118",
      "path": "\/usr\/lib\/system\/libsystem_pthread.dylib",
      "name": "libsystem_pthread.dylib"
    },
    {
      "size": 0,
      "source": "A",
      "base": 0,
      "uuid": "00000000-0000-0000-0000-000000000000"
    },
    {
      "source": "P",
      "arch": "arm64e",
      "base": 6824202240,
      "size": 528384,
      "uuid": "002a39ae-6431-3b2e-85e7-c45fc2f95ad0",
      "path": "\/usr\/lib\/system\/libsystem_c.dylib",
      "name": "libsystem_c.dylib"
    }
  ],
  "sharedCache": {
    "base": 6822297600,
    "size": 3072180224,
    "uuid": "a6162d66-93e3-3251-93cc-b11f7c8c830e"
  },
  "vmSummary": "ReadOnly portion of Libraries: Total=650.9M resident=0K(0%) swapped_out_or_unallocated=650.9M(100%)\nWritable regions: Total=934.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=934.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nKernel Alloc Once                   32K        1 \nMALLOC                           135.1M       25 \nMALLOC guard page                   96K        5 \nMALLOC_NANO (reserved)           381.6M       20         reserved VM address space (unallocated)\nSTACK GUARD                       56.1M        8 \nSanitizer                        224.0M       54 \nSanitizer (reserved)             128.0M        1         reserved VM address space (unallocated)\nStack                             12.2M        9 \nStack Guard                         16K        1 \nVM_ALLOCATE                        1.7G       33 \n__AUTH                             221K       46 \n__AUTH_CONST                      2870K      122 \n__DATA                            11.2M      119 \n__DATA_CONST                      4951K      124 \n__DATA_DIRTY                       232K       50 \n__LINKEDIT                       571.1M        3 \n__OBJC_CONST                       259K       29 \n__OBJC_RO                         81.8M        1 \n__OBJC_RW                         3088K        1 \n__TEXT                            79.8M      130 \n__UNICODE                          588K        1 \ndyld private memory               1024K        1 \nmapped file                          4K        1 \nshared memory                       16K        1 \n===========                     =======  ======= \nTOTAL                              3.3G      786 \nTOTAL, minus reserved VM space     2.8G      786 \n",
  "legacyInfo": {
    "threadTriggered": {
    }
  },
  "trialInfo": {
    "rollouts": [
      {
        "rolloutId": "601d9415f79519000ccd4b69",
        "factorPackIds": {
          "SIRI_TEXT_TO_SPEECH": "6194416dea7ed64a7812a429"
        },
        "deploymentId": 240000322
      },
      {
        "rolloutId": "602ad4dac86151000cf27e46",
        "factorPackIds": {
          "SIRI_DICTATION_ASSETS": "6181ebb28763315b9604755e"
        },
        "deploymentId": 240000271
      },
      {
        "rolloutId": "5fc94383418129005b4e9ae0",
        "factorPackIds": {
        },
        "deploymentId": 240000162
      },
      {
        "rolloutId": "5ffde50ce2aacd000d47a95f",
        "factorPackIds": {
        },
        "deploymentId": 240000076
      },
      {
        "rolloutId": "60da5e84ab0ca017dace9abf",
        "factorPackIds": {
        },
        "deploymentId": 240000008
      },
      {
        "rolloutId": "607844aa04477260f58a8077",
        "factorPackIds": {
          "SIRI_MORPHUN_ASSETS": "6103050cbfe6dc472e1c982a"
        },
        "deploymentId": 240000066
      }
    ],
    "experiments": [
    ]
  }
}

Crash 2

SIGABRT with "type":"EXC_BAD_ACCESS","signal":"SIGABRT","subtype":"KERN_INVALID_ADDRESS'

Go stacktrace
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x2 addr=0x2a51ad2dc pc=0x196bd6938]

runtime stack:
runtime.throw({0x10576404c?, 0x16ae5a4d0?})
    /Users/kolombet/sdk/gotip/src/runtime/panic.go:992 +0x50 fp=0x16ae5a4a0 sp=0x16ae5a470 pc=0x1050136d0
runtime: unexpected return pc for runtime.sigpanic called from 0x196bd6938
stack: frame={sp:0x16ae5a4a0, fp:0x16ae5a4d0} stack=[0x16addc408,0x16ae5b480)
0x000000016ae5a3a0:  0x0100000105013bf4  0x000000000000000b
0x000000016ae5a3b0:  0x000000000000001f  0x0000000196bd6938
0x000000016ae5a3c0:  0x00000002a51ad2dc  0x0000000000000002
0x000000016ae5a3d0:  0x00000001050136d0   0x000000016ae5a470
0x000000016ae5a3e0:  0x000000010575b5ba  0x000000016ae5a428
0x000000016ae5a3f0:  0x00000001050138b0   0x0000000105e02440
0x000000016ae5a400:  0x00000001057468b8  0x0000000000000001
0x000000016ae5a410:  0x000000016ae5a470  0x00000001050136d0 
0x000000016ae5a420:  0x0000000105e02440  0x000000016ae5a468
0x000000016ae5a430:  0x00000001050136d0   0x000000016ae5a448
0x000000016ae5a440:  0x00000001050136b8   0x00000001050138d0 
0x000000016ae5a450:  0x0000000105e02440  0x00000001050136d0 
0x000000016ae5a460:  0x000000016ae5a470  0x000000016ae5a498
0x000000016ae5a470:  0x000000010502bf28   0x000000016ae5a480
0x000000016ae5a480:  0x00000001050136f0   0x000000010576404c
0x000000016ae5a490:  0x000000000000002a  0x000000016ae5a590
0x000000016ae5a4a0: <0x0000000196bd6938  0x000000010576404c
0x000000016ae5a4b0:  0x000000016ae5a4d0  0xe32e800196bef558
0x000000016ae5a4c0:  0x00000001eff63000  0x00000001eff623e0
0x000000016ae5a4d0: >0x0000000196bd6900  0x1510800196bd68f4
0x000000016ae5a4e0:  0x0000000000000000  0x0000000106c64660
0x000000016ae5a4f0:  0x00000001efa58850  0x0000000000000000
0x000000016ae5a500:  0x0000000000000000  0x00000001eff62408
0x000000016ae5a510:  0x00000001effa0000  0x0000000000000020
0x000000016ae5a520:  0x0000000106af8000  0x0000000000000020
0x000000016ae5a530:  0x000000016ae5a550  0x5c46000196b63524
0x000000016ae5a540:  0x0000000000000000  0x0000000106c64660
0x000000016ae5a550:  0x00000001eff62410  0x0000000000000000
0x000000016ae5a560:  0x00000001eff623e0  0x0000000000000000
0x000000016ae5a570:  0x000060000102c100  0x0000600001020060
0x000000016ae5a580:  0x00000001efa294a0  0x00000001eff62408
0x000000016ae5a590:  0x000000016ae5a650  0x226e000196bd680c
0x000000016ae5a5a0:  0x0000000000000000  0x0000000106c64660
0x000000016ae5a5b0:  0x00000001efa582b0  0x0000000000000000
0x000000016ae5a5c0:  0x0000000000000000  0x00000001efa58848
runtime.sigpanic()
    /Users/kolombet/sdk/gotip/src/runtime/signal_unix.go:781 +0x1e8 fp=0x16ae5a4d0 sp=0x16ae5a4a0 pc=0x10502bf28

goroutine 1 [syscall, locked to thread]:
crypto/x509/internal/macos.syscall(0x1053b2be0, 0x0, 0x1057559a7, 0x17, 0x8000100, 0x0, 0x0)
    /Users/kolombet/sdk/gotip/src/runtime/sys_darwin.go:95 +0x14 fp=0xc000173700 sp=0xc0001736e0 pc=0x105044aa4
crypto/x509/internal/macos.syscall(0xc000173768?, 0x1053ab0e0?, 0xc000173778?, 0x1050484e8?, 0xc000173788?, 0x105049b94?, 0xc0001737a8?)
    :1 +0x2c fp=0xc000173750 sp=0xc000173700 pc=0x10504a27c
crypto/x509/internal/macos.StringToCFString({0x1057559a7, 0x17})
    /Users/kolombet/sdk/gotip/src/crypto/x509/internal/macos/corefoundation.go:75 +0x70 fp=0xc0001737b0 sp=0xc000173750 pc=0x1053b1c00
crypto/x509/internal/macos.init()
    /Users/kolombet/sdk/gotip/src/crypto/x509/internal/macos/security.go:72 +0x64 fp=0xc0001737f0 sp=0xc0001737b0 pc=0x1053b2a34
runtime.doInit(0x105da2f00)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6396 +0x138 fp=0xc000173930 sp=0xc0001737f0 pc=0x105023c48
runtime.doInit(0x105daa3c0)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6373 +0x70 fp=0xc000173a70 sp=0xc000173930 pc=0x105023b80
runtime.doInit(0x105daab40)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6373 +0x70 fp=0xc000173bb0 sp=0xc000173a70 pc=0x105023b80
runtime.doInit(0x105da8100)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6373 +0x70 fp=0xc000173cf0 sp=0xc000173bb0 pc=0x105023b80
runtime.doInit(0x105d9f8e0)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6373 +0x70 fp=0xc000173e30 sp=0xc000173cf0 pc=0x105023b80
runtime.doInit(0x105da3d40)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6373 +0x70 fp=0xc000173f70 sp=0xc000173e30 pc=0x105023b80
runtime.main()
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:238 +0x21c fp=0xc000173fd0 sp=0xc000173f70 pc=0x105015bdc
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000173fd0 sp=0xc000173fd0 pc=0x105047c04

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000066fa0 sp=0xc000066f80 pc=0x105016008
runtime.goparkunlock(...)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:372
runtime.forcegchelper()
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:306 +0xb0 fp=0xc000066fd0 sp=0xc000066fa0 pc=0x105015ea0
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000066fd0 sp=0xc000066fd0 pc=0x105047c04
created by runtime.init.6
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:294 +0x28

goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000067770 sp=0xc000067750 pc=0x105016008
runtime.goparkunlock(...)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:372
runtime.bgsweep(0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/mgcsweep.go:297 +0x110 fp=0xc0000677b0 sp=0xc000067770 pc=0x1050018c0
runtime.gcenable.func1()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:177 +0x2c fp=0xc0000677d0 sp=0xc0000677b0 pc=0x104ff733c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000677d0 sp=0xc0000677d0 pc=0x105047c04
created by runtime.gcenable
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:177 +0x78

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x21045c25edcf?, 0x10000?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000067f10 sp=0xc000067ef0 pc=0x105016008
runtime.goparkunlock(...)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:372
runtime.bgscavenge(0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/mgcscavenge.go:357 +0x2a4 fp=0xc000067fb0 sp=0xc000067f10 pc=0x104fff844
runtime.gcenable.func2()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:178 +0x2c fp=0xc000067fd0 sp=0xc000067fb0 pc=0x104ff72dc
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000067fd0 sp=0xc000067fd0 pc=0x105047c04
created by runtime.gcenable
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:178 +0xbc

goroutine 18 [finalizer wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000062590 sp=0xc000062570 pc=0x105016008
runtime.goparkunlock(...)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:372
runtime.runfinq()
    /Users/kolombet/sdk/gotip/src/runtime/mfinal.go:177 +0xcc fp=0xc0000627d0 sp=0xc000062590 pc=0x104ff64bc
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000627d0 sp=0xc0000627d0 pc=0x105047c04
created by runtime.createfing
    /Users/kolombet/sdk/gotip/src/runtime/mfinal.go:157 +0x8c

goroutine 19 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000062f40 sp=0xc000062f20 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc000062fd0 sp=0xc000062f40 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000062fd0 sp=0xc000062fd0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 5 [GC worker (idle)]:
runtime.gopark(0x0?, 0x2?, 0x80?, 0x35?, 0xc000090000?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000066740 sp=0xc000066720 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0000667d0 sp=0xc000066740 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000667d0 sp=0xc0000667d0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 34 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000188740 sp=0xc000188720 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0001887d0 sp=0xc000188740 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0001887d0 sp=0xc0001887d0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 35 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000188f40 sp=0xc000188f20 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc000188fd0 sp=0xc000188f40 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000188fd0 sp=0xc000188fd0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 20 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000063740 sp=0xc000063720 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0000637d0 sp=0xc000063740 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000637d0 sp=0xc0000637d0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 36 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000189740 sp=0xc000189720 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0001897d0 sp=0xc000189740 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0001897d0 sp=0xc0001897d0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 6 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000068740 sp=0xc000068720 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0000687d0 sp=0xc000068740 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000687d0 sp=0xc0000687d0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 37 [GC worker (idle)]:
runtime.gopark(0x105e337c0?, 0x1?, 0xad?, 0x6e?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000189f40 sp=0xc000189f20 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc000189fd0 sp=0xc000189f40 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000189fd0 sp=0xc000189fd0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 7 [GC worker (idle)]:
runtime.gopark(0x21045c0fae7f?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000074f40 sp=0xc000074f20 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc000074fd0 sp=0xc000074f40 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000074fd0 sp=0xc000074fd0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c

goroutine 8 [GC worker (idle)]:
runtime.gopark(0x21045c0f8193?, 0x0?, 0x0?, 0x0?, 0x0?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:366 +0xe8 fp=0xc000069740 sp=0xc000069720 pc=0x105016008
runtime.gcBgMarkWorker()
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1198 +0xec fp=0xc0000697d0 sp=0xc000069740 pc=0x104ff979c
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000697d0 sp=0xc0000697d0 pc=0x105047c04
created by runtime.gcBgMarkStartWorkers
    /Users/kolombet/sdk/gotip/src/runtime/mgc.go:1122 +0x2c
Apple crash report
{"app_name":"postgres.test","timestamp":"2021-11-30 00:51:06.00 +0300","app_version":"","slice_uuid":"00000000-0000-0000-0000-000000000000","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","incident_id":"589BC781-82F0-4120-AAF4-6E29E2BD0024","name":"postgres.test"}
{
  "uptime" : 36000,
  "procLaunch" : "2021-11-30 00:51:05.9814 +0300",
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,2",
  "procStartAbsTime" : 871250429884,
  "coalitionID" : 1788,
  "osVersion" : {
    "train" : "macOS 12.0.1",
    "build" : "21A559",
    "releaseType" : "User"
  },
  "captureTime" : "2021-11-30 00:51:06.4992 +0300",
  "incident" : "589BC781-82F0-4120-AAF4-6E29E2BD0024",
  "bug_type" : "309",
  "pid" : 59175,
  "procExitAbsTime" : 871262851101,
  "translated" : false,
  "cpuType" : "ARM-64",
  "procName" : "postgres.test",
  "procPath" : "\/private\/var\/folders\/*\/postgres.test",
  "parentProc" : "go",
  "parentPid" : 59083,
  "coalitionName" : "com.googlecode.iterm2",
  "crashReporterKey" : "4CEE213C-1F9C-44C6-8DE0-31B7B2E9BE02",
  "responsiblePid" : 2046,
  "responsibleProc" : "iTerm2",
  "wakeTime" : 14289,
  "sleepWakeUUID" : "5135B805-E21F-49E7-842E-1E4AED9E54ED",
  "sip" : "enabled",
  "vmRegionInfo" : "0x2a51ad2dc is not in any region.  Bytes after previous region: 1465455325  Bytes before following region: 56285801764\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      unused shlib __TEXT         24a644000-24dc1c000    [ 53.8M] r--\/r-- SM=COW  ... this process\n--->  GAP OF 0xd723e4000 BYTES\n      commpage (reserved)         fc0000000-1000000000   [  1.0G] ---\/--- SM=NUL  ...(unallocated)",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000001, 0x00000002a51ad2dc","rawCodes":[1,11359933148],"type":"EXC_BAD_ACCESS","signal":"SIGABRT","subtype":"KERN_INVALID_ADDRESS at 0x00000002a51ad2dc"},
  "vmregioninfo" : "0x2a51ad2dc is not in any region.  Bytes after previous region: 1465455325  Bytes before following region: 56285801764\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      unused shlib __TEXT         24a644000-24dc1c000    [ 53.8M] r--\/r-- SM=COW  ... this process\n--->  GAP OF 0xd723e4000 BYTES\n      commpage (reserved)         fc0000000-1000000000   [  1.0G] ---\/--- SM=NUL  ...(unallocated)",
  "asi" : {"postgres.test":[]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":2},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":522285,"threadState":{"x":[{"value":0},{"value":0},{"value":824633768240},{"value":4393542720,"symbolLocation":0,"symbol":"runtime.g0"},{"value":0},{"value":0},{"value":4393742528,"symbolLocation":0,"symbol":"runtime.handlingSig"},{"value":0},{"value":4516858768292327169},{"value":4516858772683647617},{"value":24},{"value":4379156416,"symbolLocation":0,"symbol":"runtime.sigtrampgo.abi0"},{"value":0},{"value":824633768224},{"value":0},{"value":0},{"value":328},{"value":8339535152},{"value":0},{"value":6},{"value":4408624512,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":4386799806,"symbolLocation":0,"symbol":"go.func.*"},{"value":8320853000,"symbolLocation":0,"symbol":"OBJC_CLASS_$_NSObject"},{"value":4380559824,"symbolLocation":240,"symbol":"regexp\/syntax.(*compiler).rune"},{"value":84071123},{"value":0},{"value":2112},{"value":4393542720,"symbolLocation":0,"symbol":"runtime.g0"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6825496924},"cpsr":{"value":1073741824},"fp":{"value":824633768160},"sp":{"value":824633768128},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6825286072,"matchesCrashFrame":1},"far":{"value":4387376324}},"queue":"com.apple.main-thread","frames":[{"imageOffset":39352,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":29020,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":1},{"imageOffset":269476,"symbol":"raise","symbolLocation":32,"imageIndex":2},{"imageOffset":4379153300,"symbol":"runtime.raise_trampoline","symbolLocation":20,"imageIndex":3},{"imageOffset":4379146872,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]},{"id":522470,"frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31456,"symbol":"_pthread_cond_wait","symbolLocation":1272,"imageIndex":1},{"imageOffset":4379153548,"symbol":"runtime.pthread_cond_timedwait_relative_np_trampoline","symbolLocation":28,"imageIndex":3},{"imageOffset":4379146872,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]},{"id":522471,"frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31412,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":4379153496,"symbol":"runtime.pthread_cond_wait_trampoline","symbolLocation":24,"imageIndex":3},{"imageOffset":4379146872,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]},{"id":522472,"frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31412,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":4379153496,"symbol":"runtime.pthread_cond_wait_trampoline","symbolLocation":24,"imageIndex":3},{"imageOffset":4379146872,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]},{"id":522474,"frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31412,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":4379153496,"symbol":"runtime.pthread_cond_wait_trampoline","symbolLocation":24,"imageIndex":3},{"imageOffset":4379146872,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]},{"id":522475,"frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31412,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":4379153496,"symbol":"runtime.pthread_cond_wait_trampoline","symbolLocation":24,"imageIndex":3},{"imageOffset":4379146872,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]},{"id":522478,"frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31412,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":4379153496,"symbol":"runtime.pthread_cond_wait_trampoline","symbolLocation":24,"imageIndex":3},{"imageOffset":4379146872,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]},{"id":522479,"frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31412,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":4379153496,"symbol":"runtime.pthread_cond_wait_trampoline","symbolLocation":24,"imageIndex":3},{"imageOffset":4379146872,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6825246720,
    "size" : 221184,
    "uuid" : "c8524c02-b14f-30bd-a228-c44b4a448e68",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6825467904,
    "size" : 53248,
    "uuid" : "4786e19a-9312-38e6-80ef-9c1394548118",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6824202240,
    "size" : 528384,
    "uuid" : "002a39ae-6431-3b2e-85e7-c45fc2f95ad0",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6822297600,
  "size" : 3072180224,
  "uuid" : "a6162d66-93e3-3251-93cc-b11f7c8c830e"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=658.4M resident=0K(0%) swapped_out_or_unallocated=658.4M(100%)\nWritable regions: Total=931.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=931.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nKernel Alloc Once                   32K        1 \nMALLOC                           135.1M       25 \nMALLOC guard page                   96K        5 \nMALLOC_NANO (reserved)           381.6M       20         reserved VM address space (unallocated)\nSTACK GUARD                        112K        7 \nSanitizer                        222.7M       52 \nSanitizer (reserved)             128.0M        1         reserved VM address space (unallocated)\nStack                             11.7M        8 \nStack Guard                       56.0M        1 \nVM_ALLOCATE                        1.7G       25 \n__AUTH                             221K       46 \n__AUTH_CONST                      2870K      122 \n__DATA                            11.4M      119 \n__DATA_CONST                      8739K      124 \n__DATA_DIRTY                       232K       50 \n__LINKEDIT                       572.2M        3 \n__OBJC_CONST                       259K       29 \n__OBJC_RO                         81.8M        1 \n__OBJC_RW                         3088K        1 \n__TEXT                            86.1M      130 \n__UNICODE                          588K        1 \ndyld private memory               1024K        1 \nmapped file                          8K        1 \nshared memory                       16K        1 \n===========                     =======  ======= \nTOTAL                              3.3G      774 \nTOTAL, minus reserved VM space     2.8G      774 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "6194416dea7ed64a7812a429"
      },
      "deploymentId" : 240000322
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "6181ebb28763315b9604755e"
      },
      "deploymentId" : 240000271
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

      },
      "deploymentId" : 240000162
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000076
    },
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    }
  ],
  "experiments" : [

  ]
}
}

Crash 3

Another Heap corruption detected, different go stacktrace

Go stacktrace
SIGABRT: abort
PC=0x196d199b8 m=0 sigcode=0

goroutine 0 [idle]:
runtime: unknown pc 0x196d199b8
stack: frame={sp:0x16b1bb0b0, fp:0x0} stack=[0x16b13c418,0x16b1bb490)
0x000000016b1bafb0:  0x000000016b1baff8  0x000000016b1bafe8
0x000000016b1bafc0:  0x3031000104ca5584  0x0030383534663736
0x000000016b1bafd0:  0x000000000000015e  0x0000000000000000
0x000000016b1bafe0:  0x000000000000000a  0x0000000000000000
0x000000016b1baff0:  0x0000000000000070  0x0000000000000000
0x000000016b1bb000:  0x0000000000000000  0x0000000196b89ecd
0x000000016b1bb010:  0x0000000106780000  0x0000000000000000
0x000000016b1bb020:  0x000000016b1bb090  0x3413000196d64dac
0x000000016b1bb030:  0x000000016b1bb1c0  0x000000016b1bb0c8
0x000000016b1bb040:  0x000000000000015e  0x00000001067f4580
0x000000016b1bb050:  0x000000016b1bb858  0x0000000000000000
0x000000016b1bb060:  0x0000000000000000  0x00000001067f4580
0x000000016b1bb070:  0x000000016b1bb858  0x0000000106780000
0x000000016b1bb080:  0x0000000000000043  0x0000000196b89ed8
0x000000016b1bb090:  0x000000016b1bb0b0  0xdb21000196d62748
0x000000016b1bb0a0:  0x0000000000000043  0x000000016b1bb0c0
0x000000016b1bb0b0: <0x000000016b1bb1c0  0x000000010677c028
0x000000016b1bb0c0:  0x000000016b1bb0f8  0x00000001067f4580
0x000000016b1bb0d0:  0x000000016b1bb110  0x6a79800196c8a314
0x000000016b1bb0e0:  0x0000000000000000  0xffffffff0677c000
0x000000016b1bb0f0:  0x000000016b1bb1c0  0x00000001fffff9df
0x000000016b1bb100:  0x0000000000000000  0x0000000000000043
0x000000016b1bb110:  0x000000016b1bb190  0x006e800196b6fa1c
0x000000016b1bb120:  0x000000016b1bb858  0x000000000000ebdb
0x000000016b1bb130:  0x00000001067f4580  0x0000000000008000
0x000000016b1bb140:  0x000000000000015e  0x00000000001ff800
0x000000016b1bb150:  0x0000000000000020  0x0000000000000001
0x000000016b1bb160:  0x0000600003070000  0x00000000afe5115e
0x000000016b1bb170:  0x00000001064ff058  0x0000600003070000
0x000000016b1bb180:  0x0000600003271cc0  0x00000001067f4660
0x000000016b1bb190:  0x000000016b1bb1b0  0x8620800196b84c8c
0x000000016b1bb1a0:  0x0000000104cce200   0x000000016b1bb1c0
runtime: unknown pc 0x196d199b8
stack: frame={sp:0x16b1bb0b0, fp:0x0} stack=[0x16b13c418,0x16b1bb490)
0x000000016b1bafb0:  0x000000016b1baff8  0x000000016b1bafe8
0x000000016b1bafc0:  0x3031000104ca5584  0x0030383534663736
0x000000016b1bafd0:  0x000000000000015e  0x0000000000000000
0x000000016b1bafe0:  0x000000000000000a  0x0000000000000000
0x000000016b1baff0:  0x0000000000000070  0x0000000000000000
0x000000016b1bb000:  0x0000000000000000  0x0000000196b89ecd
0x000000016b1bb010:  0x0000000106780000  0x0000000000000000
0x000000016b1bb020:  0x000000016b1bb090  0x3413000196d64dac
0x000000016b1bb030:  0x000000016b1bb1c0  0x000000016b1bb0c8
0x000000016b1bb040:  0x000000000000015e  0x00000001067f4580
0x000000016b1bb050:  0x000000016b1bb858  0x0000000000000000
0x000000016b1bb060:  0x0000000000000000  0x00000001067f4580
0x000000016b1bb070:  0x000000016b1bb858  0x0000000106780000
0x000000016b1bb080:  0x0000000000000043  0x0000000196b89ed8
0x000000016b1bb090:  0x000000016b1bb0b0  0xdb21000196d62748
0x000000016b1bb0a0:  0x0000000000000043  0x000000016b1bb0c0
0x000000016b1bb0b0: <0x000000016b1bb1c0  0x000000010677c028
0x000000016b1bb0c0:  0x000000016b1bb0f8  0x00000001067f4580
0x000000016b1bb0d0:  0x000000016b1bb110  0x6a79800196c8a314
0x000000016b1bb0e0:  0x0000000000000000  0xffffffff0677c000
0x000000016b1bb0f0:  0x000000016b1bb1c0  0x00000001fffff9df
0x000000016b1bb100:  0x0000000000000000  0x0000000000000043
0x000000016b1bb110:  0x000000016b1bb190  0x006e800196b6fa1c
0x000000016b1bb120:  0x000000016b1bb858  0x000000000000ebdb
0x000000016b1bb130:  0x00000001067f4580  0x0000000000008000
0x000000016b1bb140:  0x000000000000015e  0x00000000001ff800
0x000000016b1bb150:  0x0000000000000020  0x0000000000000001
0x000000016b1bb160:  0x0000600003070000  0x00000000afe5115e
0x000000016b1bb170:  0x00000001064ff058  0x0000600003070000
0x000000016b1bb180:  0x0000600003271cc0  0x00000001067f4660
0x000000016b1bb190:  0x000000016b1bb1b0  0x8620800196b84c8c
0x000000016b1bb1a0:  0x0000000104cce200   0x000000016b1bb1c0

goroutine 1 [running, locked to thread]:
runtime.systemstack_switch()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:194 +0x8 fp=0xc0000545d0 sp=0xc0000545c0 pc=0x104ce54e8
runtime.newproc(0xc000054628?)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:4230 +0x4c fp=0xc000054610 sp=0xc0000545d0 pc=0x104cbea2c
runtime.init.6()
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:294 +0x28 fp=0xc000054630 sp=0xc000054610 pc=0x104cb5dc8
runtime.doInit(0x1057dede0)
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:6396 +0x138 fp=0xc000054770 sp=0xc000054630 pc=0x104cc3c38
runtime.main()
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:204 +0x134 fp=0xc0000547d0 sp=0xc000054770 pc=0x104cb5ae4
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc0000547d0 sp=0xc0000547d0 pc=0x104ce7c54

goroutine 2 [runnable]:
runtime.forcegchelper()
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:297 fp=0xc000054fd0 sp=0xc000054fd0 pc=0x104cb5de0
runtime.goexit()
    /Users/kolombet/sdk/gotip/src/runtime/asm_arm64.s:1259 +0x4 fp=0xc000054fd0 sp=0xc000054fd0 pc=0x104ce7c54
created by runtime.init.6
    /Users/kolombet/sdk/gotip/src/runtime/proc.go:294 +0x28

r0      0x0
r1      0x0
r2      0x0
r3      0x0
r4      0x0
r5      0x0
r6      0x1
r7      0x10677c028
r8      0xfa9d19abe4caacc1
r9      0xfa9d19aae2b5e941
r10     0xcccccccccccccccd
r11     0xa
r12     0x0
r13     0x36
r14     0x30000000
r15     0xc00000303f
r16     0x148
r17     0x1f1133530
r18     0x0
r19     0x6
r20     0x1067f4580
r21     0x103
r22     0x16b1bb1c0
r23     0x10677c000
r24     0x0
r25     0x0
r26     0x16b1bb858
r27     0x1067f4580
r28     0x15e
r29     0x16b1bb0d0
lr      0x196d4d15c
sp      0x16b1bb0b0
pc      0x196d199b8
fault   0x196d199b8
Apple crash report
{"app_name":"server.test","timestamp":"2021-11-30 01:00:24.00 +0300","app_version":"","slice_uuid":"00000000-0000-0000-0000-000000000000","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","incident_id":"9CCFA7DC-DC4D-42BD-B302-909BDC4C78F2","name":"server.test"}
{
  "uptime" : 36000,
  "procLaunch" : "2021-11-30 01:00:19.1719 +0300",
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,2",
  "procStartAbsTime" : 884526896715,
  "coalitionID" : 1788,
  "osVersion" : {
    "train" : "macOS 12.0.1",
    "build" : "21A559",
    "releaseType" : "User"
  },
  "captureTime" : "2021-11-30 01:00:24.6440 +0300",
  "incident" : "9CCFA7DC-DC4D-42BD-B302-909BDC4C78F2",
  "bug_type" : "309",
  "pid" : 60379,
  "procExitAbsTime" : 884658169333,
  "translated" : false,
  "cpuType" : "ARM-64",
  "procName" : "server.test",
  "procPath" : "\/private\/var\/folders\/*\/server.test",
  "parentProc" : "go",
  "parentPid" : 60257,
  "coalitionName" : "com.googlecode.iterm2",
  "crashReporterKey" : "4CEE213C-1F9C-44C6-8DE0-31B7B2E9BE02",
  "responsiblePid" : 2046,
  "responsibleProc" : "iTerm2",
  "wakeTime" : 14847,
  "sleepWakeUUID" : "5135B805-E21F-49E7-842E-1E4AED9E54ED",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "asi" : {"libsystem_malloc.dylib":["server.test(60379,0x1067f4580) malloc: Heap corruption detected, free list is damaged at 0x600003072ba0","*** Incorrect guard value: 0"],"server.test":[],"libsystem_c.dylib":["abort() called"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":2},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":535199,"threadState":{"x":[{"value":0},{"value":0},{"value":824633766288},{"value":824633729024},{"value":0},{"value":0},{"value":4387698208,"symbolLocation":0,"symbol":"runtime.handlingSig"},{"value":0},{"value":18058618306894146753},{"value":18058618302564264257},{"value":17},{"value":4375617552,"symbolLocation":0,"symbol":"runtime.sigtrampgo.abi0"},{"value":0},{"value":824633766272},{"value":0},{"value":0},{"value":328},{"value":8339535152},{"value":0},{"value":6},{"value":4403971456,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":4381798020,"symbolLocation":0,"symbol":"go.func.*"},{"value":4403478528},{"value":0},{"value":0},{"value":0},{"value":2112},{"value":824633729024}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6825496924},"cpsr":{"value":1073741824},"fp":{"value":824633766208},"sp":{"value":824633766176},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6825286072,"matchesCrashFrame":1},"far":{"value":4341170176}},"queue":"com.apple.main-thread","frames":[{"imageOffset":39352,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":29020,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":1},{"imageOffset":269476,"symbol":"raise","symbolLocation":32,"imageIndex":2},{"imageOffset":4375614436,"symbol":"runtime.raise_trampoline","symbolLocation":20,"imageIndex":3},{"imageOffset":4375608008,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]},{"id":535287,"frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31456,"symbol":"_pthread_cond_wait","symbolLocation":1272,"imageIndex":1},{"imageOffset":4375614684,"symbol":"runtime.pthread_cond_timedwait_relative_np_trampoline","symbolLocation":28,"imageIndex":3},{"imageOffset":4375608008,"symbol":"runtime.asmcgocall.abi0","symbolLocation":200,"imageIndex":3}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6825246720,
    "size" : 221184,
    "uuid" : "c8524c02-b14f-30bd-a228-c44b4a448e68",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6825467904,
    "size" : 53248,
    "uuid" : "4786e19a-9312-38e6-80ef-9c1394548118",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6824202240,
    "size" : 528384,
    "uuid" : "002a39ae-6431-3b2e-85e7-c45fc2f95ad0",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6822297600,
  "size" : 3072180224,
  "uuid" : "a6162d66-93e3-3251-93cc-b11f7c8c830e"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=656.6M resident=0K(0%) swapped_out_or_unallocated=656.6M(100%)\nWritable regions: Total=922.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=922.1M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nKernel Alloc Once                   32K        1 \nMALLOC                           136.1M       18 \nMALLOC guard page                   96K        5 \nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                         16K        1 \nSanitizer                        176.8M       18 \nSanitizer (reserved)             165.3M        3         reserved VM address space (unallocated)\nStack                             8720K        2 \nStack Guard                       56.0M        1 \nVM_ALLOCATE                        1.7G       24 \n__AUTH                             221K       46 \n__AUTH_CONST                      2870K      122 \n__DATA                            11.4M      119 \n__DATA_CONST                      7879K      124 \n__DATA_DIRTY                       232K       50 \n__LINKEDIT                       572.0M        3 \n__OBJC_CONST                       259K       29 \n__OBJC_RO                         81.8M        1 \n__OBJC_RW                         3088K        1 \n__TEXT                            84.6M      130 \n__UNICODE                          588K        1 \ndyld private memory               1024K        1 \nmapped file                          4K        1 \nshared memory                       16K        1 \n===========                     =======  ======= \nTOTAL                              3.3G      703 \nTOTAL, minus reserved VM space     2.8G      703 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "6194416dea7ed64a7812a429"
      },
      "deploymentId" : 240000322
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "6181ebb28763315b9604755e"
      },
      "deploymentId" : 240000271
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

      },
      "deploymentId" : 240000162
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000076
    },
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    }
  ],
  "experiments" : [

  ]
}
}

Crash 4

Another SIGABRT, maybe an interesting/helpful stacktrace? Unfortunately, I don't have an Apple report for this one.

Go stacktrace
SIGABRT: abort
PC=0x196d199b8 m=6 sigcode=0

goroutine 0 [idle]:
runtime: unknown pc 0x196d199b8
stack: frame={sp:0x16d906a30, fp:0x0} stack=[0x16d887328,0x16d906f28)
0x000000016d906930:  0x0000000102840314   0x0000000102854de0 
0x000000016d906940:  0x363100016d906978  0x0030303037303964
0x000000016d906950:  0x00000000000004ac  0x0000000000000000
0x000000016d906960:  0x000000000000000a  0x0000000000000000
0x000000016d906970:  0x0000000000000070  0x0000000000000000
0x000000016d906980:  0x0000000000000000  0x0000000196b89ecd
0x000000016d906990:  0x00000001045fc000  0x0000000000000000
0x000000016d9069a0:  0x000000016d906a10  0xa206800196d64dac
0x000000016d9069b0:  0x000000016d906b40  0x000000016d906a48
0x000000016d9069c0:  0x00000000000004ac  0x000000016d907000
0x000000016d9069d0:  0x000000016d64f861  0x0000000000000000
0x000000016d9069e0:  0x0000000000000000  0x000000016d907000
0x000000016d9069f0:  0x000000016d64f861  0x00000001045fc000
0x000000016d906a00:  0x0000000000000043  0x0000000196b89ed8
0x000000016d906a10:  0x000000016d906a30  0xe94c800196d62748
0x000000016d906a20:  0x0000000000000043  0x000000016d906a40
0x000000016d906a30: <0x000000016d906b40  0x00000001045f8028
0x000000016d906a40:  0x000000016d906a78  0x000000016d907000
0x000000016d906a50:  0x000000016d906a90  0x4975800196c8a314
0x000000016d906a60:  0x0000000000000000  0xffffffff045f8000
0x000000016d906a70:  0x000000016d906b40  0x00000001fffff9df
0x000000016d906a80:  0x0000000000000000  0x0000000000000043
0x000000016d906a90:  0x000000016d906b10  0xde39000196b6fa1c
0x000000016d906aa0:  0x000000016d64f861  0x000000000000a6f8
0x000000016d906ab0:  0x000000016d907000  0x000000016d906ad8
0x000000016d906ac0:  0x00000000000004ac  0x00000000001ff800
0x000000016d906ad0:  0x0000000000000020  0x0000000000000001
0x000000016d906ae0:  0x000060000124c000  0x0000000082a83cac
0x000000016d906af0:  0x0000000104367058  0x000060000124c000
0x000000016d906b00:  0x000060000104d348  0x000000016d9070e0
0x000000016d906b10:  0x000000016d906b30  0x5f13000196b84c8c
0x000000016d906b20:  0x000000010280154c   0x000000016d906b40
runtime: unknown pc 0x196d199b8
stack: frame={sp:0x16d906a30, fp:0x0} stack=[0x16d887328,0x16d906f28)
0x000000016d906930:  0x0000000102840314   0x0000000102854de0 
0x000000016d906940:  0x363100016d906978  0x0030303037303964
0x000000016d906950:  0x00000000000004ac  0x0000000000000000
0x000000016d906960:  0x000000000000000a  0x0000000000000000
0x000000016d906970:  0x0000000000000070  0x0000000000000000
0x000000016d906980:  0x0000000000000000  0x0000000196b89ecd
0x000000016d906990:  0x00000001045fc000  0x0000000000000000
0x000000016d9069a0:  0x000000016d906a10  0xa206800196d64dac
0x000000016d9069b0:  0x000000016d906b40  0x000000016d906a48
0x000000016d9069c0:  0x00000000000004ac  0x000000016d907000
0x000000016d9069d0:  0x000000016d64f861  0x0000000000000000
0x000000016d9069e0:  0x0000000000000000  0x000000016d907000
0x000000016d9069f0:  0x000000016d64f861  0x00000001045fc000
0x000000016d906a00:  0x0000000000000043  0x0000000196b89ed8
0x000000016d906a10:  0x000000016d906a30  0xe94c800196d62748
0x000000016d906a20:  0x0000000000000043  0x000000016d906a40
0x000000016d906a30: <0x000000016d906b40  0x00000001045f8028
0x000000016d906a40:  0x000000016d906a78  0x000000016d907000
0x000000016d906a50:  0x000000016d906a90  0x4975800196c8a314
0x000000016d906a60:  0x0000000000000000  0xffffffff045f8000
0x000000016d906a70:  0x000000016d906b40  0x00000001fffff9df
0x000000016d906a80:  0x0000000000000000  0x0000000000000043
0x000000016d906a90:  0x000000016d906b10  0xde39000196b6fa1c
0x000000016d906aa0:  0x000000016d64f861  0x000000000000a6f8
0x000000016d906ab0:  0x000000016d907000  0x000000016d906ad8
0x000000016d906ac0:  0x00000000000004ac  0x00000000001ff800
0x000000016d906ad0:  0x0000000000000020  0x0000000000000001
0x000000016d906ae0:  0x000060000124c000  0x0000000082a83cac
0x000000016d906af0:  0x0000000104367058  0x000060000124c000
0x000000016d906b00:  0x000060000104d348  0x000000016d9070e0
0x000000016d906b10:  0x000000016d906b30  0x5f13000196b84c8c
0x000000016d906b20:  0x000000010280154c   0x000000016d906b40

goroutine 1 [runnable, locked to thread]:
time.(*dataIO).big4(0xc000212e28)
    /Users/kolombet/sdk/gotip/src/time/zoneinfo_read.go:65 +0x208
time.(*dataIO).big8(0xc000212e28)
    /Users/kolombet/sdk/gotip/src/time/zoneinfo_read.go:76 +0x40
time.LoadLocationFromTZData({0x102f88471, 0x11}, {0xc0000c3200, 0x890, 0x900})
    /Users/kolombet/sdk/gotip/src/time/zoneinfo_read.go:291 +0x110c
time.loadLocation({0x102f88471, 0x11}, {0x10364c7e0, 0x4, 0x1027fd460?})
    /Users/kolombet/sdk/gotip/src/time/zoneinfo_read.go:533 +0x27c
time.LoadLocation({0x102f88471, 0x11})
    /Users/kolombet/sdk/gotip/src/time/zoneinfo.go:668 +0x258
redacted/extranet/rna-ng/internal/rnad/engine/tz.init.0()
    /Users/kolombet/go/src/redacted/rna-ng/internal/rnad/engine/tz/tz.go:610 +0x128

r0      0x0
r1      0x0
r2      0x0
r3      0x0
r4      0x0
r5      0x0
r6      0x1
r7      0x1045f8028
r8      0x30c3163976783b93
r9      0x30c316381be84b93
r10     0xcccccccccccccccd
r11     0xa
r12     0x0
r13     0x34
r14     0x2c00000
r15     0x0
r16     0x148
r17     0x1f1133530
r18     0x0
r19     0x6
r20     0x16d907000
r21     0x1003
r22     0x16d906b40
r23     0x1045f8000
r24     0x0
r25     0x0
r26     0x16d64f861
r27     0x16d907000
r28     0x4ac
r29     0x16d906a50
lr      0x196d4d15c
sp      0x16d906a30
pc      0x196d199b8
fault   0x196d199b8

Hang up 1

My test suite just hanged with one process consuming 99.9% cpu.

lldb stracktrace
(lldb) process interrupt
Process 49308 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGURG
    frame #0: 0x0000000196d11a5c libsystem_kernel.dylib`swtch_pri + 8
libsystem_kernel.dylib`swtch_pri:
->  0x196d11a5c <+8>: ret

libsystem_kernel.dylib`swtch:
    0x196d11a60 <+0>: mov    x16, #-0x3c
    0x196d11a64 <+4>: svc    #0x80
    0x196d11a68 <+8>: ret
Target 0: (engine.test) stopped.
(lldb) thread list
Process 49308 stopped
* thread #1: tid = 0x663b1, 0x0000000196d11a5c libsystem_kernel.dylib`swtch_pri + 8, queue = 'com.apple.main-thread', stop reason = signal SIGURG
  thread #2: tid = 0x663b2, 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
  thread #3: tid = 0x663b3, 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
  thread #4: tid = 0x663b4, 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
  thread #5: tid = 0x663b5, 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
  thread #6: tid = 0x663b6, 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
  thread #7: tid = 0x663b7, 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
  thread #8: tid = 0x663b8, 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
(lldb) thread backtrace all
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGURG
  * frame #0: 0x0000000196d11a5c libsystem_kernel.dylib`swtch_pri + 8
    frame #1: 0x0000000196d4a390 libsystem_pthread.dylib`cthread_yield + 20
    frame #2: 0x000000010466441c engine.test`__tsan_func_enter + 232
    frame #3: 0x0000000104700538 engine.test`racefuncenter + 56
    frame #4: 0x00000001046ddb38 engine.test`runtime.racereadrangepc + 56
    frame #5: 0x00000001046dd204 engine.test`runtime.raceReadObjectPC + 68
    frame #6: 0x00000001046a50d8 engine.test`runtime.mapassign + 104
    frame #7: 0x0000000104a46d80 engine.test`vendor/golang.org/x/net/http2/hpack.init + 1216
    frame #8: 0x00000001046dbc48 engine.test`runtime.doInit + 312
    frame #9: 0x00000001046dbb80 engine.test`runtime.doInit + 112
    frame #10: 0x00000001046dbb80 engine.test`runtime.doInit + 112
    frame #11: 0x00000001046dbb80 engine.test`runtime.doInit + 112
    frame #12: 0x00000001046dbb80 engine.test`runtime.doInit + 112
    frame #13: 0x00000001046cdbdc engine.test`runtime.main + 540
  thread #2
    frame #0: 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x0000000196d4dae0 libsystem_pthread.dylib`_pthread_cond_wait + 1272
    frame #2: 0x00000001047014dc engine.test`runtime.pthread_cond_timedwait_relative_np_trampoline + 28
  thread #3
    frame #0: 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x0000000196d4dab4 libsystem_pthread.dylib`_pthread_cond_wait + 1228
    frame #2: 0x00000001047014a8 engine.test`runtime.pthread_cond_wait_trampoline + 24
    frame #3: 0x00000001046ffac8 engine.test`runtime.asmcgocall.abi0 + 200
  thread #4
    frame #0: 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x0000000196d4dae0 libsystem_pthread.dylib`_pthread_cond_wait + 1272
    frame #2: 0x00000001047014dc engine.test`runtime.pthread_cond_timedwait_relative_np_trampoline + 28
  thread #5
    frame #0: 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x0000000196d4dab4 libsystem_pthread.dylib`_pthread_cond_wait + 1228
    frame #2: 0x00000001047014a8 engine.test`runtime.pthread_cond_wait_trampoline + 24
    frame #3: 0x00000001046ffac8 engine.test`runtime.asmcgocall.abi0 + 200
  thread #6
    frame #0: 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x0000000196d4dab4 libsystem_pthread.dylib`_pthread_cond_wait + 1228
    frame #2: 0x00000001047014a8 engine.test`runtime.pthread_cond_wait_trampoline + 24
    frame #3: 0x00000001046ffac8 engine.test`runtime.asmcgocall.abi0 + 200
  thread #7
    frame #0: 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x0000000196d4dab4 libsystem_pthread.dylib`_pthread_cond_wait + 1228
    frame #2: 0x00000001047014a8 engine.test`runtime.pthread_cond_wait_trampoline + 24
    frame #3: 0x00000001046ffac8 engine.test`runtime.asmcgocall.abi0 + 200
  thread #8
    frame #0: 0x0000000196d150c0 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x0000000196d4dab4 libsystem_pthread.dylib`_pthread_cond_wait + 1228
    frame #2: 0x00000001047014a8 engine.test`runtime.pthread_cond_wait_trampoline + 24
    frame #3: 0x00000001046ffac8 engine.test`runtime.asmcgocall.abi0 + 200
Activity monitor sample process
Sampling process 49308 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling engine.test (pid 49308) every 1 millisecond
Process:         engine.test [49308]
Path:            /private/var/folders/*/engine.test
Load Address:    0x10465c000
Identifier:      engine.test
Version:         ???
Code Type:       ARM64
Platform:        macOS
Parent Process:  go [49281]

Date/Time:       2021-11-29 23:36:42.219 +0300
Launch Time:     2021-11-29 23:35:23.682 +0300
OS Version:      macOS 12.0.1 (21A559)
Report Version:  7
Analysis Tool:   /usr/bin/sample

Physical footprint:         15.7M
Physical footprint (peak):  15.7M
----

Call graph:
    2067 Thread_418737   DispatchQueue_1: com.apple.main-thread  (serial)
    + 2066 runtime.goexit.abi0  (in engine.test) + 4  [0x1046ffc54]
    + ! 2066 runtime.main  (in engine.test) + 540  [0x1046cdbdc]
    + !   2066 runtime.doInit  (in engine.test) + 112  [0x1046dbb80]
    + !     2066 runtime.doInit  (in engine.test) + 112  [0x1046dbb80]
    + !       2066 runtime.doInit  (in engine.test) + 112  [0x1046dbb80]
    + !         2066 runtime.doInit  (in engine.test) + 112  [0x1046dbb80]
    + !           2066 runtime.doInit  (in engine.test) + 312  [0x1046dbc48]
    + !             2066 vendor/golang.org/x/net/http2/hpack.init  (in engine.test) + 1216  [0x104a46d80]
    + !               2066 runtime.mapassign  (in engine.test) + 104  [0x1046a50d8]
    + !                 2066 runtime.raceReadObjectPC  (in engine.test) + 68  [0x1046dd204]
    + !                   2066 runtime.racereadrangepc  (in engine.test) + 56  [0x1046ddb38]
    + !                     2066 racefuncenter  (in engine.test) + 56  [0x104700538]
    + !                       2066 __tsan_func_enter  (in engine.test) + 232  [0x10466441c]
    + !                         2026 cthread_yield  (in libsystem_pthread.dylib) + 20  [0x196d4a390]
    + !                         : 2022 swtch_pri  (in libsystem_kernel.dylib) + 8  [0x196d11a5c]
    + !                         : 4 DYLD-STUB$$swtch_pri  (in libsystem_pthread.dylib) + 8  [0x196d51e58]
    + !                         18 __tsan_func_enter  (in engine.test) + 228,232  [0x104664418,0x10466441c]
    + !                         11 DYLD-STUB$$ioctl  (in engine.test) + 4  [0x104e4b9dc]
    + !                         11 cthread_yield  (in libsystem_pthread.dylib) + 4,24  [0x196d4a380,0x196d4a394]
    + 1 cthread_yield  (in libsystem_pthread.dylib) + 20  [0x196d4a390]
    +   1 _sigtramp  (in libsystem_platform.dylib) + 0  [0x196d644ac]
    2067 Thread_418738
    + 2067 runtime.asmcgocall.abi0  (in engine.test) + 200  [0x1046ffac8]
    +   2066 runtime.usleep_trampoline  (in engine.test) + 20  [0x1047010f4]
    +   ! 2066 usleep  (in libsystem_c.dylib) + 68  [0x196c1fca4]
    +   !   2066 nanosleep  (in libsystem_c.dylib) + 216  [0x196c1fd88]
    +   !     2066 __semwait_signal  (in libsystem_kernel.dylib) + 8  [0x196d14ebc]
    +   1 runtime.pthread_kill_trampoline  (in engine.test) + 24  [0x104701558]
    +     1 pthread_kill  (in libsystem_pthread.dylib) + 288  [0x196d4d15c]
    +       1 __pthread_kill  (in libsystem_kernel.dylib) + 8  [0x196d199b8]
    2067 Thread_418739
    + 2067 runtime.asmcgocall.abi0  (in engine.test) + 200  [0x1046ffac8]
    +   2067 runtime.pthread_cond_wait_trampoline  (in engine.test) + 24  [0x1047014a8]
    +     2067 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1228  [0x196d4dab4]
    +       2067 __psynch_cvwait  (in libsystem_kernel.dylib) + 8  [0x196d150c0]
    2067 Thread_418740
    + 2067 runtime.asmcgocall.abi0  (in engine.test) + 201  [0x1046ffac9]
    +   2067 runtime.pthread_cond_wait_trampoline  (in engine.test) + 24  [0x1047014a8]
    +     2067 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1228  [0x196d4dab4]
    +       2067 __psynch_cvwait  (in libsystem_kernel.dylib) + 8  [0x196d150c0]
    2067 Thread_418741
    + 2067 runtime.asmcgocall.abi0  (in engine.test) + 200  [0x1046ffac8]
    +   2067 runtime.pthread_cond_wait_trampoline  (in engine.test) + 24  [0x1047014a8]
    +     2067 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1228  [0x196d4dab4]
    +       2067 __psynch_cvwait  (in libsystem_kernel.dylib) + 8  [0x196d150c0]
    2067 Thread_418742
    + 2067 runtime.asmcgocall.abi0  (in engine.test) + 200  [0x1046ffac8]
    +   2067 runtime.pthread_cond_wait_trampoline  (in engine.test) + 24  [0x1047014a8]
    +     2067 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1228  [0x196d4dab4]
    +       2067 __psynch_cvwait  (in libsystem_kernel.dylib) + 8  [0x196d150c0]
    2067 Thread_418743
    + 2067 runtime.asmcgocall.abi0  (in engine.test) + 200  [0x1046ffac8]
    +   2067 runtime.pthread_cond_wait_trampoline  (in engine.test) + 24  [0x1047014a8]
    +     2067 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1228  [0x196d4dab4]
    +       2067 __psynch_cvwait  (in libsystem_kernel.dylib) + 8  [0x196d150c0]
    2067 Thread_418744
      2067 runtime.asmcgocall.abi0  (in engine.test) + 200  [0x1046ffac8]
        2067 runtime.pthread_cond_wait_trampoline  (in engine.test) + 24  [0x1047014a8]
          2067 _pthread_cond_wait  (in libsystem_pthread.dylib) + 1228  [0x196d4dab4]
            2067 __psynch_cvwait  (in libsystem_kernel.dylib) + 8  [0x196d150c0]

Total number in stack (recursive counted multiple, when >=5):
        6       __psynch_cvwait  (in libsystem_kernel.dylib) + 0  [0x196d150b8]
        6       _pthread_cond_wait  (in libsystem_pthread.dylib) + 1228  [0x196d4dab4]
        6       runtime.asmcgocall.abi0  (in engine.test) + 200  [0x1046ffac8]
        6       runtime.pthread_cond_wait_trampoline  (in engine.test) + 24  [0x1047014a8]

Sort by top of stack, same collapsed (when >= 5):
        __psynch_cvwait  (in libsystem_kernel.dylib)        12402
        __semwait_signal  (in libsystem_kernel.dylib)        2066
        swtch_pri  (in libsystem_kernel.dylib)        2022
        __tsan_func_enter  (in engine.test)        18
        DYLD-STUB$$ioctl  (in engine.test)        11
        cthread_yield  (in libsystem_pthread.dylib)        11

Binary Images:
       0x10465c000 -        0x104f9dda4 +engine.test (???) /var/folders/*/engine.test
       0x1063ec000 -        0x106448b57  dyld (940) <86A8BA48-8BB4-3B30-9CDA-051F73C74F44> /usr/lib/dyld
       0x196a90000 -        0x196a91ffe  libsystem_blocks.dylib (79) <06DA29C0-4674-3332-9466-44FD0108C65A> /usr/lib/system/libsystem_blocks.dylib
       0x196a92000 -        0x196acbff7  libxpc.dylib (2235.40.11)  /usr/lib/system/libxpc.dylib
       0x196acc000 -        0x196ae5ffe  libsystem_trace.dylib (1375.40.2) <4749C29F-EE26-3A1C-B964-F1B1FD30ED5E> /usr/lib/system/libsystem_trace.dylib
       0x196ae6000 -        0x196b5ffff  libcorecrypto.dylib (1217.40.11)  /usr/lib/system/libcorecrypto.dylib
       0x196b60000 -        0x196b8affb  libsystem_malloc.dylib (374.40.6) <0B1B0684-D16A-3CEE-A9E6-126236D29C51> /usr/lib/system/libsystem_malloc.dylib
       0x196b8b000 -        0x196bd1ff7  libdispatch.dylib (1324.41.2) <3D7A56A3-23BF-3077-B5C6-9CE65CE7333E> /usr/lib/system/libdispatch.dylib
       0x196bd2000 -        0x196c0dfee  libobjc.A.dylib (838) <2EABED7F-1E81-3A1B-BB4B-985B8DD3B77F> /usr/lib/libobjc.A.dylib
       0x196c0e000 -        0x196c10fff  libsystem_featureflags.dylib (56) <050A021B-E775-3E59-BEE5-B6944D042598> /usr/lib/system/libsystem_featureflags.dylib
       0x196c11000 -        0x196c91fff  libsystem_c.dylib (1506.40.4) <002A39AE-6431-3B2E-85E7-C45FC2F95AD0> /usr/lib/system/libsystem_c.dylib
       0x196c92000 -        0x196cf5ffb  libc++.1.dylib (1200.3) <3AD094C9-4883-394C-AF5A-2B9A5BDFE45B> /usr/lib/libc++.1.dylib
       0x196cf6000 -        0x196d0fffb  libc++abi.dylib (1200.3) <6BAF3D90-C332-373D-8F33-2A6744916698> /usr/lib/libc++abi.dylib
       0x196d10000 -        0x196d45fef  libsystem_kernel.dylib (8019.41.5)  /usr/lib/system/libsystem_kernel.dylib
       0x196d46000 -        0x196d52ff3  libsystem_pthread.dylib (485.40.4) <4786E19A-9312-38E6-80EF-9C1394548118> /usr/lib/system/libsystem_pthread.dylib
       0x196d53000 -        0x196d5ffff  libdyld.dylib (940)  /usr/lib/system/libdyld.dylib
       0x196d60000 -        0x196d67ffb  libsystem_platform.dylib (273.40.1) <06CE953D-F22A-3724-B6D5-829B45179897> /usr/lib/system/libsystem_platform.dylib
       0x196d68000 -        0x196d93fff  libsystem_info.dylib (554) <9B1288F3-7805-3850-8585-856EED193D8A> /usr/lib/system/libsystem_info.dylib
       0x196d94000 -        0x1972d7ff4  com.apple.CoreFoundation (6.9 - 1855.105)  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1972d8000 -        0x197538ffd  com.apple.LaunchServices (1141.1 - 1141.1) <69F720DC-0686-3AA0-87D3-DEDF9449DADB> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
       0x19765b000 -        0x1978ceffb  libBLAS.dylib (1381.40.2) <1D51F24F-C2D7-300C-BAE5-2AAC2547970C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
       0x1978cf000 -        0x197918ff3  com.apple.Lexicon-framework (1.0 - 98)  /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
       0x197919000 -        0x19797bffb  libSparse.dylib (108) <07D582B6-E5C3-3BB0-808B-2E1C16F2936D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
       0x19797c000 -        0x197a00ffb  com.apple.SystemConfiguration (1.21 - 1.21)  /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
       0x197a01000 -        0x197a34fff  libCRFSuite.dylib (51)  /usr/lib/libCRFSuite.dylib
       0x197a35000 -        0x197c8aff4  libmecabra.dylib (972) <77E5361A-2822-3146-A93D-722CA1533C23> /usr/lib/libmecabra.dylib
       0x197c8b000 -        0x198078ff1  com.apple.Foundation (6.9 - 1855.105)  /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x198079000 -        0x19817cffb  com.apple.LanguageModeling (1.0 - 277.1) <5AE3E3FF-0C74-3C02-8ABD-E74D1585AAD0> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
       0x198e4a000 -        0x1991ccff9  com.apple.security (7.0 - 60157.40.30.0.1)  /System/Library/Frameworks/Security.framework/Versions/A/Security
       0x1991cd000 -        0x199477fff  libicucore.A.dylib (68232) <047E2353-42C7-3235-A8E9-B288BAF11876> /usr/lib/libicucore.A.dylib
       0x199478000 -        0x199482ffb  libsystem_darwin.dylib (1506.40.4)  /usr/lib/system/libsystem_darwin.dylib
       0x199483000 -        0x19977aff5  com.apple.CoreServices.CarbonCore (1319 - 1319) <45370920-96D3-3CE6-A7D7-0E67E095741D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
       0x1997b8000 -        0x1997f5ffb  com.apple.CSStore (1141.1 - 1141.1) <75346AED-1C2A-3117-8853-8B3526A63AFA> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
       0x1997f6000 -        0x1998caffa  com.apple.framework.IOKit (2.0.2 - 1955.40.6) <9A7140D9-FC80-384B-B098-AA27AD4C405F> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
       0x1998cb000 -        0x1998d9fff  libsystem_notify.dylib (301) <4A86A8D3-25D8-3CBC-ADF0-3140BD2AB95D> /usr/lib/system/libsystem_notify.dylib
       0x19aeeb000 -        0x19b9adff8  libnetwork.dylib (2750.40.25)  /usr/lib/libnetwork.dylib
       0x19b9ae000 -        0x19be65ff9  com.apple.CFNetwork (1325.0.1 - 1325.0.1)  /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
       0x19be66000 -        0x19be7dffb  libsystem_networkextension.dylib (1471.41.2) <71D6DEA7-E70F-31BB-A6BB-D2DDA3C520C2> /usr/lib/system/libsystem_networkextension.dylib
       0x19be7e000 -        0x19be7ffff  libenergytrace.dylib (23) <4CA65183-D0EA-3F3E-87C0-321ABB7D128C> /usr/lib/libenergytrace.dylib
       0x19be80000 -        0x19bed4fc2  libMobileGestalt.dylib (1073.40.13) <7594925E-99E0-3DA1-8ACB-26219F08327D> /usr/lib/libMobileGestalt.dylib
       0x19bed5000 -        0x19beecff3  libsystem_asl.dylib (390) <3850E69C-517A-3D5B-B499-0089C59A07AA> /usr/lib/system/libsystem_asl.dylib
       0x19beed000 -        0x19bf08ff1  com.apple.TCC (1.0 - 1)  /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
       0x19d233000 -        0x19d3e0fff  libsqlite3.dylib (329) <754FD748-C467-3A3E-89C9-CBE9A6E5F88D> /usr/lib/libsqlite3.dylib
       0x19d590000 -        0x19d601ff3  com.apple.AE (924 - 924)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
       0x19d602000 -        0x19d60aff8  libdns_services.dylib (1556.40.29)  /usr/lib/libdns_services.dylib
       0x19d60b000 -        0x19d613fff  libsystem_symptoms.dylib (1617)  /usr/lib/system/libsystem_symptoms.dylib
       0x19d7af000 -        0x19d7deff7  com.apple.analyticsd (1.0 - 1)  /System/Library/PrivateFrameworks/CoreAnalytics.framework/Versions/A/CoreAnalytics
       0x19d7df000 -        0x19d7e1fff  libDiagnosticMessagesClient.dylib (112)  /usr/lib/libDiagnosticMessagesClient.dylib
       0x19d7e2000 -        0x19d831ff4  com.apple.spotlight.metadata.utilities (1.0 - 2183.3)  /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
       0x19d832000 -        0x19d8cefff  com.apple.Metadata (10.7.0 - 2183.3) <36F45D8F-6B68-38F6-AF14-F28DF6AEE878> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
       0x19d8cf000 -        0x19d8d6ff7  com.apple.DiskArbitration (2.7 - 2.7) <3ACD0480-6010-3C0E-8A7D-71CB7F960424> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
       0x19d8d7000 -        0x19dc3bfc7  com.apple.vImage (8.1 - 555)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
       0x19e1ce000 -        0x19e1ddff9  com.apple.OpenDirectory (12.0 - 233)  /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
       0x19e1de000 -        0x19e1fdfff  com.apple.CFOpenDirectory (12.0 - 233) <0A9AD811-7581-3FB5-95FE-E11DBF7DBF87> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
       0x19e1fe000 -        0x19e20afff  com.apple.CoreServices.FSEvents (1325.0.7 - 1325.0.7) <8FFAB5BB-92A8-3CAA-A9D9-BFFB3C011B34> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
       0x19e20b000 -        0x19e231ffb  com.apple.coreservices.SharedFileList (155 - 155) <905295E1-4055-3120-93C4-DE8313611724> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
       0x19e232000 -        0x19e234ffb  libapp_launch_measurement.dylib (16) <64CC6907-E3BE-36B4-9F9A-CC2937455855> /usr/lib/libapp_launch_measurement.dylib
       0x19e235000 -        0x19e27eff5  com.apple.CoreAutoLayout (1.0 - 28)  /System/Library/PrivateFrameworks/CoreAutoLayout.framework/Versions/A/CoreAutoLayout
       0x19e27f000 -        0x19e36bff3  libxml2.2.dylib (35.2) <26A364E6-E45F-3AA8-AFD7-9A6647C5C314> /usr/lib/libxml2.2.dylib
       0x19f56b000 -        0x19f589fff  libsystem_containermanager.dylib (382.40.7) <5CA1332A-182B-3985-BE8E-1427D7D6E55F> /usr/lib/system/libsystem_containermanager.dylib
       0x19f58a000 -        0x19f59dff5  com.apple.IOSurface (302.9 - 302.9) <17C898DA-A756-3229-8DDE-0F845FDB7C79> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
       0x1a02e5000 -        0x1a02e9fff  libsystem_configuration.dylib (1163.40.8) <59FFE06C-BDDA-36C9-A041-9C8C3B71BA99> /usr/lib/system/libsystem_configuration.dylib
       0x1a02ea000 -        0x1a02eefff  libsystem_sandbox.dylib (1656.40.33) <2B1C446C-4AFF-3A8F-804E-9E61837A4711> /usr/lib/system/libsystem_sandbox.dylib
       0x1a02f1000 -        0x1a02f4fff  com.apple.AppleSystemInfo (3.1.5 - 3.1.5) <134FEC74-3C35-37AB-B5EB-0B00A2851106> /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo
       0x1a02f5000 -        0x1a02f6fff  liblangid.dylib (136) <53214959-D1EC-316F-A146-A027E5E18FE3> /usr/lib/liblangid.dylib
       0x1a02f7000 -        0x1a03e5ff7  com.apple.CoreNLP (1.0 - 273)  /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
       0x1a03e6000 -        0x1a03edffe  com.apple.LinguisticData (1.0 - 399) <3D9EBCE6-4419-334B-BF05-04909C859077> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
       0x1a03ee000 -        0x1a09d3f9f  libBNNS.dylib (403.40.5)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
       0x1a09d4000 -        0x1a0ab6f53  libvDSP.dylib (794.40.2) <57C003FC-8A79-3DF3-A8E8-2A37609D010E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
       0x1a0ab7000 -        0x1a0ac9ff9  com.apple.CoreEmoji (1.0 - 142) <1937C2EB-7DA8-3363-83B8-3A948E40F94A> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
       0x1a0aca000 -        0x1a0ad5ff3  com.apple.IOMobileFramebuffer (343.0.0 - 343.0.0) <8C8496F7-829F-3042-81E1-BEBF4CA7FB30> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/Versions/A/IOMobileFramebuffer
       0x1a0de3000 -        0x1a0e76ff8  com.apple.securityfoundation (6.0 - 55253)  /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
       0x1a0e77000 -        0x1a0e81fff  com.apple.coreservices.BackgroundTaskManagement (1.0 - 104) <12AAB84A-1FA4-3F8A-B215-6ECC8846CF4F> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
       0x1a0e88000 -        0x1a0e8afff  libquarantine.dylib (133)  /usr/lib/system/libquarantine.dylib
       0x1a0e8b000 -        0x1a0e9afff  libCheckFix.dylib (31)  /usr/lib/libCheckFix.dylib
       0x1a0e9b000 -        0x1a0eb1fff  libcoretls.dylib (173) <3CA73AB2-1A8F-3DD1-9D6B-7B148763C7E9> /usr/lib/libcoretls.dylib
       0x1a0eb2000 -        0x1a0ec2ff7  libbsm.0.dylib (73) <0642C65C-166B-37B0-87FD-B1E1E7F7C0CE> /usr/lib/libbsm.0.dylib
       0x1a0ec3000 -        0x1a0f20ff3  libmecab.dylib (972) <307B6432-6C30-37AF-9396-885E7243993A> /usr/lib/libmecab.dylib
       0x1a0f21000 -        0x1a0f23ffb  libgermantok.dylib (29) <824FED24-ECE1-343F-94C1-466D7D133CB8> /usr/lib/libgermantok.dylib
       0x1a0f24000 -        0x1a0f38ff3  libLinearAlgebra.dylib (1381.40.2) <1679C756-0C25-3AF4-A189-AA47423049F0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
       0x1a14c8000 -        0x1a14d8fdf  com.apple.AppleFSCompression (132 - 1.0) <847812BE-2370-3D74-85A4-0A48D54C6A3A> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
       0x1a14d9000 -        0x1a14e5ff7  libbz2.1.0.dylib (45) <4D68E02D-86B5-3240-8367-03C22F37A50B> /usr/lib/libbz2.1.0.dylib
       0x1a14e6000 -        0x1a14ebfff  libsystem_coreservices.dylib (133) <26E69B46-69B9-39F2-8A7D-E313CD40D92A> /usr/lib/system/libsystem_coreservices.dylib
       0x1a14ec000 -        0x1a151effb  com.apple.CoreServices.OSServices (1141.1 - 1141.1) <10010668-43AF-388E-B3D2-BA530732DCD1> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
       0x1a1732000 -        0x1a1743ff3  libz.1.dylib (77)  /usr/lib/libz.1.dylib
       0x1a1744000 -        0x1a177affb  libsystem_m.dylib (3204) <15B61131-14E1-31F2-9219-D2F7823A5167> /usr/lib/system/libsystem_m.dylib
       0x1a177b000 -        0x1a177bfff  libcharset.1.dylib (61)  /usr/lib/libcharset.1.dylib
       0x1a177c000 -        0x1a1781ffb  libmacho.dylib (987) <101C5B57-4D8A-3D41-874D-BAA93E509A24> /usr/lib/system/libmacho.dylib
       0x1a1782000 -        0x1a1799fff  libkxld.dylib (8019.41.5)  /usr/lib/system/libkxld.dylib
       0x1a179a000 -        0x1a17a6fff  libcommonCrypto.dylib (60190)  /usr/lib/system/libcommonCrypto.dylib
       0x1a17a7000 -        0x1a17b1fff  libunwind.dylib (201)  /usr/lib/system/libunwind.dylib
       0x1a17b2000 -        0x1a17b9ffb  liboah.dylib (254.5.3) <68C75153-A8BE-30D0-836B-EBE68EC4C799> /usr/lib/liboah.dylib
       0x1a17ba000 -        0x1a17c2ff3  libcopyfile.dylib (179.40.2)  /usr/lib/system/libcopyfile.dylib
       0x1a17c3000 -        0x1a17c6fff  libcompiler_rt.dylib (102.2)  /usr/lib/system/libcompiler_rt.dylib
       0x1a17c7000 -        0x1a17cbfff  libsystem_collections.dylib (1506.40.4) <1993E331-8148-3E74-9825-80AB4C03250D> /usr/lib/system/libsystem_collections.dylib
       0x1a17cc000 -        0x1a17ceffb  libsystem_secinit.dylib (106.40.3) <1278BAD2-1DE2-39F7-8C27-53A96B166765> /usr/lib/system/libsystem_secinit.dylib
       0x1a17cf000 -        0x1a17d1fff  libremovefile.dylib (60) <9E81013E-9AF4-3DEB-9BC3-E26539DCAEED> /usr/lib/system/libremovefile.dylib
       0x1a17d2000 -        0x1a17d2fff  libkeymgr.dylib (31) <687A89E7-1D7D-36CB-9CE9-71A95577EFAC> /usr/lib/system/libkeymgr.dylib
       0x1a17d3000 -        0x1a17dbff7  libsystem_dnssd.dylib (1556.40.29) <1A3F09C0-6756-3476-BD9B-07FA2ED12972> /usr/lib/system/libsystem_dnssd.dylib
       0x1a17dc000 -        0x1a17e1ff7  libcache.dylib (85)  /usr/lib/system/libcache.dylib
       0x1a17e2000 -        0x1a17e3ff3  libSystem.B.dylib (1311) <640FE593-770B-3A1A-96EA-511241755F4E> /usr/lib/libSystem.B.dylib
       0x1a17e4000 -        0x1a17e7ffb  libfakelink.dylib (4)  /usr/lib/libfakelink.dylib
       0x1a17e8000 -        0x1a17e8ffb  com.apple.SoftLinking (1.0 - 42) <8D8852B5-1172-3A25-AE3D-EE7B676A733D> /System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking
       0x1a17e9000 -        0x1a1825ff7  libpcap.A.dylib (108) <9B56955C-5B0E-3095-87F1-0CD3D92D434E> /usr/lib/libpcap.A.dylib
       0x1a1826000 -        0x1a1918ff3  libiconv.2.dylib (61) <7FD5E4B8-A118-3E08-B92C-DACD2494B351> /usr/lib/libiconv.2.dylib
       0x1a1919000 -        0x1a192aff3  libcmph.dylib (8)  /usr/lib/libcmph.dylib
       0x1a192b000 -        0x1a19afffb  libarchive.2.dylib (101) <82F6391E-4B77-3195-97CF-0ACE72D56796> /usr/lib/libarchive.2.dylib
       0x1a19b0000 -        0x1a1a26fff  com.apple.SearchKit (1.4.1 - 1.4.1) <025F55FB-AFA7-3EA5-9A57-5B93003A56B9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
       0x1a1a27000 -        0x1a1a28ff3  libThaiTokenizer.dylib (10) <4F8C8036-F3E0-372C-81E7-EB84685DE4F0> /usr/lib/libThaiTokenizer.dylib
       0x1a1a29000 -        0x1a1a4dff7  com.apple.applesauce (1.0 - 16.34)  /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce
       0x1a1a4e000 -        0x1a1a65ffb  libapple_nghttp2.dylib (1.42)  /usr/lib/libapple_nghttp2.dylib
       0x1a1a66000 -        0x1a1a78ff7  libSparseBLAS.dylib (1381.40.2) <12E0E612-78DF-339E-B123-46B48378340D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
       0x1a1a7b000 -        0x1a1a7ffff  libpam.2.dylib (29) <90B0E4ED-4D80-3570-B47B-FD7B7DB41A78> /usr/lib/libpam.2.dylib
       0x1a1a80000 -        0x1a1b49fcb  libcompression.dylib (125)  /usr/lib/libcompression.dylib
       0x1a1b4a000 -        0x1a1b4effb  libQuadrature.dylib (7)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
       0x1a1b4f000 -        0x1a200efd7  libLAPACK.dylib (1381.40.2) <51D07D7E-5644-3E6C-871C-3A0D583B9EEC> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
       0x1a200f000 -        0x1a2065ffe  com.apple.DictionaryServices (1.2 - 350)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
       0x1a2066000 -        0x1a207efff  liblzma.5.dylib (16) <223268BE-BDD4-35F1-94F3-E81ADCB8DAFC> /usr/lib/liblzma.5.dylib
       0x1a207f000 -        0x1a2080ffb  libcoretls_cfhelpers.dylib (173)  /usr/lib/libcoretls_cfhelpers.dylib
       0x1a2081000 -        0x1a20e6ffb  com.apple.APFS (1933.41.2 - 1933.41.2)  /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
       0x1a20e7000 -        0x1a20f4fff  libxar.1.dylib (482)  /usr/lib/libxar.1.dylib
       0x1a20f5000 -        0x1a20f8ff3  libutil.dylib (60)  /usr/lib/libutil.dylib
       0x1a20f9000 -        0x1a2122ff7  libxslt.1.dylib (18.3) <079F3D23-A049-3191-8EFC-1602D1904E3A> /usr/lib/libxslt.1.dylib
       0x1a2123000 -        0x1a212afff  libChineseTokenizer.dylib (40)  /usr/lib/libChineseTokenizer.dylib
       0x1a212b000 -        0x1a219dff3  libvMisc.dylib (794.40.2)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
       0x1a79af000 -        0x1a79affff  libsystem_product_info_filter.dylib (10)  /usr/lib/system/libsystem_product_info_filter.dylib
       0x1a7aa7000 -        0x1a7aa7fff  com.apple.Accelerate.vecLib (3.11 - vecLib 3.11)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
       0x1a7ad0000 -        0x1a7ad0fff  com.apple.CoreServices (1141.1 - 1141.1) <3C259251-CC6E-31FC-A865-375A54DEAB10> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
       0x1a7d22000 -        0x1a7d22fff  com.apple.Accelerate (1.11 - Accelerate 1.11) <38F313F1-7514-38CA-8358-FD0399B54FD2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
       0x21365c000 -        0x213667ff7  libCoreEntitlements.dylib (16)  /usr/lib/libCoreEntitlements.dylib
Sample analysis of process 49308 written to file /dev/stdout

Hang up 2

Same here, different stacktrace.

lldb stacktrace
(lldb) process attach --pid 52114
warning: (arm64) /private/var/folders/sp/fyc644ws6wgb3_zh332vy1bh0000gn/T/go-build938459180/b367/bdd.test(0x0000000104b68000) address 0x0000000104b68000 maps to more than one section: bdd.test.__TEXT and bdd.test.__TEXT
warning: (arm64) /private/var/folders/sp/fyc644ws6wgb3_zh332vy1bh0000gn/T/go-build938459180/b367/bdd.test(0x0000000104b68000) address 0x0000000105134000 maps to more than one section: bdd.test.__DATA_CONST and bdd.test.__DATA_CONST
warning: (arm64) /private/var/folders/sp/fyc644ws6wgb3_zh332vy1bh0000gn/T/go-build938459180/b367/bdd.test(0x0000000104b68000) address 0x00000001053e8000 maps to more than one section: bdd.test.__DATA and bdd.test.__DATA
Process 52114 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x104d64e0c)
    frame #0: 0x0000000196bd9938 libobjc.A.dylib`_setThisThreadIsInitializingClass(objc_class*) + 176
libobjc.A.dylib`_setThisThreadIsInitializingClass:
->  0x196bd9938 <+176>: str    w9, [x19]
    0x196bd993c <+180>: sbfiz  x1, x9, #3, #32
    0x196bd9940 <+184>: bl     0x196bff5b4               ; symbol stub for: realloc
    0x196bd9944 <+188>: str    x0, [x19, #0x8]
Target 0: (bdd.test) stopped.

Executable module set to "/private/var/folders/sp/fyc644ws6wgb3_zh332vy1bh0000gn/T/go-build938459180/b367/bdd.test".
Architecture set to: arm64e-apple-macosx-.
(lldb) thread list
Process 52114 stopped
* thread #1: tid = 0x6ce87, 0x0000000196bd9938 libobjc.A.dylib`_setThisThreadIsInitializingClass(objc_class*) + 176, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x104d64e0c)
(lldb) thread backtrace
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x104d64e0c)
  * frame #0: 0x0000000196bd9938 libobjc.A.dylib`_setThisThreadIsInitializingClass(objc_class*) + 176
    frame #1: 0x0000000196bd9680 libobjc.A.dylib`initializeNonMetaClass + 644
    frame #2: 0x0000000196bd9490 libobjc.A.dylib`initializeNonMetaClass + 148
    frame #3: 0x0000000196bd9490 libobjc.A.dylib`initializeNonMetaClass + 148
    frame #4: 0x0000000196bd9048 libobjc.A.dylib`initializeAndMaybeRelock(objc_class*, objc_object*, mutex_tt&, bool) + 156
    frame #5: 0x0000000196bd8dfc libobjc.A.dylib`lookUpImpOrForward + 1016
    frame #6: 0x0000000196bd8724 libobjc.A.dylib`_objc_msgSend_uncached + 68
    frame #7: 0x0000000196ab6a04 libxpc.dylib`xpc_atfork_child + 136
    frame #8: 0x00000001a17e3ab8 libSystem.B.dylib`libSystem_atfork_child + 64
    frame #9: 0x0000000196c37fe4 libsystem_c.dylib`fork + 112
    frame #10: 0x0000000104c0ccbc bdd.test`runtime.syscall + 44
    frame #11: 0x0000000104c0b18c bdd.test`runtime.asmcgocall.abi0 + 124

I'll see if I can make a repro, although it may take a while, I don't have much experience debugging such things.

cherrymui commented 2 years ago

Are you using macOS 12? And are you using the race detector? The failure looks like #49138

Try setting environment variable MallocNanoZone=0.

ikolombet commented 2 years ago

You're right, this is most likely a duplicate of #49138. I was indeed using the race detector and MallocNanoZone=0 does help. Thanks!