Rust 1.47+ (LLVM11) miscompilation on MSVC
Categories
(Firefox Build System :: Toolchains, defect)
Tracking
(Not tracked)
People
(Reporter: jrmuizel, Unassigned)
References
Details
This version of the test passes:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a3ebf0f1f1c1dbb8473e9118c41f1d397c897ec4
This version doesn't:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=62432b7209ebfc51cbb8d5bc6dfbc85972c499e0
The difference is:
https://hg.mozilla.org/try/rev/ef805b7366cbc73ebbba84b0c9fc5f01a60fac4a
which shouldn't make any difference.
Unfortunately, I can't reproduce the test failure locally.
Reporter | ||
Comment 1•4 years ago
|
||
The test is passing with rustc 1.43.0
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3352ef8843aaffc42802ba162d1bac1b8cb5d171&selectedTaskRun=HI-U8NyqQx66cucdH6NvJg.0
Reporter | ||
Comment 2•4 years ago
|
||
Reporter | ||
Comment 3•4 years ago
|
||
nightly-2020-08-20 - good - https://treeherder.mozilla.org/#/jobs?repo=try&revision=c3ebb9ef160130a23d4f20b4d5a155b44997bed5
nightly-2020-08-27 - bad - https://treeherder.mozilla.org/#/jobs?repo=try&revision=20da5949f689e330f985ff7a3231e751baac4607
Reporter | ||
Comment 4•4 years ago
|
||
My guess is that it's caused by the upgrade to LLVM 11 :(
Reporter | ||
Comment 5•4 years ago
|
||
Here are 08-24: https://treeherder.mozilla.org/#/jobs?repo=try&revision=75c40b737d490b1d4ee44187eee1551bdf81a4f8
and 08-23: https://treeherder.mozilla.org/#/jobs?repo=try&revision=cb49bc57532fcd3ce2726a829ec27f809c6e0bce
which surround the LLVM update.
Comment 6•4 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #5)
Here are 08-24: https://treeherder.mozilla.org/#/jobs?repo=try&revision=75c40b737d490b1d4ee44187eee1551bdf81a4f8
and 08-23: https://treeherder.mozilla.org/#/jobs?repo=try&revision=cb49bc57532fcd3ce2726a829ec27f809c6e0bce
which surround the LLVM update.
If you apply bug 1672328, you can replace nightly-yyyy-mm-dd with bors-sha1 where sha1 is a merge commit authored by bors in the rust repo, so you could check for sure that it's the LLVM update by testing that merge and its parent.
Reporter | ||
Comment 7•4 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #6)
If you apply bug 1672328, you can replace nightly-yyyy-mm-dd with bors-sha1 where sha1 is a merge commit authored by bors in the rust repo, so you could check for sure that it's the LLVM update by testing that merge and its parent.
I'll try that tomorrow. In the mean time let's see if it's fixed in Nightly:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8fdc9dcf7b31843950da162fbaec31ce3b23d0a3
Comment 8•4 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #7)
(In reply to Mike Hommey [:glandium] from comment #6)
If you apply bug 1672328, you can replace nightly-yyyy-mm-dd with bors-sha1 where sha1 is a merge commit authored by bors in the rust repo, so you could check for sure that it's the LLVM update by testing that merge and its parent.
I'll try that tomorrow. In the mean time let's see if it's fixed in Nightly:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8fdc9dcf7b31843950da162fbaec31ce3b23d0a3
This won't work because of a) bug 1428197 and b) bug 1672837. You want nightly-2020-10-22 and to apply bug 1672837
Reporter | ||
Comment 9•4 years ago
|
||
Comment 10•4 years ago
|
||
I confirmed it comes from the merge of LLVM11:
before: https://treeherder.mozilla.org/#/jobs?repo=try&revision=52c6d14a571ab093e7210db13a032e3d676d7912
after: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c2c46cec0ee554963b78e782f55a2d749b72ef98
Reporter | ||
Comment 11•4 years ago
|
||
Reporter | ||
Comment 12•4 years ago
|
||
Adding codegen-units=1 let's me reproduce this locally.
Comment 13•4 years ago
|
||
Here are two other LLVM 11 bugs reported through rust: https://bugs.llvm.org/show_bug.cgi?id=47444 https://bugs.llvm.org/show_bug.cgi?id=47090
It's a long shot, but any chance their patches fix this?
Reporter | ||
Updated•4 years ago
|
Updated•3 years ago
|
Comment 14•2 years ago
|
||
We're now on LLVM 15, this was likely fixed a long time ago.
Description
•