-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Potential compiler memory leak in Nightly #75808
Comments
@sazzer it would be great if you could reproduce this in a stand-alone example, or at least the commit of the project that causes the hang. |
@jyn514 The project link would have helped, wouldn't it? Sorry! :(
(There are some other branches that I've been playing with other things on. It's the "rust" branch that is interesting here) When doing either (Please don't judge me on the quality of the code - I'm still learning :) ) Cheers |
Thanks! Don't worry about the code quality, part of rustc's job is to give good errors for broken code, not just code that's already working :) (the commit that failed was https://github.com/sazzer/mire/commit/0bfad66a070673c58c1e98d334c5500712c77e63) |
Just to clarify btw - it's not the commit that fails. That commit works fine on an earlier nightly toolchain, and on the stable toolchain. I've also not seen which of the earlier commits also fail on the newer nightly toolchain - though I can do if it would be useful? I suspect that it starts from https://github.com/sazzer/mire/commit/589c1b7. |
Ok - the first commit that shows the problem appears to be https://github.com/sazzer/mire/commit/c927b77. |
It would be great to do some bisection and try to find an MCVE. |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @camelid @chrissimpkins @contrun @DutchGhost @elshize @ethanboxx @h-michael @HallerPatrick @hdhoang @hellow554 @imtsuki @kanru @KarlK90 @LeSeulArtichaut @MAdrianMattocks @matheus-consoli @mental32 @nmccarty @Noah-Kennedy @pard68 @PeytonT @pierreN @Redblueflame @RobbieClarken @RobertoSnap @robjtede @SarthakSingh31 @senden9 @shekohex @sinato @spastorino @turboladen @woshilapin @yerke |
Adding |
Just an FYI that my CI build just auto-updated to the new stable 1.46.0 and this is now happening there too. A build at 0822 BST worked successfully on rustc 1.45.2, and a build at 2033 BST failed, now using rustc 1.46.0. There were zero changes to the Rust code between those two builds, and the only difference is that because I'm using Cheers |
Minimized (as best I could) to: use actix_web::{web::Data, HttpResponse};
use tokio_postgres::Client;
pub trait HttpServiceFactory {
fn register(self);
}
pub struct Complete;
impl HttpServiceFactory for Complete {
fn register(self) {
pub async fn complete(client: Data<Client>) -> HttpResponse {
async { create(&client).await }.await;
HttpResponse::NotFound().finish()
}
actix_web::Resource::new("/").to(complete);
}
}
async fn create(client: &Client) {
async move {
get_by_authentication(client).await;
client.query_one("", &[]).await.unwrap();
}
.await
}
async fn get_by_authentication(client: &Client) {
async move {
client.query_one("", &[]).await.unwrap();
}
.await
} Bisected to find the regression in #75443, all of which suggests it's another take on #75992. |
Closing as duplicate of #75992 |
(Apologies if I've done this wrong. I've used the Bug template and not the ICE one because I'm not getting the "Internal Compiler Error" error message. I've also had a bit of a search and not seen anyone else reporting this at all, but I can't see anything unusual that I'm doing.)
I have a project that recently stopped building, and it's taken me a while to work out why. I still don't know everything - sorry! - but what I do know is this:
The error happens in the method:
If I remove the
.await
call in there then the build completes. If I leave the.await
in then it breaks.However, I've got other Actix endpoints that use async/await and they work perfectly well.
Cheers
The text was updated successfully, but these errors were encountered: