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-12500] Assertion failure when running tests with Swift 5.2 on Linux #4569
Comments
@swift-ci create |
This should be fixed in apple/swift#29769 |
This is still happening with $ git clone https://github.com/realm/SwiftLint.git
$ cd SwiftLint
$ git checkout da3e1a793baf5c408ecec5022b79056f00f2be63
$ docker run -v `pwd`:`pwd` -w `pwd` --name swiftlint --rm norionomura/swift:20200428a swift test --parallel
Test Case 'DeploymentTargetRuleTests.testMacOSAttributeReason' started at 2020-04-30 04:19:13.780
SwiftLintPackageTests.xctest: /home/buildnode/jenkins/workspace/oss-swift-package-linux-ubuntu-16_04/swift/lib/IDE/SyntaxModel.cpp:1217: bool (anonymous namespace)::ModelASTWalker::handleSpecialDeclAttribute(const swift::DeclAttribute *, ArrayRef<swift::Token>): Assertion `0 && "Attribute's TokenNodes already consumed?"' failed.
Stack dump:
0. While walking into decl 'A' (at 8004087135770073511:2:1)
Exited with signal code 6
$ docker run --rm norionomura/swift:20200428a swift --version
Swift version 5.3-dev (LLVM 8c951cb804, Swift 3b746bed37)
Target: x86_64-unknown-linux-gnu |
Fixed this in apple/swift#31465 @jpsim I think you should be able to use '@available' rather than '@Availability' in the test that's hitting this to work around it (if that's not important to the test in some way). |
Thanks, I've confirmed that this is fixed in the 20200505a snapshot. Was |
Looks like it changed quite a while ago by the commit history: apple/swift@bf402b3 |
Environment
Swift 5.2 docker
Additional Detail from JIRA
md5: 3d42263bf0e2f6a07938e733b44d5887
Issue Description:
The text was updated successfully, but these errors were encountered: