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
{{ message }}
Repository navigation
Test failed: System.Text.Tests.TranscodingStreamTests.Read_Span(bufferLength: 1) #47444
No case conversion occurs as part of these tests. Is this failure reproducible? Are bits of memory randomly being flipped as we succumb to the slow, silent entropy of the universe?
Reacted by Dan Moseley, Reilly Wood and Sergio Pedri
This test runs in this configuration (this queue, at least) on many different machines:
TestResults
| join kind=inner WorkItems on WorkItemId
| join kind=inner Jobs on JobId
| where Finished >= now(-120d)
| where Type == "System.Text.Tests.TranscodingStreamTests"
| where Method == "Read_Span"
| where QueueName1 == "ubuntu.1804.armarch.open"
| summarize dcount(MachineName)
dcount_MachineName
230
In that last 4 months it has failed twice -- both on the same box in much the same way
at System.Text.Tests.TranscodingStreamTests.g__RunOneTestIteration|22_0(Int32 stringLength, <>c__DisplayClass22_0& ) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 372 at System.Text.Tests.TranscodingStreamTests.RunReadTest(Func`3 callback) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 335 at System.Text.Tests.TranscodingStreamTests.Read_Span(Int32 bufferLength) in /_/src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 312
at System.Text.Tests.TranscodingStreamTests.g__RunOneTestIteration|22_0(Int32 stringLength, <>c__DisplayClass22_0& ) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 372 at System.Text.Tests.TranscodingStreamTests.RunReadTest(Func`3 callback) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 335 at System.Text.Tests.TranscodingStreamTests.Read_Span(Int32 bufferLength) in /_/src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 312
What is the chance that this single bit error would be in roughly the same place in the buffer ? Is this the only test that writes a large buffer and reads it back? @GrabYourPitchforks any other idea?
I think we should wait and see whether it fails on some other machine too. I can be a bad memory on the specific machine.
If we see it failing on more than one machine, it can be dangling pointer bug or GC hole bug. We would need a process dump taken as close to the failure point as possible to diagnose it.
I ran the query above again, and although this test has run on 34 distinct machines in the last 120 days, the only two failures (new ones since last time) have both been on ddvsotx2l280. Both failures had the same pattern.
I'm guessing this test is one of the most stressful on memory, but I don't know off the top of my head how to create a query like "which tests disproportionately fail on ddvsotx2l280". If that threw up other memory-intensive tests, it would be more evidence.
TestResults
| joinkind=inner WorkItems on WorkItemId
| joinkind=inner Jobs on JobId
| where Finished >= now(-365d)
| where Type == "System.Text.Tests.TranscodingStreamTests"
| where Method == "Read_Span"
| where Result == 'Fail'
| project Started, Duration, Type, Method, FriendlyName, MachineName, QueueName1, Message, StackTrace, Arguments, Branch
at System.Text.Tests.TranscodingStreamTests.g__RunOneTestIteration
22_0(Int32 stringLength, <>c__DisplayClass22_0& ) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 390 at System.Text.Tests.TranscodingStreamTests.RunReadTest(Func`3 callback) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 337 at System.Text.Tests.TranscodingStreamTests.Read_Span(Int32 bufferLength) in /_/src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 314
at System.Text.Tests.TranscodingStreamTests.g__RunOneTestIteration
22_0(Int32 stringLength, <>c__DisplayClass22_0& ) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 390 at System.Text.Tests.TranscodingStreamTests.RunReadTest(Func`3 callback) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 337 at System.Text.Tests.TranscodingStreamTests.Read_Span(Int32 bufferLength) in /_/src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 314
@parose1 responded a few days ago on the issue linked.
This is failing ~1 time every 2 months, so it will be a long time before we have more data. I suggest to either close this (optimistically) or move out of 6.0
Activity
GrabYourPitchforks commentedon Jan 26, 2021
No case conversion occurs as part of these tests. Is this failure reproducible? Are bits of memory randomly being flipped as we succumb to the slow, silent entropy of the universe?
stephentoub commentedon Jan 26, 2021
Having a morbid day, are we? 😄
danmoseley commentedon Jan 26, 2021
This test runs in this configuration (this queue, at least) on many different machines:
TestResults
| join kind=inner WorkItems on WorkItemId
| join kind=inner Jobs on JobId
| where Finished >= now(-120d)
| where Type == "System.Text.Tests.TranscodingStreamTests"
| where Method == "Read_Span"
| where QueueName1 == "ubuntu.1804.armarch.open"
| summarize dcount(MachineName)
dcount_MachineName
230
In that last 4 months it has failed twice -- both on the same box in much the same way
Bad memory on ddvsotx2l280 ? cc @MattGal
https://engsrvprod.kusto.windows.net/engineeringdata?query=H4sIAAAAAAAEAG2PQWvDMAyF74H8B9FLN3DLunsGHSOQwgZrAjsOzxaJm0QOlkIX2I%2bfk451h11s6b1PD6lCliPy2AlDmnzByTuC1pHNHBEGePOhLQR7Bk%2b%2fTWH%2fZQ%2f%2bY8HiX9gZODcYEHJHjhu08JABkD%2ffbHb3d%2fYWrkQ1DQhZBqty4hi%2frfBT4sPC2ypoYuOto7qUgLpf5NV19hml8XaZPqK27%2bWg6Y99uW2217l23Xp2huBPaARK0UHQKngagxbnSS2bqJ9MBXlwSLabXnQ%2fq9o0jvDSvI44LuVuxpl1HcUYaNq4sYn1PtRjjySs4DHeYJo0SZNvsaswnG4BAAA%3d&web=0
TestResults
| join kind=inner WorkItems on WorkItemId
| join kind=inner Jobs on JobId
| where Finished >= now(-120d)
| where Type == "System.Text.Tests.TranscodingStreamTests"
| where Method == "Read_Span"
| where Result == 'Fail'
| project Started, Duration, Type, Method, FriendlyName, MachineName, QueueName1, Message, StackTrace, Arguments, Branch
danmoseley commentedon Jan 26, 2021
It might be interesting to query failure % of tests in general on ddvsotx2l280 compared to other machines with the same configuration and OS.
danmoseley commentedon Jan 27, 2021
For the record, the machine seems middle of the pack by rate of test failures or segfaults, using this query
WorkItems
| where Finished >= now(-120d)
| where QueueName == "ubuntu.1804.armarch.open"
| summarize Pass=countif(ExitCode == 0), Fail=countif(ExitCode == 1), Abort=countif(ExitCode != 0 and ExitCode != 1), SegV= countif(ExitCode==139) by MachineName
| extend FailRate = round(toreal(Fail)/(Pass+Fail+Abort), 4) * 100, AbortRate = round(toreal(Abort)/(Pass+Fail+Abort), 4) * 100, SegVRate = round(toreal(SegV)/(Pass+Fail+Abort), 6) * 100
So... who knows? Twice could be a coincidence.
What is the chance that this single bit error would be in roughly the same place in the buffer ? Is this the only test that writes a large buffer and reads it back? @GrabYourPitchforks any other idea?
danmoseley commentedon Jan 27, 2021
Maybe @jkotas has an idea
jkotas commentedon Jan 27, 2021
I think we should wait and see whether it fails on some other machine too. I can be a bad memory on the specific machine.
If we see it failing on more than one machine, it can be dangling pointer bug or GC hole bug. We would need a process dump taken as close to the failure point as possible to diagnose it.
17 remaining items
danmoseley commentedon Jul 23, 2021
I ran the query above again, and although this test has run on 34 distinct machines in the last 120 days, the only two failures (new ones since last time) have both been on ddvsotx2l280. Both failures had the same pattern.
I'm guessing this test is one of the most stressful on memory, but I don't know off the top of my head how to create a query like "which tests disproportionately fail on ddvsotx2l280". If that threw up other memory-intensive tests, it would be more evidence.
↓ (pos 6482135)
Expected: ···defghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl···
Actual: ···defghijklmnopqrstuvwXyzabcdefghijklmnopqrstuvwxyzabcdefghijkl···
↑ (pos 6482135)
at System.Text.Tests.TranscodingStreamTests.RunReadTest(Func`3 callback) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 337
at System.Text.Tests.TranscodingStreamTests.Read_Span(Int32 bufferLength) in /_/src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 314
↓ (pos 4839671)
Expected: ···lmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrst···
Actual: ···lmnopqrstuvwxyzabcdeFghijklmnopqrstuvwxyzabcdefghijklmnopqrst···
↑ (pos 4839671)
at System.Text.Tests.TranscodingStreamTests.RunReadTest(Func`3 callback) in //src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 337
at System.Text.Tests.TranscodingStreamTests.Read_Span(Int32 bufferLength) in /_/src/libraries/System.Text.Encoding/tests/Encoding/TranscodingStreamTests.cs:line 314
kunalspathak commentedon Jul 26, 2021
Assigning to you @MattGal - Feel free to redirect to me once we get the result of memtest.
JulieLeeMSFT commentedon Aug 10, 2021
@MattGal, any update with memtest?
danmoseley commentedon Aug 10, 2021
@parose1 responded a few days ago on the issue linked.
This is failing ~1 time every 2 months, so it will be a long time before we have more data. I suggest to either close this (optimistically) or move out of 6.0
danmoseley commentedon Aug 10, 2021
The query above shows no new failures since 7/6 so I suggest to close optimistically. I still think it's important to re-flash or whatever the device.
kunalspathak commentedon Aug 10, 2021
I agree with @danmoseley .
JulieLeeMSFT commentedon Aug 10, 2021
Thanks @danmoseley and @kunalspathak.
MattGal commentedon Aug 10, 2021
It didn't seem to exist for this specific hardware setup, so it got reimaged instead.
danmoseley commentedon Aug 10, 2021
Let's meet back here in 2 months and see whether this test failed again and if so on which machine.
danmoseley commentedon Aug 10, 2021
Hopefully @MattGal the machine name didn't change? If not what is it now.
MattGal commentedon Aug 10, 2021
@parose1 can confirm but in my experience, they do not change the machine name. That's why all our Macs still have their Jenkins names :)