Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler crash #3874

Closed
rockwotj opened this issue Aug 18, 2023 · 10 comments
Closed

Compiler crash #3874

rockwotj opened this issue Aug 18, 2023 · 10 comments
Labels
bug Something isn't working core

Comments

@rockwotj
Copy link
Contributor

We had a compiler crash during a CI run, however it's the only time this has happened, so maybe the stacktrace is helpful, but note this is likely some race condition somewhere, as this generally doesn't happen.

/vectorized/bin/tinygo build -o /var/lib/buildkite-agent/builds/buildkite-amd64-builders-i-045ec208102639ae1-1/redpanda/redpanda/vbuild/release/clang/src/go/transform-sdk/internal/testdata/wasi.wasm -target wasi wasi/transform.go
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x5e62a2d]
runtime stack:
runtime.throw({0x8ebde5?, 0x7fb81d489fc0?})
/usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0x7fb822e822f0 sp=0x7fb822e822c0 pc=0x255b0fd
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:825 +0x3e9 fp=0x7fb822e82350 sp=0x7fb822e822f0 pc=0x25723a9
goroutine 152 [syscall]:
runtime.cgocall(0x28e2670, 0xc005183b30)
/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc005183b08 sp=0xc005183ad0 pc=0x252a89c
tinygo.org/x/go-llvm._Cfunc_LLVMVerifyModule(0x7fb8258b0330, 0x1, 0xc006104130)
_cgo_gotypes.go:9315 +0x4c fp=0xc005183b30 sp=0xc005183b08 pc=0x276292c
tinygo.org/x/go-llvm.VerifyModule.func1({0x276a93f?}, 0x258b0330?, 0x7fb82503b610?)
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/analysis.go:38 +0x7d fp=0xc005183b78 sp=0xc005183b30 pc=0x2762e5d
tinygo.org/x/go-llvm.VerifyModule({0xc00043c446?}, 0x53?)
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/analysis.go:38 +0x45 fp=0xc005183bd0 sp=0xc005183b78 pc=0x2762d25
github.com/tinygo-org/tinygo/builder.Build.func3(0xc003fa6480)
/home/rockwood/Workspace/tinygo/builder/build.go:363 +0x397 fp=0xc005183f78 sp=0xc005183bd0 pc=0x28677b7
github.com/tinygo-org/tinygo/builder.runJob(0xc003fa6480, 0x0?)
/home/rockwood/Workspace/tinygo/builder/jobs.go:222 +0x4f fp=0xc005183fc0 sp=0xc005183f78 pc=0x2873a4f
github.com/tinygo-org/tinygo/builder.runJobs.func2()
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x2a fp=0xc005183fe0 sp=0xc005183fc0 pc=0x287338a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc005183fe8 sp=0xc005183fe0 pc=0x258d8a1
created by github.com/tinygo-org/tinygo/builder.runJobs
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x5be
goroutine 1 [chan receive]:
runtime.gopark(0xc0005caae0?, 0xc0047441e0?, 0xa0?, 0xd9?, 0xc0050f65f0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0050f6580 sp=0xc0050f6560 pc=0x255de56
runtime.chanrecv(0xc0014781e0, 0xc0050f6738, 0x1)
/usr/local/go/src/runtime/chan.go:583 +0x49d fp=0xc0050f6610 sp=0xc0050f6580 pc=0x252d65d
runtime.chanrecv1(0x8713c0?, 0xc003faea20?)
/usr/local/go/src/runtime/chan.go:442 +0x18 fp=0xc0050f6638 sp=0xc0050f6610 pc=0x252d158
github.com/tinygo-org/tinygo/builder.runJobs(0xc0012bde30?, 0xc003f63118?)
/home/rockwood/Workspace/tinygo/builder/jobs.go:132 +0x5e7 fp=0xc0050f6a30 sp=0xc0050f6638 pc=0x2872fe7
github.com/tinygo-org/tinygo/builder.Build({0x7fff5a45840c, 0x11}, {0x7fff5a458358, 0xa6}, {0xc00002e6d8, 0x15}, 0xc0001182d0)
/home/rockwood/Workspace/tinygo/builder/build.go:877 +0x369a fp=0xc0050f7538 sp=0xc0050f6a30 pc=0x286333a
main.Build({0x7fff5a45840c, 0x11}, {0x7fff5a458358, 0xa6}, 0xc0001161e0)
/home/rockwood/Workspace/tinygo/main.go:168 +0x26f fp=0xc0050f77a0 sp=0xc0050f7538 pc=0x288b2af
main.main()
/home/rockwood/Workspace/tinygo/main.go:1573 +0x3588 fp=0xc0050f7f80 sp=0xc0050f77a0 pc=0x2898fa8
runtime.main()
/usr/local/go/src/runtime/proc.go:250 +0x207 fp=0xc0050f7fe0 sp=0xc0050f7f80 pc=0x255da27
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0050f7fe8 sp=0xc0050f7fe0 pc=0x258d8a1
goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000b0fb0 sp=0xc0000b0f90 pc=0x255de56
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:387
runtime.forcegchelper()
/usr/local/go/src/runtime/proc.go:305 +0xb0 fp=0xc0000b0fe0 sp=0xc0000b0fb0 pc=0x255dc90
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000b0fe8 sp=0xc0000b0fe0 pc=0x258d8a1
created by runtime.init.6
/usr/local/go/src/runtime/proc.go:293 +0x25
goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000b1780 sp=0xc0000b1760 pc=0x255de56
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:387
runtime.bgsweep(0x0?)
/usr/local/go/src/runtime/mgcsweep.go:319 +0xde fp=0xc0000b17c8 sp=0xc0000b1780 pc=0x254a5fe
runtime.gcenable.func1()
/usr/local/go/src/runtime/mgc.go:178 +0x26 fp=0xc0000b17e0 sp=0xc0000b17c8 pc=0x253fa66
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000b17e8 sp=0xc0000b17e0 pc=0x258d8a1
created by runtime.gcenable
/usr/local/go/src/runtime/mgc.go:178 +0x6b
goroutine 4 [GC scavenge wait]:
runtime.gopark(0xc0000da000?, 0x952d00?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000b1f70 sp=0xc0000b1f50 pc=0x255de56
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:387
runtime.(*scavengerState).park(0x6810340)
/usr/local/go/src/runtime/mgcscavenge.go:400 +0x53 fp=0xc0000b1fa0 sp=0xc0000b1f70 pc=0x25484d3
runtime.bgscavenge(0x0?)
/usr/local/go/src/runtime/mgcscavenge.go:633 +0x65 fp=0xc0000b1fc8 sp=0xc0000b1fa0 pc=0x2548ac5
runtime.gcenable.func2()
/usr/local/go/src/runtime/mgc.go:179 +0x26 fp=0xc0000b1fe0 sp=0xc0000b1fc8 pc=0x253fa06
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000b1fe8 sp=0xc0000b1fe0 pc=0x258d8a1
created by runtime.gcenable
/usr/local/go/src/runtime/mgc.go:179 +0xaa
goroutine 5 [finalizer wait]:
runtime.gopark(0x0?, 0x8f5b00?, 0x0?, 0x80?, 0x2000000020?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000b0628 sp=0xc0000b0608 pc=0x255de56
runtime.runfinq()
/usr/local/go/src/runtime/mfinal.go:193 +0x107 fp=0xc0000b07e0 sp=0xc0000b0628 pc=0x253eaa7
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000b07e8 sp=0xc0000b07e0 pc=0x258d8a1
created by runtime.createfing
/usr/local/go/src/runtime/mfinal.go:163 +0x45
goroutine 19 [GC worker (idle)]:
runtime.gopark(0x26f77b2?, 0x0?, 0x0?, 0x0?, 0xc000320720?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000ac750 sp=0xc0000ac730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0000ac7e0 sp=0xc0000ac750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000ac7e8 sp=0xc0000ac7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 6 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000b2750 sp=0xc0000b2730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0000b27e0 sp=0xc0000b2750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000b27e8 sp=0xc0000b27e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 7 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000b2f50 sp=0xc0000b2f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0000b2fe0 sp=0xc0000b2f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000b2fe8 sp=0xc0000b2fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 8 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000b3750 sp=0xc0000b3730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0000b37e0 sp=0xc0000b3750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000b37e8 sp=0xc0000b37e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 9 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0000b3f50 sp=0xc0000b3f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0000b3fe0 sp=0xc0000b3f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000b3fe8 sp=0xc0000b3fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 10 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000484750 sp=0xc000484730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004847e0 sp=0xc000484750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004847e8 sp=0xc0004847e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 11 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000484f50 sp=0xc000484f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000484fe0 sp=0xc000484f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000484fe8 sp=0xc000484fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 12 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000485750 sp=0xc000485730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004857e0 sp=0xc000485750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004857e8 sp=0xc0004857e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 13 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000485f50 sp=0xc000485f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000485fe0 sp=0xc000485f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000485fe8 sp=0xc000485fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 14 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000486750 sp=0xc000486730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004867e0 sp=0xc000486750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004867e8 sp=0xc0004867e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 15 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000486f50 sp=0xc000486f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000486fe0 sp=0xc000486f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000486fe8 sp=0xc000486fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 16 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000487750 sp=0xc000487730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004877e0 sp=0xc000487750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004877e8 sp=0xc0004877e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 34 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000487f50 sp=0xc000487f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000487fe0 sp=0xc000487f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000487fe8 sp=0xc000487fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 35 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000480750 sp=0xc000480730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004807e0 sp=0xc000480750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004807e8 sp=0xc0004807e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 36 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000480f50 sp=0xc000480f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000480fe0 sp=0xc000480f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000480fe8 sp=0xc000480fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 37 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000481750 sp=0xc000481730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004817e0 sp=0xc000481750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004817e8 sp=0xc0004817e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 38 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000481f50 sp=0xc000481f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000481fe0 sp=0xc000481f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000481fe8 sp=0xc000481fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 39 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000482750 sp=0xc000482730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004827e0 sp=0xc000482750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004827e8 sp=0xc0004827e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 40 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000482f50 sp=0xc000482f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000482fe0 sp=0xc000482f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000482fe8 sp=0xc000482fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 41 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000483750 sp=0xc000483730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004837e0 sp=0xc000483750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004837e8 sp=0xc0004837e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 42 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000483f50 sp=0xc000483f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000483fe0 sp=0xc000483f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000483fe8 sp=0xc000483fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 43 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048e750 sp=0xc00048e730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048e7e0 sp=0xc00048e750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048e7e8 sp=0xc00048e7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 44 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048ef50 sp=0xc00048ef30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048efe0 sp=0xc00048ef50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048efe8 sp=0xc00048efe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 45 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048f750 sp=0xc00048f730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048f7e0 sp=0xc00048f750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048f7e8 sp=0xc00048f7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 46 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048ff50 sp=0xc00048ff30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048ffe0 sp=0xc00048ff50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048ffe8 sp=0xc00048ffe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 47 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000490750 sp=0xc000490730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004907e0 sp=0xc000490750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004907e8 sp=0xc0004907e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 48 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000490f50 sp=0xc000490f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000490fe0 sp=0xc000490f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000490fe8 sp=0xc000490fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 49 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000491750 sp=0xc000491730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004917e0 sp=0xc000491750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004917e8 sp=0xc0004917e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 50 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000491f50 sp=0xc000491f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000491fe0 sp=0xc000491f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000491fe8 sp=0xc000491fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 51 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048a750 sp=0xc00048a730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048a7e0 sp=0xc00048a750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048a7e8 sp=0xc00048a7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 52 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048af50 sp=0xc00048af30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048afe0 sp=0xc00048af50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048afe8 sp=0xc00048afe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 53 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048b750 sp=0xc00048b730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048b7e0 sp=0xc00048b750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048b7e8 sp=0xc00048b7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 54 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048bf50 sp=0xc00048bf30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048bfe0 sp=0xc00048bf50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048bfe8 sp=0xc00048bfe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 55 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048c750 sp=0xc00048c730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048c7e0 sp=0xc00048c750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048c7e8 sp=0xc00048c7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 56 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048cf50 sp=0xc00048cf30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048cfe0 sp=0xc00048cf50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048cfe8 sp=0xc00048cfe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 57 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048d750 sp=0xc00048d730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048d7e0 sp=0xc00048d750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048d7e8 sp=0xc00048d7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 58 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00048df50 sp=0xc00048df30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00048dfe0 sp=0xc00048df50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00048dfe8 sp=0xc00048dfe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 59 [GC worker (idle)]:
runtime.gopark(0x68a8640?, 0x1?, 0x3a?, 0x48?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000498750 sp=0xc000498730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004987e0 sp=0xc000498750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004987e8 sp=0xc0004987e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 60 [GC worker (idle)]:
runtime.gopark(0x2b07ede1a99?, 0x1?, 0x89?, 0xe4?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000498f50 sp=0xc000498f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000498fe0 sp=0xc000498f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000498fe8 sp=0xc000498fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 61 [GC worker (idle)]:
runtime.gopark(0x68a8640?, 0x1?, 0xb4?, 0x8a?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000499750 sp=0xc000499730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004997e0 sp=0xc000499750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004997e8 sp=0xc0004997e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 62 [GC worker (idle)]:
runtime.gopark(0x68a8640?, 0x1?, 0x41?, 0x7d?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000499f50 sp=0xc000499f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000499fe0 sp=0xc000499f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000499fe8 sp=0xc000499fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 63 [GC worker (idle)]:
runtime.gopark(0x68a8640?, 0x1?, 0x25?, 0x9c?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00049a750 sp=0xc00049a730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00049a7e0 sp=0xc00049a750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00049a7e8 sp=0xc00049a7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 64 [GC worker (idle)]:
runtime.gopark(0x68a8640?, 0x1?, 0x3?, 0x9d?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00049af50 sp=0xc00049af30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00049afe0 sp=0xc00049af50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00049afe8 sp=0xc00049afe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 65 [GC worker (idle)]:
runtime.gopark(0x68a8640?, 0x1?, 0xf8?, 0x48?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00049b750 sp=0xc00049b730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00049b7e0 sp=0xc00049b750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00049b7e8 sp=0xc00049b7e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 66 [GC worker (idle)]:
runtime.gopark(0x2b07ec1e3c9?, 0x1?, 0x5a?, 0x83?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc00049bf50 sp=0xc00049bf30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00049bfe0 sp=0xc00049bf50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00049bfe8 sp=0xc00049bfe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 67 [GC worker (idle)]:
runtime.gopark(0x2b07ec5e395?, 0x1?, 0x4a?, 0x48?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000494750 sp=0xc000494730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004947e0 sp=0xc000494750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004947e8 sp=0xc0004947e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 68 [GC worker (idle)]:
runtime.gopark(0x68a8640?, 0x1?, 0x3a?, 0xed?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000494f50 sp=0xc000494f30 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000494fe0 sp=0xc000494f50 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000494fe8 sp=0xc000494fe0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 69 [GC worker (idle)]:
runtime.gopark(0x68a8640?, 0x1?, 0x4?, 0x43?, 0x0?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000495750 sp=0xc000495730 pc=0x255de56
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0004957e0 sp=0xc000495750 pc=0x25415d1
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004957e8 sp=0xc0004957e0 pc=0x258d8a1
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1199 +0x25
goroutine 79 [runnable]:
runtime.cgocall(0x28e25f0, 0xc0040f3070)
/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc0040f3048 sp=0xc0040f3010 pc=0x252a89c
tinygo.org/x/go-llvm._cgo_cmalloc(0x11)
_cgo_gotypes.go:9452 +0x49 fp=0xc0040f3070 sp=0xc0040f3048 pc=0x2762c89
tinygo.org/x/go-llvm._Cfunc_CString({0xc0070b4c40, 0x10})
_cgo_gotypes.go:561 +0x45 fp=0xc0040f30c8 sp=0xc0040f3070 pc=0x2750d85
tinygo.org/x/go-llvm.Module.NamedFunction({0x0?}, {0xc0070b4c40?, 0x0?})
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/ir.go:1119 +0x47 fp=0xc0040f3110 sp=0xc0040f30c8 pc=0x27719c7
github.com/tinygo-org/tinygo/compiler.(*compilerContext).getFunction(0xc00041c140, 0xc003ed7680)
/home/rockwood/Workspace/tinygo/compiler/symbol.go:71 +0x85 fp=0xc0040f32f0 sp=0xc0040f3110 pc=0x281e565
github.com/tinygo-org/tinygo/compiler.(*builder).createRuntimeCallCommon(0xc004b64600, {0x8d4f40, 0x8}, {0x0, 0x0, 0x0}, {0x0, 0x0}, 0x0)
/home/rockwood/Workspace/tinygo/compiler/calls.go:40 +0xdb fp=0xc0040f3360 sp=0xc0040f32f0 pc=0x27eb07b
github.com/tinygo-org/tinygo/compiler.(*builder).createRuntimeCall(...)
/home/rockwood/Workspace/tinygo/compiler/calls.go:54
github.com/tinygo-org/tinygo/compiler.(*builder).createRuntimeAssert(0xc004b64600, {0x7fb81d0af6e0?}, {0x8d374d, 0x5}, {0x8d4f40, 0x8})
/home/rockwood/Workspace/tinygo/compiler/asserts.go:255 +0x19f fp=0xc0040f3420 sp=0xc0040f3360 pc=0x27e9c3f
github.com/tinygo-org/tinygo/compiler.(*builder).createNilCheck(0xc004b64600, {0x95a480?, 0xc004489500}, {0x7fb81fc10430?}, {0x8d374d, 0x5})
/home/rockwood/Workspace/tinygo/compiler/asserts.go:202 +0x151 fp=0xc0040f3470 sp=0xc0040f3420 pc=0x27e98b1
github.com/tinygo-org/tinygo/compiler.(*builder).createInstruction(0xc004b64600, {0x95b008?, 0xc00448ccf0?})
/home/rockwood/Workspace/tinygo/compiler/compiler.go:1532 +0x82e fp=0xc0040f35b8 sp=0xc0040f3470 pc=0x27f856e
github.com/tinygo-org/tinygo/compiler.(*builder).createFunction(0xc004b64600)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:1349 +0xaa5 fp=0xc0040f37c0 sp=0xc0040f35b8 pc=0x27f7a65
github.com/tinygo-org/tinygo/compiler.(*compilerContext).createPackage(0xc00041c140, {0xc003ed0900?}, 0xc000f03f00)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:865 +0x345 fp=0xc0040f3a28 sp=0xc0040f37c0 pc=0x27f3a05
github.com/tinygo-org/tinygo/compiler.CompilePackage({0xc00031bad0?, 0x53?}, 0xc0003f5a40, 0xc000f03f00, {0x7fb82626b758?}, 0x8d2d62?, 0x40?)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:312 +0x459 fp=0xc0040f3bd0 sp=0xc0040f3a28 pc=0x27ef479
github.com/tinygo-org/tinygo/builder.Build.func3(0xc003d37620)
/home/rockwood/Workspace/tinygo/builder/build.go:357 +0x20e fp=0xc0040f3f78 sp=0xc0040f3bd0 pc=0x286762e
github.com/tinygo-org/tinygo/builder.runJob(0xc003d37620, 0x0?)
/home/rockwood/Workspace/tinygo/builder/jobs.go:222 +0x4f fp=0xc0040f3fc0 sp=0xc0040f3f78 pc=0x2873a4f
github.com/tinygo-org/tinygo/builder.runJobs.func2()
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x2a fp=0xc0040f3fe0 sp=0xc0040f3fc0 pc=0x287338a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0040f3fe8 sp=0xc0040f3fe0 pc=0x258d8a1
created by github.com/tinygo-org/tinygo/builder.runJobs
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x5be
goroutine 150 [syscall]:
runtime.cgocall(0x28e27d0, 0xc00499db70)
/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc00499db48 sp=0xc00499db10 pc=0x252a89c
tinygo.org/x/go-llvm._Cfunc_LLVMWriteBitcodeToFD(0x7fb825015010, 0x3, 0x0, 0x0)
_cgo_gotypes.go:9381 +0x4c fp=0xc00499db70 sp=0xc00499db48 pc=0x2762acc
tinygo.org/x/go-llvm.WriteBitcodeToFile.func1({0xc0014797a0?}, 0x0?)
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/bitwriter.go:27 +0x92 fp=0xc00499dbb0 sp=0xc00499db70 pc=0x2763792
tinygo.org/x/go-llvm.WriteBitcodeToFile({0xc0014797a0?}, 0xc0070a7ce0?)
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/bitwriter.go:27 +0x19 fp=0xc00499dbd0 sp=0xc00499dbb0 pc=0x27636b9
github.com/tinygo-org/tinygo/builder.Build.func3(0xc003fa63c0)
/home/rockwood/Workspace/tinygo/builder/build.go:466 +0xe46 fp=0xc00499df78 sp=0xc00499dbd0 pc=0x2868266
github.com/tinygo-org/tinygo/builder.runJob(0xc003fa63c0, 0x0?)
/home/rockwood/Workspace/tinygo/builder/jobs.go:222 +0x4f fp=0xc00499dfc0 sp=0xc00499df78 pc=0x2873a4f
github.com/tinygo-org/tinygo/builder.runJobs.func2()
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x2a fp=0xc00499dfe0 sp=0xc00499dfc0 pc=0x287338a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00499dfe8 sp=0xc00499dfe0 pc=0x258d8a1
created by github.com/tinygo-org/tinygo/builder.runJobs
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x5be
goroutine 166 [runnable]:
runtime.cgocall(0x28e2790, 0xc0048390e8)
/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc0048390c0 sp=0xc004839088 pc=0x252a89c
tinygo.org/x/go-llvm._Cfunc_free(0x7fb82503b7b0)
_cgo_gotypes.go:9435 +0x45 fp=0xc0048390e8 sp=0xc0048390c0 pc=0x2762c05
tinygo.org/x/go-llvm.Builder.CreateCall.func1.1()
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/ir.go:1847 +0x3b fp=0xc004839120 sp=0xc0048390e8 pc=0x277cf3b
tinygo.org/x/go-llvm.Builder.CreateCall({0xc009c02600?}, {0xc00108a400?}, {0xc001574000?}, {0xc003d2a000, 0x3, 0x2573916?}, {0x0?, 0x0?})
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/ir.go:1850 +0xc7 fp=0xc004839198 sp=0xc004839120 pc=0x277cca7
github.com/tinygo-org/tinygo/compiler.(*builder).createCall(0xc009c02600, {0xc003ed0900?}, {0x8d7a80?}, {0xc001574000, 0x3, 0x7fb82500a820?}, {0x0, 0x0})
/home/rockwood/Workspace/tinygo/compiler/calls.go:74 +0x18b fp=0xc004839228 sp=0xc004839198 pc=0x27eb50b
github.com/tinygo-org/tinygo/compiler.(*builder).createRuntimeCallCommon(0xc009c02600, {0x8d7a80, 0xc}, {0xc0048392e8, 0x2, 0x2}, {0x0, 0x0}, 0x0)
/home/rockwood/Workspace/tinygo/compiler/calls.go:48 +0x1c9 fp=0xc004839298 sp=0xc004839228 pc=0x27eb169
github.com/tinygo-org/tinygo/compiler.(*builder).createRuntimeCall(...)
/home/rockwood/Workspace/tinygo/compiler/calls.go:54
github.com/tinygo-org/tinygo/compiler.(*builder).trackPointer(0xc009c02600, {0x0?})
/home/rockwood/Workspace/tinygo/compiler/gc.go:87 +0xa5 fp=0xc004839308 sp=0xc004839298 pc=0x280b205
github.com/tinygo-org/tinygo/compiler.(*builder).trackValue(0xc009c02600, {0x0?})
/home/rockwood/Workspace/tinygo/compiler/gc.go:59 +0x85 fp=0xc004839370 sp=0xc004839308 pc=0x280b085
github.com/tinygo-org/tinygo/compiler.(*builder).trackValue(0xc009c02600, {0x2535f46?})
/home/rockwood/Workspace/tinygo/compiler/gc.go:67 +0xdb fp=0xc0048393d8 sp=0xc004839370 pc=0x280b0db
github.com/tinygo-org/tinygo/compiler.(*builder).trackValue(0xc009c02600, {0x88b680?})
/home/rockwood/Workspace/tinygo/compiler/gc.go:67 +0xdb fp=0xc004839440 sp=0xc0048393d8 pc=0x280b0db
github.com/tinygo-org/tinygo/compiler.(*builder).trackExpr(0x872ec0?, {0x95a048?, 0xc00627f880?}, {0xc0048394e0?})
/home/rockwood/Workspace/tinygo/compiler/gc.go:24 +0xba fp=0xc004839470 sp=0xc004839440 pc=0x280af1a
github.com/tinygo-org/tinygo/compiler.(*builder).createInstruction(0xc009c02600, {0x95a000?, 0xc00627f880?})
/home/rockwood/Workspace/tinygo/compiler/compiler.go:1472 +0xc49 fp=0xc0048395b8 sp=0xc004839470 pc=0x27f8989
github.com/tinygo-org/tinygo/compiler.(*builder).createFunction(0xc009c02600)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:1349 +0xaa5 fp=0xc0048397c0 sp=0xc0048395b8 pc=0x27f7a65
github.com/tinygo-org/tinygo/compiler.(*compilerContext).createPackage(0xc004b3c000, {0xc003ed0900?}, 0xc00102cf00)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:865 +0x345 fp=0xc004839a28 sp=0xc0048397c0 pc=0x27f3a05
github.com/tinygo-org/tinygo/compiler.CompilePackage({0xc00043c4f0?, 0x53?}, 0xc00043e1e0, 0xc00102cf00, {0x7fb826321ca8?}, 0x8d2d62?, 0x80?)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:312 +0x459 fp=0xc004839bd0 sp=0xc004839a28 pc=0x27ef479
github.com/tinygo-org/tinygo/builder.Build.func3(0xc003fa6600)
/home/rockwood/Workspace/tinygo/builder/build.go:357 +0x20e fp=0xc004839f78 sp=0xc004839bd0 pc=0x286762e
github.com/tinygo-org/tinygo/builder.runJob(0xc003fa6600, 0x0?)
/home/rockwood/Workspace/tinygo/builder/jobs.go:222 +0x4f fp=0xc004839fc0 sp=0xc004839f78 pc=0x2873a4f
github.com/tinygo-org/tinygo/builder.runJobs.func2()
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x2a fp=0xc004839fe0 sp=0xc004839fc0 pc=0x287338a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc004839fe8 sp=0xc004839fe0 pc=0x258d8a1
created by github.com/tinygo-org/tinygo/builder.runJobs
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x5be
goroutine 33 [runnable]:
runtime.cgocall(0x28e79a0, 0xc005187200)
/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc0051871d8 sp=0xc0051871a0 pc=0x252a89c
tinygo.org/x/go-llvm._Cfunc_LLVMGoSetCurrentDebugLocation(0x7fb820dfebe0, 0x21f, 0x15, 0x7fb81d11dc60, 0x0)
_cgo_gotypes.go:6603 +0x45 fp=0xc005187200 sp=0xc0051871d8 pc=0x275e985
tinygo.org/x/go-llvm.Builder.SetCurrentDebugLocation.func1({0xc000033830?}, 0x21f, 0x15, {0x21f?}, {0x15?})
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/ir.go:1377 +0xb9 fp=0xc005187248 sp=0xc005187200 pc=0x2774d99
tinygo.org/x/go-llvm.Builder.SetCurrentDebugLocation({0xc005187298?}, 0xc80c6?, 0xef0000000277917b?, {0x2?}, {0xc000d25110?})
/home/rockwood/go/pkg/mod/tinygo.org/x/[email protected]/ir.go:1377 +0x19 fp=0xc005187280 sp=0xc005187248 pc=0x2774c79
github.com/tinygo-org/tinygo/compiler.(*builder).setDebugLocation(0xc009834300, 0xc80c6)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:719 +0x10e fp=0xc005187470 sp=0xc005187280 pc=0x27f25ce
github.com/tinygo-org/tinygo/compiler.(*builder).createInstruction(0xc009834300, {0x959f28?, 0xc00665d5e0?})
/home/rockwood/Workspace/tinygo/compiler/compiler.go:1455 +0x8b fp=0xc0051875b8 sp=0xc005187470 pc=0x27f7dcb
github.com/tinygo-org/tinygo/compiler.(*builder).createFunction(0xc009834300)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:1349 +0xaa5 fp=0xc0051877c0 sp=0xc0051875b8 pc=0x27f7a65
github.com/tinygo-org/tinygo/compiler.(*compilerContext).createPackage(0xc003fd8280, {0xc003ed0900?}, 0xc000f92780)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:865 +0x345 fp=0xc005187a28 sp=0xc0051877c0 pc=0x27f3a05
github.com/tinygo-org/tinygo/compiler.CompilePackage({0xc00031bbf4?, 0x53?}, 0xc0004381e0, 0xc000f92780, {0x7fb82621b878?}, 0x8d2d62?, 0x80?)
/home/rockwood/Workspace/tinygo/compiler/compiler.go:312 +0x459 fp=0xc005187bd0 sp=0xc005187a28 pc=0x27ef479
github.com/tinygo-org/tinygo/builder.Build.func3(0xc003d37920)
/home/rockwood/Workspace/tinygo/builder/build.go:357 +0x20e fp=0xc005187f78 sp=0xc005187bd0 pc=0x286762e
github.com/tinygo-org/tinygo/builder.runJob(0xc003d37920, 0x0?)
/home/rockwood/Workspace/tinygo/builder/jobs.go:222 +0x4f fp=0xc005187fc0 sp=0xc005187f78 pc=0x2873a4f
github.com/tinygo-org/tinygo/builder.runJobs.func2()
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x2a fp=0xc005187fe0 sp=0xc005187fc0 pc=0x287338a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc005187fe8 sp=0xc005187fe0 pc=0x258d8a1
created by github.com/tinygo-org/tinygo/builder.runJobs
/home/rockwood/Workspace/tinygo/builder/jobs.go:123 +0x5be
@deadprogram
Copy link
Member

@rockwotj which version of TinyGo is this?

@rockwotj
Copy link
Contributor Author

Sorry it was v0.28.1

@rockwotj
Copy link
Contributor Author

Built from source using the commands to get a statically linked binary

rockwotj added a commit to rockwotj/redpanda that referenced this issue Aug 25, 2023
We see tinygo segfaults and in an effort to reduce noise in CI, we
can just retry the build up to 3 times if it fails.

Upstream issue: tinygo-org/tinygo#3874

Signed-off-by: Tyler Rockwood <[email protected]>
rockwotj added a commit to rockwotj/redpanda that referenced this issue Aug 25, 2023
We see tinygo segfaults and in an effort to reduce noise in CI, we
can just retry the build up to 3 times if it fails.

Upstream issue: tinygo-org/tinygo#3874

Signed-off-by: Tyler Rockwood <[email protected]>
@AcousticTypewriter
Copy link

I'm having the same issue. It seems to happen a few times in a row and then disappear.

tinygo version produces:

tinygo version 0.28.1 linux/amd64 (using go version go1.19.8 and LLVM version 15.0.0)

@aykevl
Copy link
Member

aykevl commented Aug 29, 2023

Are you perhaps compiling code that contains generics? I'm aware of a race condition that sometimes happens and I keep postponing to fix, see #3532.

@rockwotj
Copy link
Contributor Author

Yes my code does have generics

@rockwotj
Copy link
Contributor Author

Oh sorry wait no this version does not have any generics. I added generics after we started seeing this crash

aykevl added a commit that referenced this issue Sep 18, 2023
This usually works by chance, but leads to crashes. So we should never
ever do this.

I'm pretty sure this is the crash behind this issue: #3894

It may also have caused this crash: #3874

I have a suspicion this is also behind the rather crash-prone CircleCI
jobs, that we haven't been able to find the source of. But we'll find
out soon enough once this fix is merged.

To avoid hitting this issue again in the future, I've created a PR to
remove these dangerous functions altogether from the go-llvm API:
tinygo-org/go-llvm#54
@aykevl
Copy link
Member

aykevl commented Sep 18, 2023

This might fix the crash: #3917

deadprogram pushed a commit that referenced this issue Sep 19, 2023
This usually works by chance, but leads to crashes. So we should never
ever do this.

I'm pretty sure this is the crash behind this issue: #3894

It may also have caused this crash: #3874

I have a suspicion this is also behind the rather crash-prone CircleCI
jobs, that we haven't been able to find the source of. But we'll find
out soon enough once this fix is merged.

To avoid hitting this issue again in the future, I've created a PR to
remove these dangerous functions altogether from the go-llvm API:
tinygo-org/go-llvm#54
@deadprogram deadprogram added bug Something isn't working next-release Will be part of next release core labels Sep 19, 2023
@deadprogram
Copy link
Member

This is addressed as part of v0.30.0 release so now closing. Thanks!

@deadprogram deadprogram removed the next-release Will be part of next release label Sep 21, 2023
@rockwotj
Copy link
Contributor Author

@deadprogram @aykevl I've confirmed that upgrading to v0.30.0 does resolve the issue (I haven't seen any crashes) thanks for your work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

No branches or pull requests

4 participants