mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
CFRunLoopRun returns once it finishes, though the kernel may clean us up before we get there. We effectively have a race condition between the kernel cleaning us up and returning from a never returning function. Small programs likely get cleaned up before reaching the ud2 instruction emitted after the never returning function in swift, so they don't notice, but programs of a sufficient size do. At that size, the program will crash after what the programmer expects to be the end of their program.
25 KiB
25 KiB