Clang Analyze crashes Xcode when the new Build System is enabled (Xcode 9)

Originator:steipete
Number:rdar://32920792 Date Originated:22-Jun-2017 12:30 PM
Status:Closed Resolved:
Product:Developer Tools Product Version:Xcode 9b2
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Getting an assertion error when running Analyzer with new build system. It works fine and passes without warnings on the old build system.

ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-13134.23/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/BuildCommandResultsPostprocessing/XCStaticAnalyzerResultsPostprocessor.mm:97
Details:  files should be an instance inheriting from NSArray, but it is nil
Function: void XCGenerateAnalyzerDiagnosticsFromFile(NSString *__strong, IDEActivityLogSectionRecorder *__strong)
Thread:   <NSThread: 0x7f86dc3c4d10>{number = 52, name = (null)}

Steps to Reproduce:
Have some random huge project, run Analyze with new Build System enabled.

Expected Results:
things should work. (regular build works fine with new build system)

Actual Results:
Xcode dies.

Version:
Xcode 9b2

Notes:
See https://gist.github.com/steipete/fdbfbf08046eda1bf076416143a12503 for stack trace

Unable to send our whole project and cannot infer a sample, but can help further if you have other ideas IF this is needed.

Comments

Fixed in Xcode 9.3b1


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!