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-12424] [5.2] Calling C module segfaults via CLI only #54863
Comments
@swift-ci create |
tannernelson (JIRA User) Is it possible to isolate this problem a bit more? |
Comment by tanner0101 (JIRA) @eeckstein I created a simpler repro here: vapor/vapor#2379 1: Clone vapor/vapor 2: Checkout branch `SR-12424` 3: Run `SR12424` target via CLI (`swift run SR12424`) |
Thanks, reproduced |
This appears to be fixed at least as recently as Swift 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1), as found in Xcode 12.1 (12A7403). |
previously the linked radar was rdar://problem/62200985 but the new one has the actual debugging. |
Comment by Paul Schifferer (JIRA) It should be noted that this works when built with |
schifferer (JIRA User) Yes, this is known, thank you. |
Environment
Xcode: Version 11.4 (11E146)
Additional Detail from JIRA
md5: 350de5128f74cdcfd9a534f734073874
Issue Description:
To recreate:
Clone: https://github.com/vapor/vapor
Check out: cac009e6699b27b38335f69f9ce93d6b6c81f79f
Run `swift test` via CLI
Line 70 of Sources/Vapor/Bcrypt/Bcrypt.swift which calls into the `CBcrypt` module is causing the segfault.
What's interesting is that this doesn't happen in Xcode. It only happens when running `swift test` via the CLI.
The text was updated successfully, but these errors were encountered: