Concurrency: Continuation Memory Management

I have a SIGSEGV in libdispatch when releasing a (previously stored) continuation. The same code works on Linux, hence I suspect a bug in the libdispatch or compiler implementation for Apple platforms.

Now that my stored continuations are finally called ([SR-14841] Concurrency: Resuming a stored continuation from an actor does not work · Issue #57188 · apple/swift · GitHub), I can't release them…

There is a full bug report @ [SR-15133] Crash when deallocating a never-resumed DispatchSourceTimer · Issue #604 · apple/swift-corelibs-libdispatch · GitHub – I'd be grateful for any "you're holding it wrong" comments or anything that helps me get beyond this major roadblock.

Thanks.

1 Like