[SR-4535] Compiler aborts due to segmentation fault with main.swift #47112
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
code coverage
Area → source tooling: code coverage
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
Attachment: Download
Environment
macOS 10.12.4
Xcode 8.3 and 8.3.1
Additional Detail from JIRA
md5: a7cc5edc3bf3ec5d3264bcfd23618762
Issue Description:
Problem
Compiler fails when running unit tests with a
Segmentation fault: 11
.Such crash happens when both are true:
Code coverage is enabled (
Gather coverage data
option is enabled on the scheme)A custom
main.swift
file is present to prevent loading the app delegate when running tests.To be clear, if one disables the code coverage, tests run just fine.
main.swift
How to reproduce
Create a new empty project
Enable code coverage
Add
main.swift
with the code presented aboveRun unit tests
The attached project was created following these steps.
Stack Trace
The text was updated successfully, but these errors were encountered: