Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11097] RunLoop.current.run crashes with EXC_BAD_ACCESS #3994

Open
swift-ci opened this issue Jul 10, 2019 · 0 comments
Open

[SR-11097] RunLoop.current.run crashes with EXC_BAD_ACCESS #3994

swift-ci opened this issue Jul 10, 2019 · 0 comments

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-11097
Radar None
Original Reporter jjgp (JIRA User)
Type Bug

Attachment: Download

Environment

macOS Catalina 10.15 Beta

Xcode 11 Beta 3

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 82a75c7fb60b13cf1e47a2ee978c4ffb

Issue Description:

When executing code that depends on spinning on the current RunLoop with (examples involve XCTest and Process script):

RunLoop.current.run(mode: .default, before: .distantFuture)

Results in an EXC_BAD_ACCESS (snaphsot from Nimble/Await.swift):

![](Screen Shot 2019-07-10 at 3.32.00 PM.png)

This could also be related to a similar issue when waiting for a running Process to finish i.e.:

#!/usr/bin/xcrun -sdk macosx swift
import Foundation
var arguments = CommandLine.arguments.filter { $0 != "-profile-coverage-mapping" }
arguments.removeFirst()
let process = Process()
process.executableURL = URL(fileURLWithPath: "/usr/bin/xcrun")
process.arguments = ["swiftc"] + arguments
process.waitUntilExit()
try process.run()

Results in the attached ouput.txt

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant