You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
krzyzanowskim opened this issue
Jun 15, 2019
· 1 comment
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
SR-10845 Fatal Error Encountered While Reading from Module 'Foundation'
Issue Description:
swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-14-a
When building a simple Kitura project on macOS, with swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-14-a, compiler crashes. Let me know if you need more information.
:0: error: fatal error encountered while reading from module 'Foundation'; please file a bug report with your project and the crash log
*** DESERIALIZATION FAILURE (please include this section in any bug report) ***
top-level value not found
Cross-reference to module 'Foundation'
... NSOrderedCollectionChange
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Environment
macOS 10.14.5 (18F203)
Additional Detail from JIRA
md5: e0bf585c5288dc3e1a01a543a3c5d481
duplicates:
Issue Description:
swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-14-a
When building a simple Kitura project on macOS, with swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-14-a, compiler crashes. Let me know if you need more information.
:0: error: fatal error encountered while reading from module 'Foundation'; please file a bug report with your project and the crash log
*** DESERIALIZATION FAILURE (please include this section in any bug report) ***
top-level value not found
Cross-reference to module 'Foundation'
... NSOrderedCollectionChange
Stack dump:
0. Program arguments: /Users/marcinkrzyzanowski/Devel/SwiftStudio/Toolchains/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-14-a/usr/bin/swift -frontend -c /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift -primary-file /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/checkouts/BlueSocket/Sources/Socket/SocketProtocols.swift /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift -emit-module-path /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/x86_64-apple-macosx/debug/Socket.build/SocketProtocols
partial.swiftmodule -emit-module-doc-path /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/x86_64-apple-macosx/debug/Socket.build/SocketProtocolspartial.swiftdoc -emit-dependencies-path /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/x86_64-apple-macosx/debug/Socket.build/SocketProtocols.d -emit-reference-dependencies-path /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/x86_64-apple-macosx/debug/Socket.build/SocketProtocols.swiftdeps -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/x86_64-apple-macosx/debug -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/x86_64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -color-diagnostics -enable-anonymous-context-mangled-names -parse-as-library -module-name Socket -o /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/x86_64-apple-macosx/debug/Socket.build/SocketProtocols.swift.o -index-store-path /Users/marcinkrzyzanowski/Devel/SwiftStudio/Examples/Kitura/Hello/.build/x86_64-apple-macosx/debug/index/store -index-system-modules0 swift 0x000000010f64d5b5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 swift 0x000000010f64c8a5 llvm::sys::RunSignalHandlers() + 85
2 swift 0x000000010f64db98 SignalHandler(int) + 264
3 libsystem_platform.dylib 0x00007fff7a5a0b5d _sigtramp + 29
4 libsystem_platform.dylib 0x00000001228deb76 _sigtramp + 2821972022
5 libsystem_c.dylib 0x00007fff7a45a6a6 abort + 127
6 swift 0x000000010f9bdf53 swift::ModuleFile::fatal(llvm::Error) + 627
7 swift 0x000000010c864413 swift::ModuleFile::finishNormalConformance(swift::NormalProtocolConformance*, unsigned long long) + 4611
8 swift 0x000000010cb6a0e1 swift::RootProtocolConformance::hasWitness(swift::ValueDecl*) const + 97
9 swift 0x000000010c0b6e9b void swift::RootProtocolConformance::forEachValueWitness<(anonymous namespace)::IndexSwiftASTWalker::handleWitnesses(swift::Decl*, llvm::SmallVectorImpl<(anonymous namespace)::IndexedWitness>&)::$_0>(swift::LazyResolver*, (anonymous namespace)::IndexSwiftASTWalker::handleWitnesses(swift::Decl*, llvm::SmallVectorImpl<(anonymous namespace)::IndexedWitness>&)::$_0) const + 123
10 swift 0x000000010c0b6131 (anonymous namespace)::IndexSwiftASTWalker::startEntity(swift::Decl*, swift::index::IndexSymbol&, bool) + 385
11 swift 0x000000010c0b4c85 (anonymous namespace)::IndexSwiftASTWalker::walkToDeclPre(swift::Decl*, swift::CharSourceRange) + 3973
12 swift 0x000000010c0664fb (anonymous namespace)::SemaAnnotator::walkToDeclPre(swift::Decl*) + 1195
13 swift 0x000000010ca8d2ba (anonymous namespace)::Traversal::doIt(swift::Decl*) + 170
14 swift 0x000000010ca8d1fb swift::Decl::walk(swift::ASTWalker&) + 27
15 swift 0x000000010cb44496 swift::FileUnit::walk(swift::ASTWalker&) + 246
16 swift 0x000000010cb43160 swift::ModuleDecl::walk(swift::ASTWalker&) + 96
17 swift 0x000000010c064d50 swift::SourceEntityWalker::walk(swift::ModuleDecl&) + 176
18 swift 0x000000010c0b3aab (anonymous namespace)::IndexSwiftASTWalker::visitModule(swift::ModuleDecl&, llvm::StringRef) + 155
19 swift 0x000000010c0b3cd1 swift::index::indexModule(swift::ModuleDecl*, llvm::StringRef, swift::index::IndexDataConsumer&) + 465
20 swift 0x000000010c0bd1a0 addModuleDependencies(llvm::ArrayRef<std::__1::pair<llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >, swift::ModuleDecl*> >, llvm::StringRef, bool, llvm::StringRef, clang::CompilerInstance const&, swift::DiagnosticEngine&, clang::index::IndexUnitWriter&, (anonymous namespace)::StringScratchSpace&) + 2400
21 swift 0x000000010c0bc00e recordSourceFileUnit(swift::SourceFile*, llvm::StringRef, llvm::StringRef, bool, bool, llvm::StringRef, llvm::ArrayRef<clang::FileEntry const*>, clang::CompilerInstance const&, swift::DiagnosticEngine&) + 686
22 swift 0x000000010c0bbcfb swift::index::indexAndRecord(swift::SourceFile*, llvm::StringRef, llvm::StringRef, bool, bool, llvm::StringRef, swift::DependencyTracker const&) + 219
23 swift 0x000000010be07ae8 emitIndexDataIfNeeded(swift::SourceFile*, swift::CompilerInvocation const&, swift::CompilerInstance&) + 328
24 swift 0x000000010be02d0a performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 14202
25 swift 0x000000010bdfe5c2 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2978
26 swift 0x000000010bda85a8 main + 696
27 libdyld.dylib 0x00007fff7a3b53d5 start + 1
The text was updated successfully, but these errors were encountered: