Skip to content

rust-lld corruption with Ctrl+C #128860

Closed as not planned
Closed as not planned
@Axel-Reactor

Description

@Axel-Reactor

When interrupting linking with rust-lld.exe it sometimes corrupts the target and the only recovery is cargo clean.
I'm getting tones of errors like this if I try cargo build again after:
= note: rust-lld: error: undefined symbol: anon.8ff5a01038e5b419b80b5d238bffa21c.22.llvm.13741956020784447919
rust-lld: error: undefined symbol: xx::xxxx::xxxx::GLOBAL::h22b2a472d7972d2f (.llvm.10192556018238492745)
rust-lld: error: undefined symbol: core::hint::unreachable_unchecked::precondition_check::h644ec5c1a75164f9 (.llvm.10192556018238492745)

This isn't a good UX. Ctrl+C should be robust and not leave things in a bad state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationA-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions