Xcode-beta (7A121l): Compiling Swift app failes with "Command failed due to signal: Abort trap: 6"

Originator:dieter.komendera
Number:rdar://21668238 Date Originated:03-Jul-2015 12:25 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A121l)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Compiling the attached project with Xcode 7 beta 2 fails with: 

Assertion failed: ((!FileContext || issue != Status::Malformed) && "error deserializing an individual record"), function error, file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.0.42.3/src/swift/include/swift/Serialization/ModuleFile.h, line 348.
0  swift                    0x000000010babfb9b llvm::sys::PrintStackTrace(__sFILE*) + 43
1  swift                    0x000000010bac02db SignalHandler(int) + 379
2  libsystem_platform.dylib 0x00007fff8cc62f1a _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1933168896
4  libsystem_c.dylib        0x00007fff88279b53 abort + 129
5  libsystem_c.dylib        0x00007fff88241c39 basename + 0
6  swift                    0x0000000109e8c3fa swift::ModuleFile::resolveCrossReference(swift::ModuleDecl*, unsigned int) + 4858
7  swift                    0x0000000109e82e04 swift::ModuleFile::getDecl(llvm::Fixnum<31u, unsigned int>, llvm::Optional<swift::DeclContext*>) + 9668
8  swift                    0x0000000109e7def6 swift::ModuleFile::getType(llvm::Fixnum<31u, unsigned int>) + 1062
9  swift                    0x0000000109e85698 swift::ModuleFile::getDecl(llvm::Fixnum<31u, unsigned int>, llvm::Optional<swift::DeclContext*>) + 20056
10 swift                    0x0000000109e7def6 swift::ModuleFile::getType(llvm::Fixnum<31u, unsigned int>) + 1062
11 swift                    0x0000000109eae717 swift::ModuleFile::loadObjCMethods(swift::ClassDecl*, swift::ObjCSelector, bool, llvm::TinyPtrVector<swift::AbstractFunctionDecl*>&) + 231
12 swift                    0x0000000109ef59dc swift::SerializedModuleLoader::loadObjCMethods(swift::ClassDecl*, swift::ObjCSelector, bool, unsigned int, llvm::TinyPtrVector<swift::AbstractFunctionDecl*>&) + 76
13 swift                    0x000000010a1b9538 swift::ASTContext::loadObjCMethods(swift::ClassDecl*, swift::ObjCSelector, bool, unsigned int, llvm::TinyPtrVector<swift::AbstractFunctionDecl*>&) + 88

Steps to Reproduce:
Compile the attached project

Expected Results:
Compiles or useful error message

Actual Results:
Swift compiler crash

Regression:

Notes:

Comments

I'm seeing this as well on Xcode 7 beta 2 during Archive creation 100% of the time. This happens on a specific file. However this same source will build and run in the simulator and on a device. This only happens during archiving for me

By David.Capino at July 4, 2015, 5:59 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!