Closed norio-nomura closed 7 years ago
Issue Description:
After enabling SourceKit tests on Linux by https://github.com/apple/swift/pull/8485 , some tests fail with the fatal error.
******************** FAIL: Swift(linux-x86_64) :: SourceKit/DocumentStructure/access_parse.swift (423 of 3375) ******************** TEST 'Swift(linux-x86_64) :: SourceKit/DocumentStructure/access_parse.swift' FAILED ******************** Script: -- '/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/bin/swift' -frontend -module-cache-path '/tmp/swift-testsuite-clang-module-cacheAq2cta' -disable-objc-attr-requires-foundation-module -swift-version 3 -typecheck /Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/Inputs/access.swift /Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/bin/sourcekitd-test -req=structure /Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/Inputs/access.swift -- -module-name Access /Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/Inputs/access.swift > /Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/test-linux-x86_64/SourceKit/DocumentStructure/Output/access_parse.swift.tmp.response diff -u /Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/access_parse.swift.response /Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/test-linux-x86_64/SourceKit/DocumentStructure/Output/access_parse.swift.tmp.response -- Exit Code: 134 Command Output (stderr): -- { key.request: source.request.editor.open, key.name: "/Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/Inputs/access.swift", key.compilerargs: [ "-module-name", "Access", "/Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/Inputs/access.swift" ], key.sourcefile: "/Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/Inputs/access.swift", key.enablesyntaxmap: 0, key.enablesubstructure: 1, key.syntactic_only: 1 } SOURCEKITD FATAL ERROR: sourcekitd object did not resolve to a known type #​0 0x00007f3cb7531c88 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6f7c88) #​1 0x00007f3cb75323c6 SignalHandler(int) (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6f83c6) #​2 0x00007f3cbb2ac390 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x11390) #​3 0x00007f3cb576b428 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x35428) #​4 0x00007f3cb576d02a abort (/lib/x86_64-linux-gnu/libc.so.6+0x3702a) #​5 0x00007f3cb74ff691 (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6c5691) #​6 0x00007f3cb750c7a8 llvm::report_fatal_error(llvm::Twine const&, bool) (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6d27a8) #​7 0x00007f3cb750c684 (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6d2684) #​8 0x00007f3cb750382e (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6c982e) #​9 0x00007f3cb74fd729 (anonymous namespace)::VariantVisitor<(anonymous namespace)::VariantPrinter, void>::visit(sourcekitd_variant_t) (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6c3729) #​10 0x00007f3cb74fe506 (anonymous namespace)::VariantVisitor<(anonymous namespace)::VariantPrinter, void>::visit(sourcekitd_variant_t) (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6c4506) #​11 0x00007f3cb74fb56f sourcekitd::printResponse(void*, llvm::raw_ostream&) (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6c156f) #​12 0x00007f3cb74fbc66 sourcekitd_response_description_dump_filedesc (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/lib/libsourcekitdInProc.so+0x6c1c66) #​13 0x0000000000407a3a handleResponse(void*, sourcekitd_test::TestOptions const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, sourcekitd_test::TestOptions*) (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/bin/sourcekitd-test+0x407a3a) #​14 0x0000000000406ebf handleTestInvocation(llvm::ArrayRef<char const*>, sourcekitd_test::TestOptions&) (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/bin/sourcekitd-test+0x406ebf) #​15 0x0000000000404a8f __main_block_invoke (/Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/bin/sourcekitd-test+0x404a8f) #​16 0x00007f3cbb66b8b7 _dispatch_call_block_and_release (/Users/norio/github/swift-dev/build/buildbot_incremental/libdispatch-linux-x86_64/src/.libs/libdispatch.so+0x398b7) #​17 0x00007f3cbb679f2d _dispatch_root_queue_drain (/Users/norio/github/swift-dev/build/buildbot_incremental/libdispatch-linux-x86_64/src/.libs/libdispatch.so+0x47f2d) #​18 0x00007f3cbb679a1d _dispatch_worker_thread4 (/Users/norio/github/swift-dev/build/buildbot_incremental/libdispatch-linux-x86_64/src/.libs/libdispatch.so+0x47a1d) #​19 0x00007f3cbb69ce0f worker_main /Users/norio/github/swift-dev/swift-corelibs-libdispatch/libpwq/src/posix/manager.c:508:9 #​20 0x00007f3cbb2a26ba start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76ba) #​21 0x00007f3cb583c82d clone (/lib/x86_64-linux-gnu/libc.so.6+0x10682d) /Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/test-linux-x86_64/SourceKit/DocumentStructure/Output/access_parse.swift.script: line 3: 31950 Aborted /Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/bin/sourcekitd-test -req=structure /Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/Inputs/access.swift -- -module-name Access /Users/norio/github/swift-dev/swift/test/SourceKit/DocumentStructure/Inputs/access.swift > /Users/norio/github/swift-dev/build/buildbot_incremental/swift-linux-x86_64/test-linux-x86_64/SourceKit/DocumentStructure/Output/access_parse.swift.tmp.response --
This can be fixed by https://github.com/apple/swift/pull/8485/commits/a0d63e7b415d1dfdb8848e4296836545e4e7e443
https://github.com/apple/swift/pull/8485 has been merged.
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 1 | |Component/s | Source Tooling | |Labels | Bug, Linux | |Assignee | None | |Priority | Medium | md5: 5cc0d57f006e9a7bb033bfb75561e190Issue Description:
After enabling SourceKit tests on Linux by https://github.com/apple/swift/pull/8485 , some tests fail with the fatal error.