Description
This test occasionally crashes on linux with the following backtrace in CI
*** Signal 11: Backtracing from 0x7fccbd410430... done ***
*** Program crashed: Bad pointer dereference at 0x00000000ffffffff ***
Platform: x86_64 Linux (Ubuntu 24.04.2 LTS)
Thread 0 "SWBBuildService":
0 0x00007fccbbe265eb sigsuspend + 75 in libc.so.6
1 [ra] 0x00007fccbd408db8 _dispatch_sigsuspend + 23 in libdispatch.so
2 [ra] 0x00007fccbbe0b1d6 __libc_start_call_main + 133 in libc.so.6
3 [ra] 0x00007fccbbe0b28b __libc_start_main@GLIBC_2.2.5 + 138 in libc.so.6
...
Thread 1:
0 0x00007fccbdb6a1e1 swift_conformsToProtocolMaybeInstantiateSuperclasses(swift::TargetMetadataswift::InProcess const*, swift::TargetProtocolDescriptorswift::InProcess const*, bool)::$_1::operator()((anonymous namespace)::ConformanceSection const&) const::{lambda(swift::TargetProtocolConformanceDescriptorswift::InProcess const&)#1}::operator()(swift::TargetProtocolConformanceDescriptorswift::InProcess const&) const + 1 in libswiftCore.so
1 [ra] 0x00007fccbdb68322 swift_conformsToProtocolCommon + 33 in libswiftCore.so
2 [ra] 0x00007fccbdb6096f (anonymous namespace)::DecodedMetadataBuilder::createDependentMemberType(__swift::__runtime::llvm::StringRef, swift::MetadataPackOrValue, swift::TargetProtocolDescriptorRefswift::InProcess) const + 366 in libswiftCore.so
3 [ra] 0x00007fccbdb5c92d swift::Demangle::__runtime::TypeDecoder<(anonymous namespace)::DecodedMetadataBuilder>::decodeMangledType(swift::Demangle::__runtime::Node*, unsigned int, bool) + 18604 in libswiftCore.so
4 [ra] 0x00007fccbdb503d1 swift_getTypeByMangledNode + 768 in libswiftCore.so
5 [ra] 0x00007fccbdb4ea19 swift_getTypeByMangledName + 1160 in libswiftCore.so
6 [ra] 0x00007fccbdb382ef swift_getAssociatedTypeWitnessSlow + 382 in libswiftCore.so
7 [ra] 0x00007fccbdb38167 swift_getAssociatedTypeWitness + 38 in libswiftCore.so
8 [ra] [system] 0x0000559e5b0c71a2 AsyncSequence.collect() + 97 in SWBBuildServiceBundle at /__w/swift-build/swift-build/
9 [ra] 0x00007fccbd69ca50 swift::runJobInEstablishedExecutorContext(swift::Job*) + 367 in libswift_Concurrency.so
10 [ra] 0x00007fccbd69d725 swift_job_run + 148 in libswift_Concurrency.so
...
Thread 2 crashed:
0 0x00007fccbd410430 _dispatch_event_loop_drain + 1104 in libdispatch.so
...
Thread 3:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 4:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 5:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 6:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 7:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 8:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 9:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 10:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 11:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 12:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 13:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 14:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 15:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 16:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 17:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 18:
0 0x00007fccbbefca00 ppoll + 160 in libc.so.6
1 [ra] 0x00007fccbd156355 __CFRunLoopServiceFileDescriptors + 100 in libFoundation.so
2 [ra] 0x00007fccbd151e35 __CFRunLoopRun + 1044 in libFoundation.so
3 [ra] 0x00007fccbd151778 CFRunLoopRunSpecific + 503 in libFoundation.so
4 [ra] 0x00007fccbd0c3339 closure #1 in closure #1 in static Process.setup() + 680 in libFoundation.so
5 [ra] 0x00007fccbd0e4449 Thread.main() + 24 in libFoundation.so
6 [ra] 0x00007fccbd0e31d7 NSThreadStart(_:) + 150 in libFoundation.so
7 [ra] 0x00007fccbbe7daa4 start_thread + 899 in libc.so.6
...
Thread 19:
0 0x00007fccbbe79d71 __futex_abstimed_wait_cancelable64 + 225 in libc.so.6
1 [ra] 0x00007fccbbe85d93 __new_sem_wait_slow64.constprop.0 + 162 in libc.so.6
...
Thread 20:
0 0x00007fccbbf07cd7 select + 327 in libc.so.6
1 [ra] 0x00007fccbd15c933 __CFSocketManager + 642 in libFoundation.so
2 [ra] 0x00007fccbbe7daa4 start_thread + 899 in libc.so.6
...
Registers:
rax 0x00000000ffffffff 4294967295
rdx 0x00007fcc80000e40 e0 e4 81 60 cb 7f 00 00 df 29 ec af 2a 37 93 f9 àä·`Ë···ß)ì¯7·ù
rcx 0x00007fcc98000c00 50 c4 cb 48 cb 7f 00 00 df 29 ec af 2a 37 93 f9 PÄËHË···ß)ì¯7·ù
rbx 0x0000000000000001 1
rsi 0x00007fccbd4301d0 01 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ················
rdi 0x0000000000000081 129
rbp 0x0000000000000000 0
rsp 0x00007fccb3ffeb30 a0 9a 01 b4 cc 7f 00 00 02 00 00 00 00 00 00 00 ··´Ì···········
r8 0x0000000000000004 4
r9 0x00007fcc98000c00 50 c4 cb 48 cb 7f 00 00 df 29 ec af 2a 37 93 f9 PÄËHË···ß)ì¯*7·ù
r10 0x0000000000000000 0
r11 0x0000000000000246 582
r12 0x00007fccb3ffeb40 01 00 00 00 00 00 00 00 cc 7f 00 00 01 40 00 40 ········Ì····@·@
r13 0x00007fccbd412d64 56 d3 ff ff 99 d3 ff ff ef d2 ff ff 77 d3 ff ff VÓÿÿ·ÓÿÿïÒÿÿwÓÿÿ
r14 0x0000000000000000 0
r15 0x0000000000000002 2
rip 0x00007fccbd410430 4c 8b 30 48 8b 48 20 48 f7 d1 8b 51 08 81 fa ff L·0H·H H÷Ñ·Q··úÿ
rflags 0x0000000000010206 PF
cs 0x0033 fs 0x0000 gs 0x0000
Images (18 omitted):
0x0000559e59c1f000–0x0000559e5cfd7190 af56979b709952ed647f8cddfa3da65df2b82528 SWBBuildServiceBundle /__w/swift-build/swift-build/.build/x86_64-unknown-linux-gnu/debug/SWBBuildServiceBundle
0x00007fccbbde1000–0x00007fccbbf90cb9 42c84c92e6f98126b3e2230ebfdead22c235b667 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
0x00007fccbcd82000–0x00007fccbd25aac8 5db9ca8745caa3ec7a62d0dea5616566d93230c5 libFoundation.so /usr/lib/swift/linux/libFoundation.so
0x00007fccbd3d4000–0x00007fccbd41cb58 9212afdd401abd311b13b6c94334e6ab861c42ba libdispatch.so /usr/lib/swift/linux/libdispatch.so
0x00007fccbd628000–0x00007fccbd6bf160 6a66e688310a3392a1fbcfe1cce64f0338b04e07 libswift_Concurrency.so /usr/lib/swift/linux/libswift_Concurrency.so
0x00007fccbd6d3000–0x00007fccbdc877f0 5a6bebe7bd7cc99889272cb47873bae758aa7361 libswiftCore.so /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.93s