The SourceKitService embedded in Xcode 9 beta 2 (9M137d) crashes when running the test of SourceKitten.
| Originator: | Norio.Nomura | ||
| Number: | rdar://32943716 | Date Originated: | June 23 2017, 5:41 PM |
| Status: | open | Resolved: | |
| Product: | Xcode | Product Version: | Version 9 beta 2 (9M137d) |
| Classification: | Crash | Reproducible: | Always |
Area: Xcode Summary: The SourceKitService embedded in Xcode 9 beta 2 (9M137d) crashes when running the test of SourceKitten. reproducing log: -- ➜ 17:27:17 git clone https://github.com/jpsim/sourcekitten -b nn-swift-4020170619a Cloning into 'sourcekitten'... remote: Counting objects: 8079, done. remote: Compressing objects: 100% (54/54), done. remote: Total 8079 (delta 47), reused 69 (delta 38), pack-reused 7986 Receiving objects: 100% (8079/8079), 6.28 MiB | 1.74 MiB/s, done. Resolving deltas: 100% (5161/5161), done. ➜ 17:28:31 cd sourcekitten ➜ 17:28:33 git:(nn-swift-4020170619a) DEVELOPER_DIR=/Applications/Xcode-beta.app swift test --filter testRealmObjectiveCDocs Fetching https://github.com/Carthage/Commandant.git Fetching https://github.com/drmohundro/SWXMLHash.git Fetching https://github.com/jpsim/Yams.git Fetching https://github.com/norio-nomura/Clang_C.git Fetching https://github.com/norio-nomura/SourceKit.git Fetching https://github.com/antitypical/Result.git Cloning https://github.com/jpsim/Yams.git Resolving https://github.com/jpsim/Yams.git at master Cloning https://github.com/norio-nomura/SourceKit.git Resolving https://github.com/norio-nomura/SourceKit.git at 1.0.1 Cloning https://github.com/antitypical/Result.git Resolving https://github.com/antitypical/Result.git at 3.2.3 Cloning https://github.com/drmohundro/SWXMLHash.git Resolving https://github.com/drmohundro/SWXMLHash.git at 4.1.0 Cloning https://github.com/norio-nomura/Clang_C.git Resolving https://github.com/norio-nomura/Clang_C.git at 1.0.2 Cloning https://github.com/Carthage/Commandant.git Resolving https://github.com/Carthage/Commandant.git at 0.12.0 Compile CYaml src/writer.c Compile CYaml src/reader.c Compile CYaml src/scanner.c Compile CYaml src/parser.c Compile CYaml src/loader.c Compile CYaml src/emitter.c Compile CYaml src/dumper.c Compile CYaml src/api.c Compile Swift Module 'SWXMLHash' (2 sources) Compile Swift Module 'Result' (2 sources) Compile Swift Module 'Yams' (13 sources) Compile Swift Module 'Commandant' (10 sources) Compile Swift Module 'SourceKittenFramework' (34 sources) Compile Swift Module 'sourcekitten' (10 sources) Compile Swift Module 'SourceKittenFrameworkTests' (11 sources) Linking ./.build/debug/sourcekitten Linking ./.build/debug/SourceKittenPackageTests.xctest/Contents/MacOS/SourceKittenPackageTests Test Suite 'Selected tests' started at 2017-06-23 17:29:27.199 Test Suite 'SourceKittenPackageTests.xctest' started at 2017-06-23 17:29:27.199 Test Suite 'ClangTranslationUnitTests' started at 2017-06-23 17:29:27.199 Test Case '-[SourceKittenFrameworkTests.ClangTranslationUnitTests testRealmObjectiveCDocs]' started. fatal error: unexpectedly found nil while unwrapping an Optional value sourcekit: [1:connection-event-handler:4611: 0.0000] Connection interrupt sourcekit: [1:pingService:4611: 0.0013] pinging service DEVELOPER_DIR=/Applications/Xcode-beta.app swift test --filter 55.51s user 13.38s system 147% cpu 46.833 total Steps to Reproduce: 1. git clone https://github.com/jpsim/sourcekitten -b nn-swift-4020170619a 2. cd sourcekitten 3. DEVELOPER_DIR=/Applications/Xcode-beta.app swift test --filter testRealmObjectiveCDocs Expected Results: 4. test will complete Observed Results: 4. SourceKitService crashed and test crashed Version: macOS 10.12.5 (16F73) Notes: The SourceKitService embedded in the toolchain distributed on swift.org does not crash. e.g. `swift-4.0-DEVELOPMENT-SNAPSHOT-2017-06-22-a` or `swift-4.0-DEVELOPMENT-SNAPSHOT-2017-06-19-a` Configuration:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!