Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Jul 19, 2024 · 0 comments
Labels
C-Bug An unexpected or incorrect behavior O-Windows Specific to the Windows desktop operating system P-Crash A sudden unexpected crash S-Blocked This cannot move forward until something else changes

Comments

@janhohenheim
Copy link
Member

janhohenheim commented Jul 19, 2024

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.

@janhohenheim janhohenheim added C-Bug An unexpected or incorrect behavior P-Crash A sudden unexpected crash O-Windows Specific to the Windows desktop operating system S-Blocked This cannot move forward until something else changes labels Jul 19, 2024
@janhohenheim janhohenheim changed the title It's possible to hit unreachable code of the standard library when compiling with dynamic_linking and release on Windows It's possible to hit unreachable code of the standard library when compiling with dynamic_linking and release on Windows in certain cases Jul 19, 2024
@janhohenheim janhohenheim added the S-Needs-Investigation This issue requires detective work to figure out what's going wrong label Jul 19, 2024
@janhohenheim janhohenheim removed the S-Needs-Investigation This issue requires detective work to figure out what's going wrong label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug An unexpected or incorrect behavior O-Windows Specific to the Windows desktop operating system P-Crash A sudden unexpected crash S-Blocked This cannot move forward until something else changes
Projects
None yet
Development

No branches or pull requests

1 participant