-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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.Security.Tests assertion failure: !newKey.IsInvalid #105715
Comments
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones |
Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones |
@bartonjs possible race with |
A race in the loader would be exceedingly weird, since anything it disposes would be before returning, and things wouldn't finalize if they were returned out. But taking a quick gander. |
The workhorse for this is undoubtedly System.Net.Security tests do call The places that I see all have all of the objects well-captured in a using... but, this is networking... and that means it's possible that a request got fired off and was being handled on the "server side" concurrent with the test giving up and disposing the certificate and responder it made up for the request. So... we can remove the assert; but otherwise I think that this is just an inherent state with the nature of asynchronous operations. |
We have removed asserts in the past (e.g. #86503) where we have checked if a Handle is valid or not. The validity of the handle may not be what we expected in a multi-threaded scenario. As long as we interact with the handle safely (marshaller or addref + release) we can probably just get rid of the assert and let the handle do its thing by throwing an |
@bartonjs clarified for me that this is unchanged in .NET 9, so I'm moving it to Future. |
Fixed in |
From log:
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=759922
Build error leg or test failing: System.Net.Security.Tests.WorkItemExecution
Pull request: #105673
Error Message
Fill the error message using step by step known issues guidance.
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=759922
Error message validated:
[System.Net.Security.Tests Assertion failed !newKey.IsInvalid
]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/30/2024 5:34:02 PM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: