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

[HEADS UP] Realm swift 3.0 support is blocked due to Xcode 8 beta 3 swift compiler bug #1269

Closed
liuxuan30 opened this issue Jul 26, 2016 · 2 comments

Comments

@liuxuan30
Copy link
Member

liuxuan30 commented Jul 26, 2016

So I use this thread to let everyone knows Realm swift 3.0 support had issues and blocks our swift 3.0 branch.

Due to swift 3.0 bug: https://bugs.swift.org/browse/SR-1779 (realm/realm-swift#3746), we are having issues to let Realm support swift 3.0:

If you tried to convert RLMArray and RLMResults in RealmChartUtils.swift to conform Sequence protocol you would see seg fault 11:

0  swift                    0x000000010d97128b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1  swift                    0x000000010d970576 llvm::sys::RunSignalHandlers() + 70
2  swift                    0x000000010d9718df SignalHandler(int) + 287
3  libsystem_platform.dylib 0x00007fff8f87252a _sigtramp + 26
4  libsystem_malloc.dylib   0x00007fff8a6fd5a1 malloc_zone_malloc + 71
5  swift                    0x000000010b43f059 swift::irgen::IRGenFunction::emitTypeMetadataRef(swift::CanType) + 73
6  swift                    0x000000010b46c6ed bool llvm::function_ref<bool (swift::Type)>::callback_fn<swift::Type::visit(llvm::function_ref<void (swift::Type)>) const::'lambda'(swift::Type)>(long, swift::Type) + 13
7  swift                    0x000000010bbe0cee swift::Type::findIf(llvm::function_ref<bool (swift::Type)>) const::Walker::walkToTypePre(swift::Type) + 14
8  swift                    0x000000010bbe8b00 swift::TypeVisitor<(anonymous namespace)::Traversal, bool>::visit(swift::Type) + 3728
9  swift                    0x000000010bbe7c26 swift::Type::walk(swift::TypeWalker&) const + 54
10 swift                    0x000000010bbd8804 swift::Type::findIf(llvm::function_ref<bool (swift::Type)>) const + 36
11 swift                    0x000000010b4b964e swift::SILVisitor<(anonymous namespace)::IRGenSILFunction, void>::visit(swift::ValueBase*) + 49758
12 swift                    0x000000010b4a999d swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 7933
13 swift                    0x000000010b3ff8c4 swift::irgen::IRGenerator::emitGlobalTopLevel() + 596
14 swift                    0x000000010b48deff performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile*, unsigned int) + 1135
15 swift                    0x000000010b48e336 swift::performIRGeneration(swift::IRGenOptions&, swift::SourceFile&, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, unsigned int) + 70
16 swift                    0x000000010b3ba67c performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*) + 13980
17 swift                    0x000000010b3b60d2 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2898
18 swift                    0x000000010b384154 main + 2884
19 libdyld.dylib            0x00007fff86a0d5ad start + 1
@liuxuan30 liuxuan30 changed the title [Heads up] Realm swift 3.0 is blocked due to Xcode 8 beta 3 swift compiler bug [Heads up] Realm swift 3.0 support is blocked due to Xcode 8 beta 3 swift compiler bug Jul 26, 2016
@liuxuan30 liuxuan30 changed the title [Heads up] Realm swift 3.0 support is blocked due to Xcode 8 beta 3 swift compiler bug [HEADS UP] Realm swift 3.0 support is blocked due to Xcode 8 beta 3 swift compiler bug Jul 26, 2016
@ahknight
Copy link

ahknight commented Aug 1, 2016

Related to #1119 IMO. These shouldn't be fundamentally joined.

@pmairoldi
Copy link
Collaborator

Fixed Already

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

3 participants