Created
November 2, 2015 15:58
-
-
Save bjtitus/bc40845dcc8064305eb9 to your computer and use it in GitHub Desktop.
Swift Profile Coverage Mapping Ternary Compiler Crashes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 swift 0x0000000105bbc33b llvm::sys::PrintStackTrace(__sFILE*) + 43 | |
1 swift 0x0000000105bbca7b SignalHandler(int) + 379 | |
2 libsystem_platform.dylib 0x00007fff8b24052a _sigtramp + 26 | |
3 libc++.1.dylib 0x00007fff8f4d93c6 std::__1::num_put<char, std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > >::do_put(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::ios_base&, char, unsigned long) const + 0 | |
4 swift 0x00000001042f05da swift::Expr::walk(swift::ASTWalker&) + 26 | |
5 swift 0x0000000103ec7951 walkForProfiling(swift::AbstractFunctionDecl*, swift::ASTWalker&) + 225 | |
6 swift 0x0000000103ec732d swift::Lowering::SILGenProfiling::assignRegionCounters(swift::AbstractFunctionDecl*) + 573 | |
7 swift 0x0000000103ed265d (anonymous namespace)::SILGenType::emitType() + 701 | |
8 swift 0x0000000103ed232e swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) + 30 | |
9 swift 0x0000000103e5ae0b swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*, unsigned int) + 779 | |
10 swift 0x0000000103e5b9c0 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*, llvm::Optional<unsigned int>, bool, bool) + 928 | |
11 swift 0x0000000103e5bd6d swift::performSILGeneration(swift::FileUnit&, swift::SILOptions&, llvm::Optional<unsigned int>, bool) + 109 | |
12 swift 0x0000000103cafb92 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&) + 11442 | |
13 swift 0x0000000103caccd3 frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2691 | |
14 swift 0x0000000103ca9354 main + 2324 | |
15 libdyld.dylib 0x00007fff8a0f55ad start + 1 | |
16 libdyld.dylib 0x0000000000000011 start + 1978706533 | |
Stack dump: | |
0. Program arguments: /Applications/Xcode.a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class MyClass { | |
var aTernary = NSDate() == NSDate(timeIntervalSinceNow: 20) ? "true" : "false" | |
//lazy var workingTernary: String = NSDate() == NSDate(timeIntervalSinceNow: 20) ? "true" : "false" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for posting this, it helped me debug a crash of my own.
Was a bug or radar submitted for this crash?