Skip to content

Nightly with MIRI and FFI #86261

Closed
Closed

Description

@jorgecarleitao

While trying to unpin nightly (2021-03-25) to latest nightly, I have hit an internal compiler error.

Complete build log

It emerged between 2021-03-25 and today's build.

All the details are in the build log. In particular,

  • rustc 1.55.0-nightly (24bdc6d73 2021-06-12) running on x86_64-unknown-linux-gnu

The error seems to emerge when compiling a transitive dependency, so it is not very easy to reproduce with a minimal example.

git clone git@github.com:jorgecarleitao/arrow2.git
cd arrow2
rustup toolchain install nightly
rustup default nightly
rustup component add rustfmt miri

cargo miri setup
cargo clean
cargo miri build

Activity

  1. added
    C-bugCategory: This is a bug.
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Jun 13, 2021
  2. RalfJung commented on Jun 13, 2021

    @RalfJung
    Member

    @hyd-dev found out that the issue boils down to this strange bit of code

    #[no_mangle]
    #[cfg(feature="std")]
    use std::{thread,panic, io, boxed, any, string};

    Does it make any sense to put no_mangle on a use item...??

  3. syvb commented on Jun 14, 2021

    @syvb
    Contributor

    @RalfJung It doesn't -- it even generates a warning:

    warning: attribute should be applied to a function or static
     --> src/ffi/mod.rs:3:1
      |
    3 | #[no_mangle]
      | ^^^^^^^^^^^^
    4 | #[cfg(feature="std")]
    5 | use std::{thread,panic, io, boxed, any, string};
      | ------------------------------------------------ not a function or static
      |
      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    
  4. syvb commented on Jun 14, 2021

    @syvb
    Contributor

    @rustbot claim

  5. added a commit that references this issue on Jun 14, 2021
    1500598
  6. added a commit that references this issue on Jun 15, 2021
  7. removed their assignment
    on Jun 15, 2021
  8. added a commit that references this issue on Jun 15, 2021
    246571a
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

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-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