Uploaded image for project: 'Swift'
  1. Swift
  2. SR-5061

Assertion failed: (FD >= 0 && "File not yet open!")

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Package Manager
    • Environment:

      Latest Swift 4.0 snapshot on macOS: swift-4.0-DEVELOPMENT-SNAPSHOT-2017-05-29-a

      Description

      $ TOOLCHAINS=org.swift.4020170529a swift build
      Compile CYaml src/reader.c
      Compile CYaml src/writer.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 'SwiftyTextTable' (1 sources)
      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 'SwiftLintFramework' (161 sources)
      Assertion failed: (FD >= 0 && "File not yet open!"), function preferred_buffer_size, file /Users/buildnode/jenkins/workspace/oss-swift-4.0-package-osx/llvm/lib/Support/raw_ostream.cpp, line 624.
      0  swiftc                   0x0000000110164158 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
      1  swiftc                   0x0000000110163126 llvm::sys::RunSignalHandlers() + 86
      2  swiftc                   0x0000000110164719 SignalHandler(int) + 361
      3  libsystem_platform.dylib 0x00007fffe3e2bb3a _sigtramp + 26
      4  swiftc                   0x0000000110a58008 (anonymous namespace)::DarwinX86AsmBackend::getCompactUnwindRegNum(unsigned int) const::CU64BitRegs + 192958
      5  libsystem_c.dylib        0x00007fffe3cb0420 abort + 129
      6  libsystem_c.dylib        0x00007fffe3c77893 basename_r + 0
      7  swiftc                   0x000000011014c9ca llvm::raw_fd_ostream::preferred_buffer_size() const + 122
      8  swiftc                   0x000000011014ac80 llvm::raw_ostream::SetBuffered() + 16
      9  swiftc                   0x000000011014b441 llvm::raw_ostream::write(char const*, unsigned long) + 33
      10 swiftc                   0x000000010cf24b2c swift::driver::Compilation::performJobs() + 396
      11 swiftc                   0x000000010cf17614 main + 2212
      12 libdyld.dylib            0x00007fffe3c1c235 start + 1
      Stack dump:
      0.	Program arguments: /Library/Developer/Toolchains/swift-4.0-DEVELOPMENT-SNAPSHOT-2017-05-29-a.xctoolchain/usr/bin/swiftc -module-name SwiftLintFramework -incremental -emit-dependencies -emit-module -emit-module-path /Users/jp/Downloads/SwiftLint/.build/debug/SwiftLintFramework.swiftmodule -output-file-map /Users/jp/Downloads/SwiftLint/.build/debug/SwiftLintFramework.build/output-file-map.json -parse-as-library -num-threads 8 -c /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/Array+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/CharacterSet+LinuxHack.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/Dictionary+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/File+Cache.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/File+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/NSFileManager+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/NSRange+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/NSRegularExpression+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/QueuedPrint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/String+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/String+XML.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/Structure+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/SwiftDeclarationKind+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/SwiftExpressionKind.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/SyntaxKind+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Extensions/SyntaxMap+SwiftLint.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Helpers/RegexHelpers.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/AccessControlLevel.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/Command.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/Configuration+Cache.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/Configuration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/ConfigurationError.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/Correction.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/Linter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/LinterCache.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/Location.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/MasterRuleList.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/Region.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/RuleDescription.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/RuleParameter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/StyleViolation.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/SwiftVersion.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/Version.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/ViolationSeverity.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Models/YamlParser.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Protocols/ASTRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Protocols/CacheDescriptionProvider.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Protocols/Reporter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Protocols/Rule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Protocols/RuleConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Reporters/CSVReporter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Reporters/CheckstyleReporter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Reporters/EmojiReporter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Reporters/HTMLReporter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Reporters/JSONReporter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Reporters/JUnitReporter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Reporters/XcodeReporter.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/AttributesRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/AttributesRulesExamples.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ClassDelegateProtocolRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ClosingBraceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ClosureEndIndentationRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ClosureParameterPositionRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ClosureSpacingRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ColonRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/CommaRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/CompilerProtocolInitRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ConditionalReturnsOnNewlineRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ControlStatementRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/CustomRules.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/CyclomaticComplexityRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/DiscardedNotificationCenterObserverRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/DynamicInlineRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/EmptyCountRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/EmptyEnumArgumentsRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/EmptyParametersRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/EmptyParenthesesWithTrailingClosureRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ExplicitInitRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ExplicitTopLevelACLRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ExplicitTypeInterfaceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/FatalErrorMessageRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/FileHeaderRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/FileLengthRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/FirstWhereRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ForWhereRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ForceCastRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ForceTryRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ForceUnwrappingRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/FunctionBodyLengthRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/FunctionParameterCountRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/GenericTypeNameRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/IdentifierNameRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/IdentifierNameRuleExamples.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ImplicitGetterRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ImplicitReturnRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ImplicitlyUnwrappedOptionalRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/LargeTupleRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/LeadingWhitespaceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/LegacyCGGeometryFunctionsRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/LegacyConstantRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/LegacyConstantRuleExamples.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/LegacyConstructorRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/LegacyNSGeometryFunctionsRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/LineLengthRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/MarkRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/MultilineParametersRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/MultilineParametersRuleExamples.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/NestingRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/NimbleOperatorRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/NoExtensionAccessModifier.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/NotificationCenterDetachmentRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/NotificationCenterDetachmentRuleExamples.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/NumberSeparatorRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/NumberSeparatorRuleExamples.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ObjectLiteralRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/OpeningBraceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/OperatorFunctionWhitespaceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/OperatorUsageWhitespaceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/OverriddenSuperCallRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/PrivateOutletRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/PrivateUnitTestRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ProhibitedSuperRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ProtocolPropertyAccessorsOrderRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RedundantDiscardableLetRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RedundantNilCoalescingRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RedundantOptionalInitializationRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RedundantStringEnumValueRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RedundantVoidReturnRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ReturnArrowWhitespaceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/AttributesConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/ColonConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/CyclomaticComplexityConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/FileHeaderConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/ImplicitlyUnwrappedOptionalConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/LineLengthConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/NameConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/NestingConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/NumberSeparatorConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/OverridenSuperCallConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/PrivateOutletRuleConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/PrivateUnitTestConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/ProhibitedSuperConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/RegexConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/SeverityConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/SeverityLevelsConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/StatementPositionConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/TrailingCommaConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/TrailingWhitespaceConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/UnusedOptionalBindingConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/RuleConfigurations/VerticalWhitespaceConfiguration.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ShorthandOperatorRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/SortedImportsRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/StatementPositionRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/SwitchCaseOnNewlineRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/SyntacticSugarRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/TodoRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/TrailingCommaRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/TrailingNewlineRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/TrailingSemicolonRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/TrailingWhitespaceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/TypeBodyLengthRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/TypeNameRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/TypeNameRuleExamples.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/UnusedClosureParameterRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/UnusedEnumeratedRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/UnusedOptionalBindingRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/ValidIBInspectableRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/VerticalParameterAlignmentRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/VerticalWhitespaceRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/VoidReturnRule.swift /Users/jp/Downloads/SwiftLint/Source/SwiftLintFramework/Rules/WeakDelegateRule.swift -I /Users/jp/Downloads/SwiftLint/.build/debug -swift-version 4 -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode-8.3.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -F /Applications/Xcode-8.3.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Onone -g -enable-testing -j8 -DSWIFT_PACKAGE -Xcc -fmodule-map-file=/Users/jp/Downloads/SwiftLint/.build/debug/CYaml.build/module.modulemap -I /Users/jp/Downloads/SwiftLint/.build/checkouts/Yams.git-8068124914099325722/Sources/CYaml/include -Xcc -fmodule-map-file=/Users/jp/Downloads/SwiftLint/.build/checkouts/SourceKit.git-6033254968535974678/module.modulemap -Xcc -fmodule-map-file=/Users/jp/Downloads/SwiftLint/.build/checkouts/Clang_C.git-5715122005051714050/module.modulemap -module-cache-path /Users/jp/Downloads/SwiftLint/.build/debug/ModuleCache 
      error: terminated(1): /Library/Developer/Toolchains/swift-4.0-DEVELOPMENT-SNAPSHOT-2017-05-29-a.xctoolchain/usr/bin/swift-build-tool -f /Users/jp/Downloads/SwiftLint/.build/debug.yaml
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jpsim JP Simard
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: