Skip to content

It's possible to hit unreachable code of the standard library when compiling with dynamic_linking and release on Windows in certain cases #14396

Open
@janhohenheim

Description

@janhohenheim

Bevy version

0.14.0

Relevant system information

If you cannot get Bevy to build or run on your machine, please include:

  • the Rust version you're using (you can get this by running cargo --version)
    • 1.81.0-nightly
  • the operating system or browser used, including its version
    • Windows 11

What you did

See rust-lang/rust#127979

What went wrong

We hit this line of unreachable code: https://github.com/rust-lang/rust/blob/master/library/std/src/sys/sync/once/futex.rs#L142

Additional information

Looks like a bug in the standard library and not Bevy itself. Still noting it because users might run into it and get very confused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behaviorO-WindowsSpecific to the Windows desktop operating systemP-CrashA sudden unexpected crashS-BlockedThis cannot move forward until something else changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions