Swift Compiler Error Swift 1.2 - Segmentation Error: 11

I just upgraded to Swift 1.2, and when I try to compile an iOS application using the Release schema, I get "segmentation fault: 11". In the merge step, after all the .swift files have been compiled, I get a seg error.

MergeSwiftModule normal armv7 /../path/project.swiftmodule >

This is a rather complicated project and is associated with several third-party ios structures that are written in Obj-C. It seems like this may be the reason for this, but I'm not sure what to do with it. Has anyone else encountered this problem?

    0 swift 0x000000010582ca08 llvm :: sys :: PrintStackTrace (__ sFILE *) + 40
    1 swift 0x000000010582ceee4 SignalHandler (int) + 452
    2 libsystem_platform.dylib 0x00007fff8b945f1a _sigtramp + 26
    3 libsystem_platform.dylib 0xffffffffffffffff _sigtramp + 1953210623
    4 swift 0x00000001053aaf1f swift :: ModuleFile :: getType (llvm :: Fixnum) + 655
    5 swift 0x00000001053af3c2 swift :: ModuleFile :: getDecl (llvm :: Fixnum, llvm :: Optional) + 11234
    6 swift 0x00000001053aaf0d swift :: ModuleFile :: getType (llvm :: Fixnum) + 637
    7 swift 0x00000001053c9c47 swift :: ModuleFile :: loadObjCMethods (swift :: ClassDecl *, swift :: ObjCSelector, bool, llvm :: TinyPtrVector &) + 199
    8 swift 0x0000000105407d6c swift :: SerializedModuleLoader :: loadObjCMethods (swift :: ClassDecl *, swift :: ObjCSelector, bool, unsigned int, llvm :: TinyPtrVector &) + 76
    9 swift 0x0000000105e42df8 swift :: ASTContext :: loadObjCMethods (swift :: ClassDecl *, swift :: ObjCSelector, bool, unsigned int, llvm :: TinyPtrVector &) + 88
    10 swift 0x0000000105edf58f swift :: ClassDecl :: lookupDirect (swift :: ObjCSelector, bool) + 127
    11 swift 0x000000010546b6e6 (anonymous namespace) :: SwiftDeclConverter :: methodAlreadyImported (swift :: ObjCSelector, bool, swift :: DeclContext *) + 214
    12 swift 0x000000010546b2da (anonymous namespace) :: SwiftDeclConverter :: importConstructor (clang :: ObjCMethodDecl const *, swift :: DeclContext *, bool, llvm :: Optional, bool) + 202
    13 swift 0x000000010545cbd0 (anonymous namespace) :: SwiftDeclConverter :: VisitObjCMethodDecl (clang :: ObjCMethodDecl const *, swift :: DeclContext *, bool) + 96
    14 swift 0x0000000105459c4a swift :: ClangImporter :: Implementation :: importDeclImpl (clang :: NamedDecl const *, bool &, bool &) + 330
    15 swift 0x000000010545c7f8 swift :: ClangImporter :: Implementation :: importDeclAndCacheImpl (clang :: NamedDecl const *, bool) + 248
    16 swift 0x0000000105460623 swift :: ClangImporter :: Implementation :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 1219
    17 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    18 swift 0x0000000105eaf32c swift :: NominalTypeDecl :: getMembers (bool) const + 28
    19 swift 0x0000000105edf33f swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 79
    20 swift 0x0000000105edd647 swift :: DeclContext :: lookupQualified (swift :: Type, swift :: DeclName, unsigned int, swift :: LazyResolver *, llvm :: SmallVectorImpl &) const + 3111
    21 swift 0x000000010545d793 (anonymous namespace) :: SwiftDeclConverter :: VisitObjCPropertyDecl (clang :: ObjCPropertyDecl const *, swift :: DeclContext *) + 179
    22 swift 0x0000000105459c4a swift :: ClangImporter :: Implementation :: importDeclImpl (clang :: NamedDecl const *, bool &, bool &) + 330
    23 swift 0x000000010545c7f8 swift :: ClangImporter :: Implementation :: importDeclAndCacheImpl (clang :: NamedDecl const *, bool) + 248
    24 swift 0x0000000105460623 swift :: ClangImporter :: Implementation :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 1219
    25 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    26 swift 0x0000000105eaf845 swift :: ExtensionDecl :: getMembers (bool) const + 21
    27 swift 0x0000000105edf31d swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 45
    28 swift 0x0000000105edd647 swift :: DeclContext :: lookupQualified (swift :: Type, swift :: DeclName, unsigned int, swift :: LazyResolver *, llvm :: SmallVectorImpl &) const + 3111
    29 swift 0x000000010545d793 (anonymous namespace) :: SwiftDeclConverter :: VisitObjCPropertyDecl (clang :: ObjCPropertyDecl const *, swift :: DeclContext *) + 179
    30 swift 0x0000000105459c4a swift :: ClangImporter :: Implementation :: importDeclImpl (clang :: NamedDecl const *, bool &, bool &) + 330
    31 swift 0x000000010545c7f8 swift :: ClangImporter :: Implementation :: importDeclAndCacheImpl (clang :: NamedDecl const *, bool) + 248
    32 swift 0x0000000105460623 swift :: ClangImporter :: Implementation :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 1219
    33 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    34 swift 0x0000000105eaf845 swift :: ExtensionDecl :: getMembers (bool) const + 21
    35 swift 0x0000000105edf31d swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 45
    36 swift 0x0000000105edd647 swift :: DeclContext :: lookupQualified (swift :: Type, swift :: DeclName, unsigned int, swift :: LazyResolver *, llvm :: SmallVectorImpl &) const + 3111
    37 swift 0x000000010545d793 (anonymous namespace) :: SwiftDeclConverter :: VisitObjCPropertyDecl (clang :: ObjCPropertyDecl const *, swift :: DeclContext *) + 179
    38 swift 0x0000000105459c4a swift :: ClangImporter :: Implementation :: importDeclImpl (clang :: NamedDecl const *, bool &, bool &) + 330
    39 swift 0x000000010545c7f8 swift :: ClangImporter :: Implementation :: importDeclAndCacheImpl (clang :: NamedDecl const *, bool) + 248
    40 swift 0x0000000105460623 swift :: ClangImporter :: Implementation :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 1219
    41 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    42 swift 0x0000000105eaf845 swift :: ExtensionDecl :: getMembers (bool) const + 21
    43 swift 0x0000000105edf31d swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 45
    44 swift 0x0000000105edd647 swift :: DeclContext :: lookupQualified (swift :: Type, swift :: DeclName, unsigned int, swift :: LazyResolver *, llvm :: SmallVectorImpl &) const + 3111
    45 swift 0x000000010545d793 (anonymous namespace) :: SwiftDeclConverter :: VisitObjCPropertyDecl (clang :: ObjCPropertyDecl const *, swift :: DeclContext *) + 179
    46 swift 0x0000000105459c4a swift :: ClangImporter :: Implementation :: importDeclImpl (clang :: NamedDecl const *, bool &, bool &) + 330
    47 swift 0x000000010545c7f8 swift :: ClangImporter :: Implementation :: importDeclAndCacheImpl (clang :: NamedDecl const *, bool) + 248
    48 swift 0x0000000105460623 swift :: ClangImporter :: Implementation :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 1219
    49 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    50 swift 0x0000000105eaf845 swift :: ExtensionDecl :: getMembers (bool) const + 21
    51 swift 0x0000000105edf31d swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 45
    52 swift 0x0000000105edd647 swift :: DeclContext :: lookupQualified (swift :: Type, swift :: DeclName, unsigned int, swift :: LazyResolver *, llvm :: SmallVectorImpl &) const + 3111
    53 swift 0x000000010545d793 (anonymous namespace) :: SwiftDeclConverter :: VisitObjCPropertyDecl (clang :: ObjCPropertyDecl const *, swift :: DeclContext *) + 179
    54 swift 0x0000000105459c4a swift :: ClangImporter :: Implementation :: importDeclImpl (clang :: NamedDecl const *, bool &, bool &) + 330
    55 swift 0x000000010545c7f8 swift :: ClangImporter :: Implementation :: importDeclAndCacheImpl (clang :: NamedDecl const *, bool) + 248
    56 swift 0x0000000105460623 swift :: ClangImporter :: Implementation :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 1219
    57 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    58 swift 0x0000000105eaf845 swift :: ExtensionDecl :: getMembers (bool) const + 21
    59 swift 0x0000000105edf31d swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 45
    60 swift 0x0000000105edd647 swift :: DeclContext :: lookupQualified (swift :: Type, swift :: DeclName, unsigned int, swift :: LazyResolver *, llvm :: SmallVectorImpl &) const + 3111
    61 swift 0x000000010545d793 (anonymous namespace) :: SwiftDeclConverter :: VisitObjCPropertyDecl (clang :: ObjCPropertyDecl const *, swift :: DeclContext *) + 179
    62 swift 0x0000000105459c4a swift :: ClangImporter :: Implementation :: importDeclImpl (clang :: NamedDecl const *, bool &, bool &) + 330
    63 swift 0x000000010545c7f8 swift :: ClangImporter :: Implementation :: importDeclAndCacheImpl (clang :: NamedDecl const *, bool) + 248
    64 swift 0x0000000105460623 swift :: ClangImporter :: Implementation :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 1219
    65 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    66 swift 0x0000000105eaf845 swift :: ExtensionDecl :: getMembers (bool) const + 21
    67 swift 0x0000000105edf31d swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 45
    68 swift 0x0000000105edd647 swift :: DeclContext :: lookupQualified (swift :: Type, swift :: DeclName, unsigned int, swift :: LazyResolver *, llvm :: SmallVectorImpl &) const + 3111
    69 swift 0x000000010545d793 (anonymous namespace) :: SwiftDeclConverter :: VisitObjCPropertyDecl (clang :: ObjCPropertyDecl const *, swift :: DeclContext *) + 179
    70 swift 0x0000000105459c4a swift :: ClangImporter :: Implementation :: importDeclImpl (clang :: NamedDecl const *, bool &, bool &) + 330
    71 swift 0x000000010545c7f8 swift :: ClangImporter :: Implementation :: importDeclAndCacheImpl (clang :: NamedDecl const *, bool) + 248
    72 swift 0x0000000105460623 swift :: ClangImporter :: Implementation :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 1219
    73 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    74 swift 0x0000000105eaf845 swift :: ExtensionDecl :: getMembers (bool) const + 21
    75 swift 0x0000000105edf31d swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 45
    76 swift 0x00000001053b4eab swift :: ModuleFile :: resolveCrossReference (swift :: Module *, unsigned int) + 2027
    77 swift 0x00000001053ae31e swift :: ModuleFile :: getDecl (llvm :: Fixnum, llvm :: Optional) + 6974
    78 swift 0x00000001053b147c swift :: ModuleFile :: getDecl (llvm :: Fixnum, llvm :: Optional) + 19612
    79 swift 0x00000001053b4668 swift :: ModuleFile :: readMembers (llvm :: SmallVectorImpl &) + 248
    80 swift 0x00000001053b61ae swift :: ModuleFile :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 158
    81 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    82 swift 0x0000000105eaf32c swift :: NominalTypeDecl :: getMembers (bool) const + 28
    83 swift 0x0000000105edf33f swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 79
    84 swift 0x00000001053b4eab swift :: ModuleFile :: resolveCrossReference (swift :: Module *, unsigned int) + 2027
    85 swift 0x00000001053ae31e swift :: ModuleFile :: getDecl (llvm :: Fixnum, llvm :: Optional) + 6974
    86 swift 0x00000001053aaf0d swift :: ModuleFile :: getType (llvm :: Fixnum) + 637
    87 swift 0x00000001053abe80 swift :: ModuleFile :: getType (llvm :: Fixnum) + 4592
    88 swift 0x00000001053b02fc swift :: ModuleFile :: getDecl (llvm :: Fixnum, llvm :: Optional) + 15132
    89 swift 0x00000001053b4668 swift :: ModuleFile :: readMembers (llvm :: SmallVectorImpl &) + 248
    90 swift 0x00000001053b61ae swift :: ModuleFile :: loadAllMembers (swift :: Decl *, unsigned long long, bool *) + 158
    91 swift 0x0000000105eba1b9 swift :: IterableDeclContext :: loadAllMembers () const + 89
    92 swift 0x0000000105eaf32c swift :: NominalTypeDecl :: getMembers (bool) const + 28
    93 swift 0x0000000105edf33f swift :: NominalTypeDecl :: lookupDirect (swift :: DeclName) + 79
    94 swift 0x00000001053b4eab swift :: ModuleFile :: resolveCrossReference (swift :: Module *, unsigned int) + 2027
    95 swift 0x00000001053ae31e swift :: ModuleFile :: getDecl (llvm :: Fixnum, llvm :: Optional) + 6974
    96 swift 0x00000001053aaf0d swift :: ModuleFile :: getType (llvm :: Fixnum) + 637
    97 swift 0x00000001053af3c2 swift :: ModuleFile :: getDecl (llvm :: Fixnum, llvm :: Optional) + 11234
    98 swift 0x00000001053cae19 swift :: ModuleFile :: getTopLevelDecls (llvm :: SmallVectorImpl &) + 937
    99 swift 0x0000000105ecd2dc swift :: Module :: getTopLevelDecls (llvm :: SmallVectorImpl &) const + 60
    100 swift 0x000000010541f8ba swift :: printAsObjC (llvm :: raw_ostream &, swift :: Module *, llvm :: StringRef, swift :: Accessibility) + 474
    101 swift 0x00000001051177ec printAsObjC (std :: __ 1 :: basic_string, std :: __ 1 :: allocator> const &, swift :: Module *, llvm :: StringRef, bool) + 332
    102 swift 0x0000000105116016 frontend_main (llvm :: ArrayRef, char const *, void *) + 4998
    103 swift 0x0000000105114ae6 main + 1814
    104 libdyld.dylib 0x00007fff8863a5c9 start + 1
    105 libdyld.dylib 0x000000000000006e start + 2006735526

+4
source share

All Articles