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

Seg fault compiling for the first time #27

Open
kuyawa opened this issue Jan 19, 2017 · 3 comments
Open

Seg fault compiling for the first time #27

kuyawa opened this issue Jan 19, 2017 · 3 comments

Comments

@kuyawa
Copy link

kuyawa commented Jan 19, 2017

Hey guys, I love this project so I cloned it, opened it in Xcode and started compiling just to get a segfault error in MultiDictionary.swift:

Showing Recent Messages
Command failed due to signal: Segmentation fault: 11

Showing Recent Messages
CompileSwift normal x86_64 /Volumes/Documents/mini/Sites/Swift/Embassy/Embassy/MultiDictionary.swift

Let me know what I need to do in order to make it run, can't wait to test it.

@kuyawa
Copy link
Author

kuyawa commented Jan 19, 2017

More from the dump just in case:

0  swift                    0x000000010577db6d PrintStackTraceSignalHandler(void*) + 45
1  swift                    0x000000010577d5b6 SignalHandler(int) + 470
2  libsystem_platform.dylib 0x00007fffeb9b3bba _sigtramp + 26
3  libsystem_platform.dylib 0x1fd7b62c9304da14 _sigtramp + 2808716916
4  swift                    0x0000000102bba8d2 llvm::Value* llvm::function_ref<llvm::Value* (unsigned int)>::callback_fn<swift::irgen::emitArchetypeWitnessTableRef(swift::irgen::IRGenFunction&, swift::CanTypeWrapper<swift::ArchetypeType>, swift::ProtocolDecl*)::$_0>(long, unsigned int) + 530
5  swift                    0x0000000102c98600 swift::irgen::emitImpliedWitnessTableRef(swift::irgen::IRGenFunction&, llvm::ArrayRef<swift::irgen::ProtocolEntry>, swift::ProtocolDecl*, llvm::function_ref<llvm::Value* (unsigned int)> const&) + 240
6  swift                    0x0000000102bba6a7 swift::irgen::emitArchetypeWitnessTableRef(swift::irgen::IRGenFunction&, swift::CanTypeWrapper<swift::ArchetypeType>, swift::ProtocolDecl*) + 247
7  swift                    0x0000000102c98986 swift::irgen::emitWitnessTableRef(swift::irgen::IRGenFunction&, swift::CanType, llvm::Value**, swift::ProtocolConformanceRef) + 102
8  swift                    0x0000000102c65fcf void llvm::function_ref<void (unsigned int, swift::CanType, llvm::Optional<swift::ProtocolConformanceRef>)>::callback_fn<(anonymous namespace)::GenericArguments::collect(swift::irgen::IRGenFunction&, swift::CanType)::'lambda'(unsigned int, swift::CanType, llvm::Optional<swift::ProtocolConformanceRef>)>(long, unsigned int, swift::CanType, llvm::Optional<swift::ProtocolConformanceRef>) + 63
9  swift                    0x0000000102c99bdd swift::irgen::GenericTypeRequirements::enumerateFulfillments(swift::irgen::IRGenModule&, llvm::ArrayRef<swift::Substitution>, llvm::function_ref<void (unsigned int, swift::CanType, llvm::Optional<swift::ProtocolConformanceRef>)>) + 1229
10 swift                    0x0000000102c653d4 emitNominalMetadataRef(swift::irgen::IRGenFunction&, swift::NominalTypeDecl*, swift::CanType) + 452
11 swift                    0x0000000102c5b8b9 swift::irgen::IRGenFunction::emitTypeMetadataRef(swift::CanType) + 73
12 swift                    0x0000000102c05bff swift::irgen::IRGenerator::emitLazyDefinitions() + 2959
13 swift                    0x0000000102cc619b performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile*, unsigned int) + 1723
14 swift                    0x0000000102b941c7 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*) + 23687
15 swift                    0x0000000102b8c265 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 17029
16 swift                    0x0000000102b4982d main + 8685
17 libdyld.dylib            0x00007fffeb7a7255 start + 1

@fangpenlin
Copy link
Contributor

@kuyawa are you using the latest Xcode, 8.2.1?

@kuyawa
Copy link
Author

kuyawa commented Jan 20, 2017

Nop, Xcode 8 and Swift 3. Will update and try again, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants