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-4850] Assertion failed: (Val && "isa<> used on a null pointer"), function doit #47427

Closed
tonyarnold opened this issue May 10, 2017 · 3 comments
Closed

Comments

@tonyarnold
Copy link
Contributor

@tonyarnold tonyarnold commented May 10, 2017

Previous ID SR-4850
Radar rdar://problem/32134722
Original Reporter @tonyarnold
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, 4.0Regression, CompilerCrash, Serialization
Assignee @jckarter
Priority Medium

md5: 869484af6967f3090bfa4d3d963c03a4

relates to:

  • SR-4853 Compiler assertion in recent snapshot.
  • SR-4863 Swift compiler crashes on building SWXMLHash 3.0.2 with swift-DEVELOPMENT-SNAPSHOT-2017-05-10-a

Issue Description:

When building the open source Down framework from https://github.com/iwasrobbed/Down, I'm seeing the following Swift Compiler Error: "Command failed due to signal: Abort trap: 6"

Showing Recent Errors Only
MergeSwiftModule normal x86_64 /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down.swiftmodule
    cd /Users/tonyarnold/Documents/Repositories/Down
    /Users/tonyarnold/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2017-05-09-a.xctoolchain/usr/bin/swift -frontend -emit-module /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/NSAttributedString+HTML~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownView~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownAttributedStringRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownHTMLRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/String+ToHTML~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownXMLRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownOptions~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownGroffRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownCommonMarkRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownLaTeXRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownErrors~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownASTRenderable~partial.swiftmodule -parse-as-library -target x86_64-apple-ios8.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -I /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Products/Debug-iphonesimulator -I /Users/tonyarnold/Documents/Repositories/Down/Source/cmark -F /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Products/Debug-iphonesimulator -enable-testing -g -module-cache-path /Users/tonyarnold/Library/Developer/Xcode/DerivedData/ModuleCache -D DEBUG -serialize-debugging-options -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Down-generated-files.hmap -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Down-own-target-headers.hmap -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Down-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Down-project-headers.hmap -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/DerivedSources/x86_64 -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/tonyarnold/Documents/Repositories/Down -emit-module-doc-path /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down.swiftdoc -module-name Down -emit-objc-header-path /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down-Swift.h -o /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down.swiftmodule

Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/llvm/include/llvm/Support/Casting.h, line 95.
0  swift                    0x000000010642d998 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x000000010642c966 llvm::sys::RunSignalHandlers() + 86
2  swift                    0x000000010642df59 SignalHandler(int) + 361
3  libsystem_platform.dylib 0x00007fff8c1b4b3a _sigtramp + 26
4  swift                    0x0000000106d1e008 (anonymous namespace)::DarwinX86AsmBackend::getCompactUnwindRegNum(unsigned int) const::CU64BitRegs + 192686
5  libsystem_c.dylib        0x00007fff8c039420 abort + 129
6  libsystem_c.dylib        0x00007fff8c000893 basename_r + 0
7  swift                    0x0000000103e07149 swift::ModuleFile::finishNormalConformance(swift::NormalProtocolConformance*, unsigned long long) + 4249
8  swift                    0x000000010425f6e3 swift::NormalProtocolConformance::resolveLazyInfo() const + 99
9  swift                    0x0000000103e39d95 swift::serialization::Serializer::writeNormalConformance(swift::NormalProtocolConformance const*) + 661
10 swift                    0x0000000103e4840b swift::serialization::Serializer::writeAllDeclsAndTypes() + 2699
11 swift                    0x0000000103e49898 swift::serialization::Serializer::writeAST(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, bool) + 3288
12 swift                    0x0000000103e4e55b swift::serialization::Serializer::writeToStream(llvm::raw_ostream&, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SILModule const*, swift::SerializationOptions const&) + 139
13 swift                    0x0000000103e7f0e3 void llvm::function_ref<void (llvm::raw_ostream&)>::callback_fn<swift::serialize(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SerializationOptions const&, swift::SILModule const*)::$_4>(long, llvm::raw_ostream&) + 179
14 swift                    0x0000000103e4f6eb withOutputFile(swift::ASTContext&, llvm::StringRef, llvm::function_ref<void (llvm::raw_ostream&)>) + 395
15 swift                    0x0000000103e4f4dc swift::serialize(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SerializationOptions const&, swift::SILModule const*) + 220
16 swift                    0x000000010322c28c performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 10428
17 swift                    0x00000001032288fa swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2650
18 swift                    0x00000001031e53a0 main + 3312
19 libdyld.dylib            0x00007fff8bfa5235 start + 1
20 libdyld.dylib            0x0000000000000048 start + 1946529300
Stack dump:
0.  Program arguments: /Users/tonyarnold/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2017-05-09-a.xctoolchain/usr/bin/swift -frontend -emit-module /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/NSAttributedString+HTML~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownView~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownAttributedStringRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownHTMLRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/String+ToHTML~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownXMLRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownOptions~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownGroffRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownCommonMarkRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownLaTeXRenderable~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownErrors~partial.swiftmodule /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/DownASTRenderable~partial.swiftmodule -parse-as-library -target x86_64-apple-ios8.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -I /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Products/Debug-iphonesimulator -I /Users/tonyarnold/Documents/Repositories/Down/Source/cmark -F /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Products/Debug-iphonesimulator -enable-testing -g -module-cache-path /Users/tonyarnold/Library/Developer/Xcode/DerivedData/ModuleCache -D DEBUG -serialize-debugging-options -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Down-generated-files.hmap -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Down-own-target-headers.hmap -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Down-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Down-project-headers.hmap -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/DerivedSources/x86_64 -Xcc -I/Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/tonyarnold/Documents/Repositories/Down -emit-module-doc-path /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down.swiftdoc -module-name Down -emit-objc-header-path /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down-Swift.h -o /Users/tonyarnold/Library/Developer/Xcode/DerivedData/Down-etihjsvrytuqvuffipswjcqkmkym/Build/Intermediates/Down.build/Debug-iphonesimulator/Down.build/Objects-normal/x86_64/Down.swiftmodule 
@belkadan
Copy link
Contributor

@belkadan belkadan commented May 10, 2017

@swift-ci create

@jckarter
Copy link
Member

@jckarter jckarter commented May 13, 2017

PR for master: #9562
And 4.0: #9563

@slavapestov
Copy link
Member

@slavapestov slavapestov commented Sep 21, 2017

I think this is done, the PR was merged.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants