Crashlog in DerivedData/Logs/Test/Attachments is missing exception stack trace

Originator:pohilets
Number:rdar://39348255 Date Originated:11 Apr 2018
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9.2 (9C40b), Xcode 9.3 (9E145), Xcode 9.4 (9Q1004a)
Classification: Reproducible:Always
 
Summary:
When SUT crashes because of an unhandled exception while executing UI tests, crash log in $DERIVED_DATA/Logs/Test/Attachments shows non-informative stack trace of the abort() call. But information about throwing point is lost.

In contrast, ~/Library/Logs/DiagnosticReports/ contains this information in the section titled 'Application Specific Backtrace 1'

Example crash logs from Attachments and ~/Library/Logs/DiagnosticReports/ are attached.

Steps to Reproduce:
Execute attached demo UI tests from the command line
xcodebuild test -project CrashInTest.xcodeproj -scheme CrashInTest -destination 'platform=iOS Simulator,name=iPhone 6,OS=11.0.1'

Expected Results:
Folder $DERIVED_DATA/Logs/Test/Attachments should contain crash logs with a stack trace showing exception throwing point.

Actual Results:
Stack trace for exception throwing point is missing.

Version/Build:
Xcode 9.2 (9C40b)
Xcode 9.3 (9E145),
Xcode 9.4 (9Q1004a)

Configuration:
macOS 10.13.4 (17E199)

Comments


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!