You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-bugCategory: This is a bug.I-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessP-criticalCritical priorityT-releaseRelevant to the release subteam, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.
Reacted by Peter Hall, Ohjun Kwon, Aaron Hill, BigWebCat, Harrison McCullough, Ryan Brainard, Mahdi, Nils Andre, Robbert van der Helm, Nick Linker and 17 more
Reacted by kittenswolf
Reacted by Mingwei Samuel, Kashif, Eric S. Londres, Jeong, YunWon, 0xd34d10cc, Aurelia Molzer, lmnzx, Peter-Jan Gootzen, Jarek Samic, Darren Kaste and 11 more
I'm confused. Based on the examples this bug appears to be very impactful, i.e. it should break a lot of code. Yet it made it to stable which, I assume, involves a crater run and independent testing on beta. Is there a subtle condition to this bug that isn't met in most productive code?
Reacted by Marco Conte, Ivan Kalinin, jrop, taylorsmurphy, Wesley Wiser, Diana, 许杰友 Jieyou Xu (Joe), Sung Jeon, Maximilian Orsley, Carlos Rueda and 2 more
The bug is almost impossible to trigger on real world code. You need all values that are going into the bug to be constant values and there can't be any control flow or function calls in between.
Reacted by Fabian, Dirkjan Ochtman, Wesley Wiser, Christos Papadopoulos, Diana, Michael Watzko, Darek, 许杰友 Jieyou Xu (Joe), Sung Jeon, lcnr and 22 more
I am happy to include 5fa8b08 in 1.45.1. @oli-obk -- there's some merge conflicts when cherry-picking onto stable, could you provide a commit/PR against stable with the merge conflicts fixed?
FWIW, I find the notion of putting warnings or saying "don't use this release" to be something we probably don't want to do right now. We'd basically have to do so for all non-latest Rust versions; they're all "unsupported" and may contain this (or other) problems. We ourselves do not patch more than the latest stable release if CVEs are detected, generally speaking. I would also ask that further discussion about yanking releases and such be directed to an internals thread and not this issue to avoid creating noise while we resolve this bug.
Reacted by Josh Stone, lcnr, Wesley Wiser, 许杰友 Jieyou Xu (Joe), Jonas Schievink, Emerald, Laurențiu Nicola, Fabian, Léo Lanteri Thauvin, Aman Harwara and 13 more
C-bugCategory: This is a bug.I-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessP-criticalCritical priorityT-releaseRelevant to the release subteam, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.
Activity
mcarton commentedon Jul 25, 2020
With beta or nightly this again prints
13as expected.lcnr commentedon Jul 25, 2020
This is a duplicate of the already fixed #73609
It seems like this bug somehow slipped into beta :/
SimonSapin commentedon Jul 25, 2020
@rust-lang/release Should there be a 1.45.1 with #73609?
peterjoel commentedon Jul 25, 2020
jonas-schievink commentedon Jul 25, 2020
peterjoel commentedon Jul 25, 2020
benschulz commentedon Jul 25, 2020
I'm confused. Based on the examples this bug appears to be very impactful, i.e. it should break a lot of code. Yet it made it to stable which, I assume, involves a crater run and independent testing on beta. Is there a subtle condition to this bug that isn't met in most productive code?
oli-obk commentedon Jul 25, 2020
The bug is almost impossible to trigger on real world code. You need all values that are going into the bug to be constant values and there can't be any control flow or function calls in between.
2 remaining items
LeSeulArtichaut commentedon Jul 25, 2020
Assigning
P-criticalas discussed as part of the Prioritization WG Procedure.Mark-Simulacrum commentedon Jul 25, 2020
I am happy to include 5fa8b08 in 1.45.1. @oli-obk -- there's some merge conflicts when cherry-picking onto stable, could you provide a commit/PR against stable with the merge conflicts fixed?
FWIW, I find the notion of putting warnings or saying "don't use this release" to be something we probably don't want to do right now. We'd basically have to do so for all non-latest Rust versions; they're all "unsupported" and may contain this (or other) problems. We ourselves do not patch more than the latest stable release if CVEs are detected, generally speaking. I would also ask that further discussion about yanking releases and such be directed to an internals thread and not this issue to avoid creating noise while we resolve this bug.
oli-obk commentedon Jul 25, 2020
on itNevermind, @wesleywiser is already on it ❤️zhuxiujia commentedon Jul 25, 2020
llacroix commentedon Jul 25, 2020
oli-obk commentedon Jul 25, 2020
jonas-schievink commentedon Jul 25, 2020
This thread has served its purpose, so locking it.
pnkfelix commentedon Jul 30, 2020
@lcnr commented:
by the way, this issue was not, technically, a duplicate of #73609.
Or at least, the issue described in #73609 only surfaces under conditions witnessed after commit 38bd83d (PR #71911, merged on June 21st)
bisected with cargo-bisect-rustc v0.5.2
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
while this issue surfaces under conditions witnessed after commit 3fe4dd2 (PR #71953, merged on May 11th)
bisected with cargo-bisect-rustc v0.5.2
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
It does seem like the same patch (PR #73613) fixes both issues; i.e., it seems likely that there is indeed one bug underlying both distinct issues.
But the fact that they are distinct issues helps explain why we did not backport the fix to beta way back when.
Rollup merge of rust-lang#75449 - RalfJung:const-prop-test, r=wesleyw…
Rollup merge of rust-lang#75449 - RalfJung:const-prop-test, r=wesleyw…