Skip to content

Instantly share code, notes, and snippets.

@mattn
Last active December 5, 2015 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/e6978e482cda29276f34 to your computer and use it in GitHub Desktop.
Save mattn/e6978e482cda29276f34 to your computer and use it in GitHub Desktop.
#!swift
import Foundation
import Glibc
let operation = NSBlockOperation(block: {
for _ in 1...5 {
print("Hello")
}
})
fatal error: init(block:) is not yet implemented: file Foundation/NSObjCRuntime.swift, line 64
0 swift 0x0000000002f15268 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 swift 0x0000000002f13a36 llvm::sys::RunSignalHandlers() + 54
2 swift 0x0000000002f15d9a
3 libpthread.so.0 0x00007f7052d59340
4 libswiftCore.so 0x00007f705082229c _TTSf4s_s_s_n___TFs16_assertionFailedFTVs12StaticStringSSS_Su_T_ + 124
5 libFoundation.so 0x00007f704dddb000
6 libFoundation.so 0x00007f704dddc09c
7 libFoundation.so 0x00007f704dddc0d9 _TFC10Foundation16NSBlockOperationCfT5blockFT_T__S0_ + 57
8 libFoundation.so 0x00007f7053beb069 _TFC10Foundation16NSBlockOperationCfT5blockFT_T__S0_ + 98627529
9 swift 0x0000000000ce9284 llvm::MCJIT::runFunction(llvm::Function*, llvm::ArrayRef<llvm::GenericValue>) + 996
10 swift 0x0000000000cec80f llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::vector<std::string, std::allocator<std::string> > const&, char const* const*) + 1215
11 swift 0x0000000000b4ab5a swift::RunImmediately(swift::CompilerInstance&, std::vector<std::string, std::allocator<std::string> > const&, swift::IRGenOptions&, swift::SILOptions const&) + 2074
12 swift 0x0000000000762b69
13 swift 0x000000000075ef3b frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2395
14 swift 0x0000000000759bb1 main + 2705
15 libc.so.6 0x00007f7051f6cec5 __libc_start_main + 245
16 swift 0x000000000075902d
Stack dump:
0. Program arguments: /home/vagrant/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04/usr/bin/swift -frontend -interpret bar.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -module-name bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment