Compiler crash in Swift 5.6

I am getting compiler error in Swift 5.6.3 when trying to build my project after making some changes, please find the branch: GitHub - SwiftyLab/AsyncObjects at cancellation.

I am able to build the project in XCode 14.2. Please find the compiler crash backtrace:

Stack dump:
  0.	Program arguments: /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/AsyncCountdownEvent.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/AsyncEvent.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/AsyncSemaphore.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Base/AsyncObject+Clock.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Base/AsyncObject+Duration.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Base/AsyncObject.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/CancellationSource/Cancellable.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/CancellationSource/CancellationSource+Clock.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/CancellationSource/CancellationSource+Helpers.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/CancellationSource/CancellationSource+Task.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/CancellationSource/CancellationSource.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Continuation/Continuable.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Continuation/ContinuableCollection.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Continuation/ContinuableCollectionActor.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Continuation/GlobalContinuation.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Continuation/TrackableContinuable.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Continuation/TrackedContinuation.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Extensions/Task.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Extensions/TaskGroup.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Future.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Locks/Exclusible.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Locks/Locker.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/Logging/Loggable.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/TaskOperation.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/TaskQueue.swift /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/TaskTracker.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /home/runner/work/AsyncObjects/AsyncObjects/.build/x86_64-unknown-linux-gnu/debug -enable-testing -g -module-cache-path /home/runner/work/AsyncObjects/AsyncObjects/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D ASYNCOBJECTS_ENABLE_LOGGING_LEVEL_INFO -new-driver-path /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-driver -resource-dir /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/lib/swift -enable-anonymous-context-mangled-names -module-name AsyncObjects -emit-module-doc-path /home/runner/work/AsyncObjects/AsyncObjects/.build/x86_64-unknown-linux-gnu/debug/AsyncObjects.swiftdoc -emit-module-source-info-path /home/runner/work/AsyncObjects/AsyncObjects/.build/x86_64-unknown-linux-gnu/debug/AsyncObjects.swiftsourceinfo -parse-as-library -o /home/runner/work/AsyncObjects/AsyncObjects/.build/x86_64-unknown-linux-gnu/debug/AsyncObjects.swiftmodule -emit-abi-descriptor-path /home/runner/work/AsyncObjects/AsyncObjects/.build/x86_64-unknown-linux-gnu/debug/AsyncObjects.abi.json
  1.	Swift version 5.6.3 (swift-5.6.3-RELEASE)
  2.	Compiling with the current language version
  3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for module AsyncObjects)
  4.	While silgen emitFunction SIL function "@$s12AsyncObjects18CancellationSourceC10initialize6resumeyScCyyts5Error_pG_tF".
   for 'initialize(resume:)' (at /home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/CancellationSource/CancellationSource.swift:136:5)
  5.	While silgen closureexpr SIL function "@$s12AsyncObjects18CancellationSourceC10initialize6resumeyScCyyts5Error_pG_tFyyYaYbKcfU_".
   for expression at [/home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/CancellationSource/CancellationSource.swift:137:30 - line:168:9] RangeText="{
              try await withThrowingTaskGroup(of: Void.self) { group in
                  let stream = AsyncStream<WorkItem> { self.pipe = $0 }
                  group.addTask {
                      try await Continuation.with { token in
                          Task {
                              await self.initialize(token: token)
                              initialization.resume()
                          }
                      }
                  }
  
                  for await (work, (file, function, line)) in stream {
                      group.addTask {
                          try? await withTaskCancellationHandler {
                              try await work.wait(
                                  file: file,
                                  function: function,
                                  line: line
                              )
                          } onCancel: {
                              work.cancel(
                                  file: file,
                                  function: function,
                                  line: line
                              )
                          }
                      }
                  }
                  for try await _ in group {}
              }
          "
  6.	While silgen closureexpr SIL function "@$s12AsyncObjects18CancellationSourceC10initialize6resumeyScCyyts5Error_pG_tFyyYaYbKcfU_yScgyytsAF_pGzYaKXEfU_".
   for expression at [/home/runner/work/AsyncObjects/AsyncObjects/Sources/AsyncObjects/CancellationSource/CancellationSource.swift:138:60 - line:167:13] RangeText="{ group in
                  let stream = AsyncStream<WorkItem> { self.pipe = $0 }
                  group.addTask {
                      try await Continuation.with { token in
                          Task {
                              await self.initialize(token: token)
                              initialization.resume()
                          }
                      }
                  }
  
                  for await (work, (file, function, line)) in stream {
                      group.addTask {
                          try? await withTaskCancellationHandler {
                              try await work.wait(
                                  file: file,
                                  function: function,
                                  line: line
                              )
                          } onCancel: {
                              work.cancel(
                                  file: file,
                                  function: function,
                                  line: line
                              )
                          }
                      }
                  }
                  for try await _ in group {}
              "
  Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x4fb5553]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x4fb345e]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x4fb58df]
  /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7fdb25543420]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x712fb4]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x6c7761]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x6c2f41]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x6c37bb]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x7265f7]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb9c488]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb99d14]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb3f5c3]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb3bef7]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb2efc7]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb87e60]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb83c2e]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb8192c]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb805ed]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb4c232]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xafd86b]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb002b0]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb44383]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb39917]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb31569]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb924ee]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb1e474]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb926e9]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbb3562]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xba12c7]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbba3b0]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbb9ddc]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xba51fb]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xba385b]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb398fd]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb398e6]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb398e6]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb2ef12]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb86919]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb82641]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb8192c]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb805ed]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb4c232]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xafd86b]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb002b0]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb44383]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb39917]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb31569]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb924ee]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb1e474]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb926e9]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbb3562]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xba12c7]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbba3b0]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbb9ddc]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xba51fb]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xba385b]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb398fd]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb467dd]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb1c1b6]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb3ed0c]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb31569]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbb30a0]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xba12c7]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbba3b0]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbb9ddc]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xba51fb]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xbae458]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb5c4a8]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb46da6]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb3c72e]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb31873]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb818b4]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb805ed]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb4bc43]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xafebdb]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xafff0a]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xafd07d]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb8e4a2]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb8e3d8]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb02343]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb801c7]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb0562f]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0xb03127]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x49b840]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x48ff32]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x449058]
  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fdb249b3083]
  /opt/hostedtoolcache/swift-Ubuntu/5.6.3/x64/usr/bin/swift-frontend[0x448a8e]
  error: fatalError

Also find the GitHub action log: refactor: modify cancellation source implementation to not store tasks and linked cancellation sources · SwiftyLab/AsyncObjects@9bf3542 · GitHub.

Do I have to make any changes to build my project on Swift 5.6?