-
Notifications
You must be signed in to change notification settings - Fork 39
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
Printing / Formatting f64 crashes #136
Comments
This should now be fixed by the 1.64.0.0 release. |
I don't believe this has been fixed, I can repro on an esp32-s3 with: use log::*;
fn main() -> ! {
esp_idf_sys::link_patches();
esp_idf_svc::log::EspLogger::initialize_default();
info!("{}", 3.14_f64 * 2.0);
loop {
std::thread::sleep(std::time::Duration::from_millis(50));
}
} built with
Full trace:
|
You're right, thanks, I guess I wasn't compiling in release when I tested this again. I will reopen and will investigate shortly. |
@MabezDev, I noticed the same bug when formatting f32 on release mode. Tested on 1.65.0.0.
f64:
On the
And if I enable |
This issue has been found and fixed with this commit in llvm: espressif/llvm-project@7c941f4 we expect to close this issue (for good this time :D) with the 1.66.0.0 rust release :). |
This code
works correct for debug builds on ESP32 but crashes for release builds like this:
This happens on the current (1.63.0.2) version and at least a few older ones
The text was updated successfully, but these errors were encountered: