Skip to content
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-2578] Build assertion failure, crash building corelibs-foundation #45183

Closed
swift-ci opened this issue Sep 8, 2016 · 2 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Sep 8, 2016

Previous ID SR-2578
Radar None
Original Reporter willstanton1@yahoo.com (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

Amazon Linux

4.4.19-29.55.amzn1.x86_64 #1 SMP Mon Aug 29 23:29:40 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee None
Priority Medium

md5: ff1a390414a52190aff72f0d0ea5830d

Issue Description:

Changes to swift master yesterday-today (Aug 6-7 2016) may have broken build of swift-corelibs-foundation (got this in AWS Linux environment)... though CI looks OK. Will try clean build eventually...

NSData.swift not changed:
https://github.com/apple/swift-corelibs-foundation/commits/master/Foundation/NSData.swift

Maybe these bits are interesting?

Status swift::ModuleFile::error(Status): Assertion `(FileContext = Status::Malformed) && "error deserializing an individual record"' failed
[...]

  1. While type-checking 'isEqual' at Foundation/NSData.swift:230:19
  2. While type-checking expression at [Foundation/NSData.swift:233:16 - line:233:30] RangeText="data.count != l"
  3. While deserializing decl #​1548 (XREF)
  4. Cross-reference to module 'Swift'
    ... Collection
    ... makeIterator
    ... with type <τ_0_0 where τ_0_0 : Collection, τ_0_0.Index : Comparable, τ_0_0.IndexDistance : SignedInteger, τ_0_0.IndexDistance.IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral, τ_0_0.IndexDistance.Stride : SignedNumber, τ_0_0.IndexDistance.Stride.IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral, τ_0_0.Indices : Sequence, τ_0_0.Indices : _Indexable, τ_0_0.Indices.Index : Comparable, τ_0_0.Indices.IndexDistance : SignedInteger, τ_0_0.Indices.IndexDistance.IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral, τ_0_0.Indices.IndexDistance.Stride : SignedNumber, τ_0_0.Indices.IndexDistance.Stride.IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral, τ_0_0.Indices.Iterator : IteratorProtocol, τ_0_0.Iterator : IteratorProtocol, τ_0_0.SubSequence : Sequence, τ_0_0.SubSequence : _IndexableBase, τ_0_0.SubSequence.Index : Comparable, τ_0_0.SubSequence.Iterator : IteratorProtocol> (τ_0_0) -> () -> τ_0_0.Iterator

Relevant build output:

[25/146] CompileSwift: Foundation/NSData.swift
FAILED: ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o
mkdir -p dirname ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o; mkdir -p ../build/Ninja-ReleaseAssert/foundation-linux-x86_64; /home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift -frontend -c Foundation/NSObject.swift Foundation/NSAffineTransform.swift Foundation/NSArray.swift Foundation/NSAttributedString.swift Foundation/NSBundle.swift Foundation/NSByteCountFormatter.swift Foundation/NSCache.swift Foundation/NSCalendar.swift Foundation/NSCFArray.swift Foundation/NSCFDictionary.swift Foundation/NSCFSet.swift Foundation/NSCFString.swift Foundation/NSCharacterSet.swift Foundation/NSCFCharacterSet.swift Foundation/NSCoder.swift Foundation/NSComparisonPredicate.swift Foundation/NSCompoundPredicate.swift Foundation/NSConcreteValue.swift -primary-file Foundation/NSData.swift Foundation/NSDate.swift Foundation/NSDateComponentsFormatter.swift Foundation/NSDateFormatter.swift Foundation/NSDateIntervalFormatter.swift Foundation/NSDecimal.swift Foundation/NSDecimalNumber.swift Foundation/NSDictionary.swift Foundation/NSEnergyFormatter.swift Foundation/NSEnumerator.swift Foundation/NSError.swift Foundation/NSExpression.swift Foundation/NSFileHandle.swift Foundation/NSFileManager.swift Foundation/NSFormatter.swift Foundation/NSGeometry.swift Foundation/NSHost.swift Foundation/NSHTTPCookie.swift Foundation/NSHTTPCookieStorage.swift Foundation/NSIndexPath.swift Foundation/NSIndexSet.swift Foundation/NSJSONSerialization.swift Foundation/NSKeyedCoderOldStyleArray.swift Foundation/NSKeyedArchiver.swift Foundation/NSKeyedArchiverHelpers.swift Foundation/NSKeyedUnarchiver.swift Foundation/NSLengthFormatter.swift Foundation/NSLocale.swift Foundation/NSLock.swift Foundation/NSLog.swift Foundation/NSMassFormatter.swift Foundation/NSNotification.swift Foundation/NSNotificationQueue.swift Foundation/NSNull.swift Foundation/NSNumber.swift Foundation/NSNumberFormatter.swift Foundation/NSObjCRuntime.swift Foundation/NSOperation.swift Foundation/NSOrderedSet.swift Foundation/NSPathUtilities.swift Foundation/NSPersonNameComponents.swift Foundation/NSPersonNameComponentsFormatter.swift Foundation/NSPort.swift Foundation/NSPortMessage.swift Foundation/NSPredicate.swift Foundation/NSProcessInfo.swift Foundation/NSProgress.swift Foundation/NSPropertyList.swift Foundation/NSRange.swift Foundation/NSRegularExpression.swift Foundation/NSRunLoop.swift Foundation/NSScanner.swift Foundation/NSSet.swift Foundation/NSSortDescriptor.swift Foundation/NSSpecialValue.swift Foundation/NSStream.swift Foundation/NSString.swift Foundation/NSStringAPI.swift Foundation/NSSwiftRuntime.swift Foundation/NSTask.swift Foundation/NSTextCheckingResult.swift Foundation/NSThread.swift Foundation/NSTimer.swift Foundation/NSTimeZone.swift Foundation/NSURL.swift Foundation/NSURLAuthenticationChallenge.swift Foundation/NSURLCache.swift Foundation/NSURLCredential.swift Foundation/NSURLCredentialStorage.swift Foundation/NSURLError.swift Foundation/NSURLProtectionSpace.swift Foundation/NSURLProtocol.swift Foundation/NSURLRequest.swift Foundation/NSURLResponse.swift Foundation/NSURLSession/Configuration.swift Foundation/NSURLSession/EasyHandle.swift Foundation/NSURLSession/HTTPBodySource.swift Foundation/NSURLSession/HTTPMessage.swift Foundation/NSURLSession/MultiHandle.swift Foundation/NSURLSession/NSURLSession.swift Foundation/NSURLSession/NSURLSessionConfiguration.swift Foundation/NSURLSession/NSURLSessionDelegate.swift Foundation/NSURLSession/NSURLSessionTask.swift Foundation/NSURLSession/TaskRegistry.swift Foundation/NSURLSession/TransferState.swift Foundation/NSURLSession/libcurlHelpers.swift Foundation/NSUserDefaults.swift Foundation/NSUUID.swift Foundation/NSValue.swift Foundation/NSXMLDocument.swift Foundation/NSXMLDTD.swift Foundation/NSXMLDTDNode.swift Foundation/NSXMLElement.swift Foundation/NSXMLNode.swift Foundation/NSXMLParser.swift Foundation/FoundationErrors.swift Foundation/URL.swift Foundation/UUID.swift Foundation/Boxing.swift Foundation/ReferenceConvertible.swift Foundation/Date.swift Foundation/Data.swift Foundation/CharacterSet.swift Foundation/URLRequest.swift Foundation/PersonNameComponents.swift Foundation/Notification.swift Foundation/URLComponents.swift Foundation/DateComponents.swift Foundation/DateInterval.swift Foundation/IndexPath.swift Foundation/IndexSet.swift Foundation/NSStringEncodings.swift Foundation/ExtraStringAPIs.swift Foundation/Measurement.swift Foundation/NSMeasurement.swift Foundation/NSMeasurementFormatter.swift Foundation/Unit.swift Foundation/TimeZone.swift Foundation/Calendar.swift Foundation/Locale.swift Foundation/String.swift Foundation/Set.swift Foundation/Dictionary.swift Foundation/Array.swift Foundation/Bridging.swift Foundation/CGFloat.swift -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift/linux -Xcc -fblocks -resource-dir /home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift -target x86_64-unknown-linux -Ibootstrap/common/usr/include -Ibootstrap/common/usr/local/include -Ibootstrap/x86_64-linux-gnu/usr/include -Ibootstrap/x86_64-linux-gnu/usr/local/include -g -Onone -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/usr//lib/swift -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64 -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/usr/lib/swift -I/usr/include/libxml2 -I/usr/include/curl -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/xctest-linux-x86_64 -L/home/ec2-user/swift/build/Ninja-ReleaseAssert/xctest-linux-x86_64 -I/usr/include/libxml2 -I/usr/include/curl -DDEPLOYMENT_ENABLE_LIBDISPATCH -I/home/ec2-user/swift/swift-corelibs-libdispatch -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/libdispatch-linux-x86_64/src/swift -Xcc -fblocks -module-name Foundation -module-link-name Foundation -o ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o -emit-module-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.~partial.swiftmodule -emit-module-doc-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.~partial.swiftdoc -emit-dependencies-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.d -emit-reference-dependencies-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.swiftdeps -module-cache-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64
swift: /home/ec2-user/swift/swift/include/swift/Serialization/ModuleFile.h:367: Status swift::ModuleFile::error(Status): Assertion `(FileContext = Status::Malformed) && "error deserializing an individual record"' failed.
#​0 0x00000000033ef0e8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x33ef0e8)
#​1 0x00000000033ed8b6 llvm::sys::RunSignalHandlers() (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x33ed8b6)
#​2 0x00000000033efc1a SignalHandler(int) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x33efc1a)
#​3 0x00007f817776e100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#​4 0x00007f8175f3f5f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#​5 0x00007f8175f40ce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#​6 0x00007f8175f38566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#​7 0x00007f8175f38612 (/lib64/libc.so.6+0x2e612)
#​8 0x0000000000da6bae swift::ModuleFile::resolveCrossReference(swift::ModuleDecl*, unsigned int) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xda6bae)
#​9 0x0000000000d98d03 swift::ModuleFile::getDecl(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optionalswift::DeclContext\*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xd98d03)
#​10 0x0000000000da9887 swift::ModuleFile::finishNormalConformance(swift::NormalProtocolConformance*, unsigned long) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xda9887)
#​11 0x000000000115331a swift::NormalProtocolConformance::resolveLazyInfo() const (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x115331a)
#​12 0x0000000001152e60 swift::NormalProtocolConformance::getWitness(swift::ValueDecl*, swift::LazyResolver*) const (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x1152e60)
#​13 0x0000000000f1774b (anonymous namespace)::LookupResultBuilder::add(swift::ValueDecl*, swift::ValueDecl*, swift::Type) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf1774b)
#​14 0x0000000000f17e89 swift::TypeChecker::lookupMember(swift::DeclContext*, swift::Type, swift::DeclName, swift::OptionSet<swift::NameLookupFlags, unsigned int>)::$_1::operator()() const (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf17e89)
#​15 0x0000000000f17ca4 swift::TypeChecker::lookupMember(swift::DeclContext*, swift::Type, swift::DeclName, swift::OptionSet<swift::NameLookupFlags, unsigned int>) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf17ca4)
#​16 0x0000000000f66942 swift::constraints::ConstraintSystem::lookupMember(swift::Type, swift::DeclName) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf66942)
#​17 0x0000000000fd5f1d swift::constraints::ConstraintSystem::performMemberLookup(swift::constraints::ConstraintKind, swift::DeclName, swift::Type, swift::FunctionRefKind, swift::constraints::ConstraintLocator*, bool) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xfd5f1d)
#​18 0x0000000000fd7b6b swift::constraints::ConstraintSystem::simplifyMemberConstraint(swift::constraints::Constraint const&) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xfd7b6b)
#​19 0x0000000000fd8cd5 swift::constraints::ConstraintSystem::simplifyConstraint(swift::constraints::Constraint const&) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xfd8cd5)
#​20 0x0000000000f67527 swift::constraints::ConstraintSystem::addConstraint(swift::constraints::Constraint*, bool, bool) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf67527)
#​21 0x0000000000fb7d7c swift::ASTVisitor<(anonymous namespace)::ConstraintGenerator, swift::Type, void, void, void, void, void>::visit(swift::Expr*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xfb7d7c)
#​22 0x0000000000fc2efa (anonymous namespace)::ConstraintWalker::walkToExprPost(swift::Expr*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xfc2efa)
#​23 0x00000000010a5e5e swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x10a5e5e)
#​24 0x00000000010a80ae (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x10a80ae)
#​25 0x00000000010a26cb swift::Expr::walk(swift::ASTWalker&) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x10a26cb)
#​26 0x0000000000fb4438 swift::constraints::ConstraintSystem::generateConstraints(swift::Expr*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xfb4438)
#​27 0x0000000000fe01ad swift::constraints::ConstraintSystem::solve(swift::Expr*&, swift::Type, swift::ExprTypeCheckListener*, llvm::SmallVectorImplswift::constraints::Solution&, swift::FreeTypeVariableBinding) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xfe01ad)
#​28 0x0000000000ebee63 swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImplswift::constraints::Solution&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xebee63)
#​29 0x0000000000ec2585 swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xec2585)
#​30 0x0000000000ec7424 swift::TypeChecker::typeCheckCondition(swift::Expr*&, swift::DeclContext*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xec7424)
#​31 0x0000000000ec757b swift::TypeChecker::typeCheckStmtCondition(llvm::MutableArrayRefswift::StmtConditionElement&, swift::DeclContext*, swift::Diag<>) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xec757b)
#​32 0x0000000000f458cc swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf458cc)
#​33 0x0000000000f4566d swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf4566d)
#​34 0x0000000000f45907 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf45907)
#​35 0x0000000000f4566d swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf4566d)
#​36 0x0000000000f442b5 (anonymous namespace)::StmtChecker::typeCheckBody(swift::BraceStmt*&) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf442b5)
#​37 0x0000000000f4361a swift::TypeChecker::typeCheckFunctionBodyUntil(swift::FuncDecl*, swift::SourceLoc) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf4361a)
#​38 0x0000000000f4347e swift::TypeChecker::typeCheckAbstractFunctionBodyUntil(swift::AbstractFunctionDecl*, swift::SourceLoc) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf4347e)
#​39 0x0000000000f44053 swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xf44053)
#​40 0x0000000000efc7c6 typeCheckFunctionsAndExternalDecls(swift::TypeChecker&) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xefc7c6)
#​41 0x0000000000efd2f1 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xefd2f1)
#​42 0x0000000000c7f2bb swift::CompilerInstance::performSema() (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0xc7f2bb)
#​43 0x00000000007d9a20 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x7d9a20)
#​44 0x00000000007d8997 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x7d8997)
#​45 0x00000000007a0e48 main (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x7a0e48)
#​46 0x00007f8175f2bb15 __libc_start_main (/lib64/libc.so.6+0x21b15)
#​47 0x000000000079e7dd _start (/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x79e7dd)
Stack dump:
0. Program arguments: /home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift -frontend -c Foundation/NSObject.swift Foundation/NSAffineTransform.swift Foundation/NSArray.swift Foundation/NSAttributedString.swift Foundation/NSBundle.swift Foundation/NSByteCountFormatter.swift Foundation/NSCache.swift Foundation/NSCalendar.swift Foundation/NSCFArray.swift Foundation/NSCFDictionary.swift Foundation/NSCFSet.swift Foundation/NSCFString.swift Foundation/NSCharacterSet.swift Foundation/NSCFCharacterSet.swift Foundation/NSCoder.swift Foundation/NSComparisonPredicate.swift Foundation/NSCompoundPredicate.swift Foundation/NSConcreteValue.swift -primary-file Foundation/NSData.swift Foundation/NSDate.swift Foundation/NSDateComponentsFormatter.swift Foundation/NSDateFormatter.swift Foundation/NSDateIntervalFormatter.swift Foundation/NSDecimal.swift Foundation/NSDecimalNumber.swift Foundation/NSDictionary.swift Foundation/NSEnergyFormatter.swift Foundation/NSEnumerator.swift Foundation/NSError.swift Foundation/NSExpression.swift Foundation/NSFileHandle.swift Foundation/NSFileManager.swift Foundation/NSFormatter.swift Foundation/NSGeometry.swift Foundation/NSHost.swift Foundation/NSHTTPCookie.swift Foundation/NSHTTPCookieStorage.swift Foundation/NSIndexPath.swift Foundation/NSIndexSet.swift Foundation/NSJSONSerialization.swift Foundation/NSKeyedCoderOldStyleArray.swift Foundation/NSKeyedArchiver.swift Foundation/NSKeyedArchiverHelpers.swift Foundation/NSKeyedUnarchiver.swift Foundation/NSLengthFormatter.swift Foundation/NSLocale.swift Foundation/NSLock.swift Foundation/NSLog.swift Foundation/NSMassFormatter.swift Foundation/NSNotification.swift Foundation/NSNotificationQueue.swift Foundation/NSNull.swift Foundation/NSNumber.swift Foundation/NSNumberFormatter.swift Foundation/NSObjCRuntime.swift Foundation/NSOperation.swift Foundation/NSOrderedSet.swift Foundation/NSPathUtilities.swift Foundation/NSPersonNameComponents.swift Foundation/NSPersonNameComponentsFormatter.swift Foundation/NSPort.swift Foundation/NSPortMessage.swift Foundation/NSPredicate.swift Foundation/NSProcessInfo.swift Foundation/NSProgress.swift Foundation/NSPropertyList.swift Foundation/NSRange.swift Foundation/NSRegularExpression.swift Foundation/NSRunLoop.swift Foundation/NSScanner.swift Foundation/NSSet.swift Foundation/NSSortDescriptor.swift Foundation/NSSpecialValue.swift Foundation/NSStream.swift Foundation/NSString.swift Foundation/NSStringAPI.swift Foundation/NSSwiftRuntime.swift Foundation/NSTask.swift Foundation/NSTextCheckingResult.swift Foundation/NSThread.swift Foundation/NSTimer.swift Foundation/NSTimeZone.swift Foundation/NSURL.swift Foundation/NSURLAuthenticationChallenge.swift Foundation/NSURLCache.swift Foundation/NSURLCredential.swift Foundation/NSURLCredentialStorage.swift Foundation/NSURLError.swift Foundation/NSURLProtectionSpace.swift Foundation/NSURLProtocol.swift Foundation/NSURLRequest.swift Foundation/NSURLResponse.swift Foundation/NSURLSession/Configuration.swift Foundation/NSURLSession/EasyHandle.swift Foundation/NSURLSession/HTTPBodySource.swift Foundation/NSURLSession/HTTPMessage.swift Foundation/NSURLSession/MultiHandle.swift Foundation/NSURLSession/NSURLSession.swift Foundation/NSURLSession/NSURLSessionConfiguration.swift Foundation/NSURLSession/NSURLSessionDelegate.swift Foundation/NSURLSession/NSURLSessionTask.swift Foundation/NSURLSession/TaskRegistry.swift Foundation/NSURLSession/TransferState.swift Foundation/NSURLSession/libcurlHelpers.swift Foundation/NSUserDefaults.swift Foundation/NSUUID.swift Foundation/NSValue.swift Foundation/NSXMLDocument.swift Foundation/NSXMLDTD.swift Foundation/NSXMLDTDNode.swift Foundation/NSXMLElement.swift Foundation/NSXMLNode.swift Foundation/NSXMLParser.swift Foundation/FoundationErrors.swift Foundation/URL.swift Foundation/UUID.swift Foundation/Boxing.swift Foundation/ReferenceConvertible.swift Foundation/Date.swift Foundation/Data.swift Foundation/CharacterSet.swift Foundation/URLRequest.swift Foundation/PersonNameComponents.swift Foundation/Notification.swift Foundation/URLComponents.swift Foundation/DateComponents.swift Foundation/DateInterval.swift Foundation/IndexPath.swift Foundation/IndexSet.swift Foundation/NSStringEncodings.swift Foundation/ExtraStringAPIs.swift Foundation/Measurement.swift Foundation/NSMeasurement.swift Foundation/NSMeasurementFormatter.swift Foundation/Unit.swift Foundation/TimeZone.swift Foundation/Calendar.swift Foundation/Locale.swift Foundation/String.swift Foundation/Set.swift Foundation/Dictionary.swift Foundation/Array.swift Foundation/Bridging.swift Foundation/CGFloat.swift -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift/linux -Xcc -fblocks -resource-dir /home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift -target x86_64-unknown-linux -Ibootstrap/common/usr/include -Ibootstrap/common/usr/local/include -Ibootstrap/x86_64-linux-gnu/usr/include -Ibootstrap/x86_64-linux-gnu/usr/local/include -g -Onone -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/usr//lib/swift -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64 -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/usr/lib/swift -I/usr/include/libxml2 -I/usr/include/curl -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/xctest-linux-x86_64 -L/home/ec2-user/swift/build/Ninja-ReleaseAssert/xctest-linux-x86_64 -I/usr/include/libxml2 -I/usr/include/curl -DDEPLOYMENT_ENABLE_LIBDISPATCH -I/home/ec2-user/swift/swift-corelibs-libdispatch -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/libdispatch-linux-x86_64/src/swift -Xcc -fblocks -module-name Foundation -module-link-name Foundation -o ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o -emit-module-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.~partial.swiftmodule -emit-module-doc-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.~partial.swiftdoc -emit-dependencies-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.d -emit-reference-dependencies-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.swiftdeps -module-cache-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64

  1. While type-checking 'isEqual' at Foundation/NSData.swift:230:19
  2. While type-checking expression at [Foundation/NSData.swift:233:16 - line:233:30] RangeText="data.count != l"
  3. While deserializing decl #​1548 (XREF)
  4. Cross-reference to module 'Swift'
    ... Collection
    ... makeIterator
    ... with type <τ_0_0 where τ_0_0 : Collection, τ_0_0.Index : Comparable, τ_0_0.IndexDistance : SignedInteger, τ_0_0.IndexDistance.IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral, τ_0_0.IndexDistance.Stride : SignedNumber, τ_0_0.IndexDistance.Stride.IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral, τ_0_0.Indices : Sequence, τ_0_0.Indices : _Indexable, τ_0_0.Indices.Index : Comparable, τ_0_0.Indices.IndexDistance : SignedInteger, τ_0_0.Indices.IndexDistance.IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral, τ_0_0.Indices.IndexDistance.Stride : SignedNumber, τ_0_0.Indices.IndexDistance.Stride.IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral, τ_0_0.Indices.Iterator : IteratorProtocol, τ_0_0.Iterator : IteratorProtocol, τ_0_0.SubSequence : Sequence, τ_0_0.SubSequence : _IndexableBase, τ_0_0.SubSequence.Index : Comparable, τ_0_0.SubSequence.Iterator : IteratorProtocol> (τ_0_0) -> () -> τ_0_0.Iterator
    /bin/sh: line 1: 22402 Aborted /home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift -frontend -c Foundation/NSObject.swift Foundation/NSAffineTransform.swift Foundation/NSArray.swift Foundation/NSAttributedString.swift Foundation/NSBundle.swift Foundation/NSByteCountFormatter.swift Foundation/NSCache.swift Foundation/NSCalendar.swift Foundation/NSCFArray.swift Foundation/NSCFDictionary.swift Foundation/NSCFSet.swift Foundation/NSCFString.swift Foundation/NSCharacterSet.swift Foundation/NSCFCharacterSet.swift Foundation/NSCoder.swift Foundation/NSComparisonPredicate.swift Foundation/NSCompoundPredicate.swift Foundation/NSConcreteValue.swift -primary-file Foundation/NSData.swift Foundation/NSDate.swift Foundation/NSDateComponentsFormatter.swift Foundation/NSDateFormatter.swift Foundation/NSDateIntervalFormatter.swift Foundation/NSDecimal.swift Foundation/NSDecimalNumber.swift Foundation/NSDictionary.swift Foundation/NSEnergyFormatter.swift Foundation/NSEnumerator.swift Foundation/NSError.swift Foundation/NSExpression.swift Foundation/NSFileHandle.swift Foundation/NSFileManager.swift Foundation/NSFormatter.swift Foundation/NSGeometry.swift Foundation/NSHost.swift Foundation/NSHTTPCookie.swift Foundation/NSHTTPCookieStorage.swift Foundation/NSIndexPath.swift Foundation/NSIndexSet.swift Foundation/NSJSONSerialization.swift Foundation/NSKeyedCoderOldStyleArray.swift Foundation/NSKeyedArchiver.swift Foundation/NSKeyedArchiverHelpers.swift Foundation/NSKeyedUnarchiver.swift Foundation/NSLengthFormatter.swift Foundation/NSLocale.swift Foundation/NSLock.swift Foundation/NSLog.swift Foundation/NSMassFormatter.swift Foundation/NSNotification.swift Foundation/NSNotificationQueue.swift Foundation/NSNull.swift Foundation/NSNumber.swift Foundation/NSNumberFormatter.swift Foundation/NSObjCRuntime.swift Foundation/NSOperation.swift Foundation/NSOrderedSet.swift Foundation/NSPathUtilities.swift Foundation/NSPersonNameComponents.swift Foundation/NSPersonNameComponentsFormatter.swift Foundation/NSPort.swift Foundation/NSPortMessage.swift Foundation/NSPredicate.swift Foundation/NSProcessInfo.swift Foundation/NSProgress.swift Foundation/NSPropertyList.swift Foundation/NSRange.swift Foundation/NSRegularExpression.swift Foundation/NSRunLoop.swift Foundation/NSScanner.swift Foundation/NSSet.swift Foundation/NSSortDescriptor.swift Foundation/NSSpecialValue.swift Foundation/NSStream.swift Foundation/NSString.swift Foundation/NSStringAPI.swift Foundation/NSSwiftRuntime.swift Foundation/NSTask.swift Foundation/NSTextCheckingResult.swift Foundation/NSThread.swift Foundation/NSTimer.swift Foundation/NSTimeZone.swift Foundation/NSURL.swift Foundation/NSURLAuthenticationChallenge.swift Foundation/NSURLCache.swift Foundation/NSURLCredential.swift Foundation/NSURLCredentialStorage.swift Foundation/NSURLError.swift Foundation/NSURLProtectionSpace.swift Foundation/NSURLProtocol.swift Foundation/NSURLRequest.swift Foundation/NSURLResponse.swift Foundation/NSURLSession/Configuration.swift Foundation/NSURLSession/EasyHandle.swift Foundation/NSURLSession/HTTPBodySource.swift Foundation/NSURLSession/HTTPMessage.swift Foundation/NSURLSession/MultiHandle.swift Foundation/NSURLSession/NSURLSession.swift Foundation/NSURLSession/NSURLSessionConfiguration.swift Foundation/NSURLSession/NSURLSessionDelegate.swift Foundation/NSURLSession/NSURLSessionTask.swift Foundation/NSURLSession/TaskRegistry.swift Foundation/NSURLSession/TransferState.swift Foundation/NSURLSession/libcurlHelpers.swift Foundation/NSUserDefaults.swift Foundation/NSUUID.swift Foundation/NSValue.swift Foundation/NSXMLDocument.swift Foundation/NSXMLDTD.swift Foundation/NSXMLDTDNode.swift Foundation/NSXMLElement.swift Foundation/NSXMLNode.swift Foundation/NSXMLParser.swift Foundation/FoundationErrors.swift Foundation/URL.swift Foundation/UUID.swift Foundation/Boxing.swift Foundation/ReferenceConvertible.swift Foundation/Date.swift Foundation/Data.swift Foundation/CharacterSet.swift Foundation/URLRequest.swift Foundation/PersonNameComponents.swift Foundation/Notification.swift Foundation/URLComponents.swift Foundation/DateComponents.swift Foundation/DateInterval.swift Foundation/IndexPath.swift Foundation/IndexSet.swift Foundation/NSStringEncodings.swift Foundation/ExtraStringAPIs.swift Foundation/Measurement.swift Foundation/NSMeasurement.swift Foundation/NSMeasurementFormatter.swift Foundation/Unit.swift Foundation/TimeZone.swift Foundation/Calendar.swift Foundation/Locale.swift Foundation/String.swift Foundation/Set.swift Foundation/Dictionary.swift Foundation/Array.swift Foundation/Bridging.swift Foundation/CGFloat.swift -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift/linux -Xcc -fblocks -resource-dir /home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift -target x86_64-unknown-linux -Ibootstrap/common/usr/include -Ibootstrap/common/usr/local/include -Ibootstrap/x86_64-linux-gnu/usr/include -Ibootstrap/x86_64-linux-gnu/usr/local/include -g -Onone -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/usr//lib/swift -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64 -I../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/usr/lib/swift -I/usr/include/libxml2 -I/usr/include/curl -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/xctest-linux-x86_64 -L/home/ec2-user/swift/build/Ninja-ReleaseAssert/xctest-linux-x86_64 -I/usr/include/libxml2 -I/usr/include/curl -DDEPLOYMENT_ENABLE_LIBDISPATCH -I/home/ec2-user/swift/swift-corelibs-libdispatch -I/home/ec2-user/swift/build/Ninja-ReleaseAssert/libdispatch-linux-x86_64/src/swift -Xcc -fblocks -module-name Foundation -module-link-name Foundation -o ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o -emit-module-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.~partial.swiftmodule -emit-module-doc-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.~partial.swiftdoc -emit-dependencies-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.d -emit-reference-dependencies-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation/NSData.swift.o.swiftdeps -module-cache-path ../build/Ninja-ReleaseAssert/foundation-linux-x86_64
@belkadan
Copy link
Contributor

belkadan commented Sep 8, 2016

Hm. Is your Dispatch up-to-date? If you update the compiler and standard library, you need to rebuild the Dispatch overlay too.

@swift-ci
Copy link
Collaborator Author

swift-ci commented Sep 8, 2016

Comment by W S (JIRA)

Thanks – rebuilding dispatch did the trick!

(Dispatch was pulled, but something must've been up with the incremental/it wasn't rebuilt... deleting the build/Ninja-ReleaseAssert/libdispatch-linux-x86_64 directory allowed foundation to be built successfully!)

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software
Projects
None yet
Development

No branches or pull requests

3 participants