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
Although it is still not clear if this is an issue with dotnet/runtime or maybe something wrong with the project (such as incorrect build targets/dependencies), this quantifies as something we would classify as blocking-release if it is indeed an issue coming from the runtime or libraries themselves.
This is being opened as a tracking issue until we can finish root causing the issue and determine what here is broken.
Reacted by Scott Williams, Eriawan Kusumawardhono and bkaid
Yeah, I don't think this is area-System.Drawing (CC. @jeffhandley).
I don't think there is a good area we can categorize this as other than just "tracking-external-issue", at least until we can determine if it is actually a runtime issue or not.
Just to re-iterate, I only see the issue when deploying a release configuration to an Azure App Service from Visual Studio 2019 with a self-contained .Net 5 RC-1 runtime being installed. And only when the App Service is rather limited in memory. Is there anyway we can use that exact setup to recreate the issue?
Reacted by Jeff Handley and Santiago Fernandez Madero
git bisect reports the same. b1f107e is good and f6b31c2 is bad.
The assert goes away as does the image corruption.
From the PR it isnt very clear why it would be consistent failure only on single proc. Is there an explanation?
The AVX register is meant to be ECX, bit 28. One of the queries was checking EDX, bit 28 by accident.
EDX, bit 28 is the bit that indicates Multi-Threading support:
A value of 0 for HTT indicates there is only a single logical processor in
the package and software should assume only a single APIC ID is reserved. A value of 1 for HTT indicates the
value in CPUID.1.EBX[23:16] (the Maximum number of addressable IDs for logical processors in this package) is
valid for the package.
Reacted by James Jackson-South, Jeff Handley, Justin Adler, Brian Popow, Mukul Sabharwal and Renato
Have troubles reproducing this locally on Linux - no matter what I do the cpuid still shows HTT to be set and there is no repro of the issue on both rc1 and rc2.
@brianpopow as far as I understood from SixLabors/ImageSharp#1356 you managed to repro this on Linux - could you do this only an Azure VM or you also had a local repro?
Thanks @echesakovMSFT and @tannergooding for investigating! @JimBobSquarePants@tocsoft@brianpopow, if you could also please validate we can close this out. .net 5 RC2 should be releasing in two weeks. Thx!
Reacted by Julie Lee, Jeff Handley, Brian Popow and Dan Moseley
Reacted by James Jackson-South, Dan Moseley and bkaid
Activity
tannergooding commentedon Sep 30, 2020
CC. @danmosemsft, @jeffschwMSFT, @richlander
Going to assign this to myself and will try to work with James to ensure we can resolve the issue.
AaronRobinsonMSFT commentedon Sep 30, 2020
@tannergooding Please reach out to me if you need any help investigating this or there is even a small chance it is interop related.
safern commentedon Sep 30, 2020
@tannergooding I would be surprised if this was System.Drawing issue as ImageSharp doesn't use it, right?
tannergooding commentedon Sep 30, 2020
Yeah, I don't think this is
area-System.Drawing(CC. @jeffhandley).I don't think there is a good area we can categorize this as other than just "tracking-external-issue", at least until we can determine if it is actually a runtime issue or not.
The latest comments indicate (SixLabors/ImageSharp#1356 (comment)):
52 remaining items
echesakov commentedon Oct 2, 2020
5.0.0-rc.2.20475.5 works as expected - no image corruption
JulieLeeMSFT commentedon Oct 2, 2020
Great! Did we test on Windows/Linux as well as single proc machine as others observed issues there?
echesakov commentedon Oct 2, 2020
I did the test only on the single proc Windows machine that Manish provided me.
tannergooding commentedon Oct 2, 2020
git bisectreports the same. b1f107e isgoodand f6b31c2 isbad.The assert goes away as does the image corruption.
The AVX register is meant to be ECX, bit 28. One of the queries was checking EDX, bit 28 by accident.
EDX, bit 28 is the bit that indicates Multi-Threading support:

echesakov commentedon Oct 2, 2020
@JulieLeeMSFT I am checking Linux x64 runtime now - rc1 vs rc2
mangod9 commentedon Oct 2, 2020
Ah makes sense now.
echesakov commentedon Oct 2, 2020
Have troubles reproducing this locally on Linux - no matter what I do the cpuid still shows HTT to be set and there is no repro of the issue on both rc1 and rc2.
@brianpopow as far as I understood from SixLabors/ImageSharp#1356 you managed to repro this on Linux - could you do this only an Azure VM or you also had a local repro?
echesakov commentedon Oct 3, 2020
I managed to get the repro on Linux. In order to do that I created a Hyper-V VM with one CPU and loaded an Ubuntu Live image.
I can confirm that the issue there was fixed with RC2. Attached are the result of Manish's repro with .NET 5.0 RC1 and RC2:
5.0.100-rc.1.20454.5


5.0.100-rc.2.20480.7
mangod9 commentedon Oct 3, 2020
Thanks @echesakovMSFT and @tannergooding for investigating! @JimBobSquarePants @tocsoft @brianpopow, if you could also please validate we can close this out. .net 5 RC2 should be releasing in two weeks. Thx!
brianpopow commentedon Oct 3, 2020
@mangod9 is there a docker image of .net 5 RC2 available? That would be the easiest way for me to reproduce this.
mangod9 commentedon Oct 3, 2020
@brianpopow unfortunately docker images are not built for daily builds. You could manually install the sdk from here: https://github.com/dotnet/installer/blob/master/README.md#installers-and-binaries. Another option could be to build the repro app as a self-contained using RC2 for xcopy deployment to the single proc image or VM.
brianpopow commentedon Oct 5, 2020
@mangod9: me and @antonfirsov have tested with the current dotnet master branch and can confirm that the issue is fixed.
Thanks to all for investigating this issue!
mangod9 commentedon Oct 5, 2020
great, thanks for confirming. Will close this now :)