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-14543] [5.4] Calling C module segfaults via CLI only #56895
Comments
Linux works fine |
Interestingly, on Darwin, it runs fine under ASan:
|
Ok, this looks like the return of rdar://63137100
I will debug this through and report more after lunch. |
@swift-ci create |
compiler emitting wrong code here, this is the return of SR-12424 / rdar://63137100 |
Comment by Vojtech Rylko (JIRA) Happens also on Swift 5.5. |
This is fixed in 5.4.2 and latest 5.5 |
Thanks Tim, this is also in Xcode 12.5.1. Closing this bug then. |
Attachment: Download
Environment
Xcode 12.5
Additional Detail from JIRA
md5: d90e4cd9b7c7ab90c74f03d7cad1145e
Issue Description:
When running a Swift program that calls through to a C module, the program segfaults. This only occurs on the CLI, running via Xcode is fine. Looks like a regression for SR-12424
To recreate:
git clone https://github.com/0xTim/BCryptCrash.git
swift run
Expected
App prints out a password hash correctly
Actual:
The text was updated successfully, but these errors were encountered: