Skip to content

LLVM assertion failures hang with a modal dialog on Windows #92829

Description

@hkratz

The Windows CI build with LLVM assertions enabled recently hung without an error message. It turned out to be an LLVM assertion failure resulting in a dialog which needed to be acknowledged, see #92535 (comment).

According to the assert documentation such a dialog is always displayed, but that is not the whole truth. Apparently _CrtSetReportHook() can be used to customize assertion failure handling. We should definitely make assertions failures exit with error after printing failure information to stderr instead of displaying a dialog and hanging.

@rustbot label O-windows

Activity

  1. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Jan 12, 2022
  2. Patrick-Poitras commented on Jan 13, 2022

    @Patrick-Poitras
    Contributor

    Could this be part of why we're getting so many hangs in the CI?

  3. hkratz commented on Jan 14, 2022

    @hkratz
    ContributorAuthor

    @Patrick-Poitras That was responsible for four stuck dist-x86_64-msvc-alt builds recently. I don't think it was responsible for many timed out builds before that.

  4. ehuss commented on Jan 28, 2022

    @ehuss
    Contributor

    Posted #93402 with a possible solution.

  5. added 2 commits that reference this issue on Feb 3, 2022
    22da463
    1de6839
  6. added a commit that references this issue on Feb 4, 2022
    f7e0f97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions