I'm getting this crash on Ubuntu 22.04. I've isolated a few lines in my project that seem to cause it. Commenting out the lines prevents the crash, but the code doesn't do anything memory or concurrency related, it's mostly nested resultBuilder code. I haven't been able to reproduce the crash in a sample project. Any ideas?
Thread 0:
0 0x00007f89b130982d <unknown> in libc.so.6
Thread 1:
0 0x00007f89b127f117 <unknown> in libc.so.6
Thread 2 crashed:
0 0x00007f89b2643388 swift_retain + 56 in libswiftCore.so
Registers:
rax 0x00000000801f0fff 2149519359
rdx 0x00007f89ab499900 a0 fe 6f 94 44 56 00 00 00 00 00 00 00 00 00 00 þo·DV··········
rcx 0x0000564493243978 ff 0f 1f 80 00 00 00 00 55 48 89 e5 48 8b 05 75 ÿ·······UH·åH··u
rbx 0x0000000200000000 8589934592
rsi 0x0000564493243970 49 8b 7d 10 e9 57 f1 ff ff 0f 1f 80 00 00 00 00 I·}·éWñÿÿ·······
rdi 0x00000002801f0fff 10739453951
rbp 0x0000000000000000 0
rsp 0x00007f89ab4995a8 27 ff 23 93 44 56 00 00 00 00 00 00 02 00 00 00 'ÿ#·DV··········
r8 0x0000000000000000 0
r9 0x80000000ffffffff 9223372041149743103
r10 0x0000000100000000 4294967296
r11 0x6378b1b0fbd84080 7167674180657758336
r12 0x0000000000000000 0
r13 0x0000000000000000 0
r14 0x0000000000000000 0
r15 0x0000000000000000 0
rip 0x00007f89b2643388 f0 48 0f b1 31 75 f1 48 89 f8 c3 83 f8 ff 74 f7 ðH·±1uñH·ø÷øÿt÷
rflags 0x0000000000010206 PF
cs 0x0033 fs 0x0000 gs 0x0000
Images (70 omitted):
0x00007f89b11ee000–0x00007f89b13aa541 a43bfc8428df6623cd498c9c0caeb91aec9be4f9 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
0x00007f89b224a000–0x00007f89b2787d68 <no build ID> libswiftCore.so /opt/swift-5.9/usr/lib/swift/linux/libswiftCore.so