Skip to content

[SR-2230] clang-built swift compiler breaks since clang revision 274385 #44837

Open
@swift-ci

Description

@swift-ci
Previous ID SR-2230
Radar https://llvm.org/bugs/show_bug.cgi?id=28695
Original Reporter shaharv (JIRA User)
Type Bug

Attachment: Download

Environment

Ubuntu 16.04, Clang 4.0 (trunk)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee None
Priority Medium

md5: 49328686a4a24a9624f2fe30c30ebae6

Issue Description:

clang-built swift compiler breaks since clang revision 274385.
This might be related to clang issue #28603 (https://llvm.org/bugs/show_bug.cgi?id=28603).

When building swift using clang r274385, the built swift compiler asserts, and fails to build the swift runtime. With clang r274379 (revisions 274380-4 seem unrelated), swift is built successfully. clang r274385 revealed some cases of user code breaking due to dangling references, which might be related. See also comments to clang bug #28695 (https://llvm.org/bugs/show_bug.cgi?id=28695).

This issue reproduced with swift-DEVELOPMENT-SNAPSHOT-2016-06-20-a-1538-ge657ece, but also with a much older version (from Aug/15).

For reproduction, please refer to the attached script, clang_swift_good_and_bad.sh, which fetches swift and clang, builds clang r274379 ("good"), builds swift (successful), fetches and builds clang r274385 ("bad"), and builds swift (asserts). Also please see log_ubuntu_16_04_25Jul16.txt for reference output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions