-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
System.Xml.Tests.CNameTableTestModule.RunTests failure on Windows Server 2022 #65235
Comments
Tagging subscribers to this area: @tommcdon Issue DetailsRunfo Creating Tracking Issue (data being generated)
|
Tagging subscribers to this area: @dotnet/area-system-xml Issue Details
runtime/src/libraries/System.Private.Xml/tests/Readers/NameTable/XmlNameTable.cs Lines 332 to 347 in 57bfe47
Runfo Tracking Issue: system.xml.tests.cnametabletestmodule.runtests
Build Result Summary
|
One of these is not like the others
but it seems the same root cause -- in both cases, the element name being read is not exactly equal to It's not just server 2022, also Windows 7 at least. |
could this be related to #63459? Having trouble querying to find out when it started. |
Looped this test library 600 times on Windows 10 x64, no failures, now I'll try 32 bit |
I ran the whole library 9500 times on x86, no failures. |
This seems like a relevant bug. It wraps a MemoryStream with a StreamWriter, flushes the StreamWriter, then leaves it dangling and returns the MemoryStream runtime/src/libraries/System.Private.Xml/tests/Readers/NameTable/TestFiles.cs Lines 278 to 294 in 0238a39
That would cause a random ODE when the StreamWriter is finalized, not the error we're seeing here. There may also be some issues with a memory stream getting used concurrently. It copies MemoryStream's to fresh ones -- if this is happening concurrently with use, that could cause a torn copy leaving nulls in it causing this symptom. Let me see whether I can clean this up. |
runtime/src/libraries/System.Private.Xml/tests/Readers/NameTable/XmlNameTable.cs
Lines 332 to 347 in 57bfe47
Runfo Tracking Issue: system.xml.tests.cnametabletestmodule.runtests
Build Result Summary
The text was updated successfully, but these errors were encountered: