-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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.Net.Sockets.Tests.DisposedSocket.NonDisposedSocket_SafeHandlesCollected test failures on Linux #35846
Comments
Tagging subscribers to this area: @dotnet/ncl |
Will put up a PR to disable the test on the meantime. |
cc @alnikola |
@antonfirsov may be interested to pick it up ... |
The test failure in rolling builds seem to all be in release builds. Seems to have started after my change #35330, but at the time when I tested it there were no failures in release builds, not sure why it is reproing now and not before. I took a brief look. The test: runtime/src/libraries/System.Net.Sockets/tests/FunctionalTests/DisposedSocketTests.cs Line 755 in c2b1018
Seems to be verifying that a non-disposed socket that is not referenced gets finalized in reasonable time. The issue appears to be in this section of code: 8157271#diff-f7e3fa1efc2509a247819f786ac6e532R353-R360 (scroll down to see highlighted portion), GCRoot:
Source line 336 corresponds to this: 8157271#diff-f7e3fa1efc2509a247819f786ac6e532R326 (line numbers from output above and below is a bit off from that commit), where I wouldn't expect SOS U with GC info:
The clearing of
But despite optimizing out the clearing of |
@antonfirsov given that this is regression from @kouvel's recent change, but specific to Sockets, can you please help here? (assigning to you) Thanks! |
Failed again in: #36083 This time in OSX. Will update the ActiveIssue to disable it on Unix. |
Opened #37064 for the runtime issue. We can workaround it by moving the loop body to a separate method with |
@kouvel commented at #37064 (comment)
Such clearing was explicitly added to make this test pass when the test was introduced. |
This continues to repro, now as a hang, e.g.
cc: @antonfirsov |
Duplicate of #50068 |
System.Net.Sockets.Tests.DisposedSocket.NonDisposedSocket_SafeHandlesCollected
Console Log Summary
Builds
Configurations
Helix Logs
cc: @dotnet/runtime-infrastructure @stephentoub @wfurt
The text was updated successfully, but these errors were encountered: