-
Notifications
You must be signed in to change notification settings - Fork 101
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
Bevy dynamic-linking makes the program crash #1530
Comments
I don't use Windows, so I'm not sure I will be able to figure out what is going wrong. In any case could you please post a backtrace of the segfault?
This panic happens when trying to spawn a new thread. The error is not really informative about which parameter of the thread spawn function is incorrect. |
I tried yesterday, but I'm not sure how to GDB a Rust dynamically linked program since it complains about I'll try later today. |
Well, I couldn't figure out a way to debug the builds, but apparently |
You need to add both the full path to the |
Minimal reproducible example: https://github.com/GlennFolker/cranedrop
The
dynamic_linking
feature flag, which converts bevy and std into a dylib for compile-time speedup, completely fails when using the Cranelift codegen backend.System information:
rustc 1.83.0-nightly (0609062a9 2024-09-13)
.~/.cargo/Config.toml
:cargo run
withmulti_threading
disabled made the program encounter a segfault:cargo run
withmulti_threading
enabled made the program panic:The text was updated successfully, but these errors were encountered: