-
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.Security.Cryptography.X509Certificates.Tests: Assertion `0 && "Huge length X509_NAME"' failed. #49732
Comments
Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks Issue Details
Failed in #49721
|
Stack trace from the dump attached to #49721 :
Where is the code that is supposed to validate that the certificate is well-formatted? |
That happens during .ctor of the Since this looks like a cert we generate on-the-fly in the tests I would not expect this to have an especially large subject name. I'll see if I can glean anything from the core dump. |
A recent failure was in #55820, job 98790a12-c5ae-496f-82c6-ed509deeb6be. Something does seem to have gone... wrong.
The structure we see claims the name is 140507708246688 bytes long, and the "canonical encoding" of it is gibberish. Unfortunately,
so I don't know a good way to track this back to the X509* that produced it, to see if it's also in a bad state. |
If I had to guess based on the original exception, I wonder if this is a use-after-dispose. The stub OSCP/AIA responder are "multi threaded" now, I wonder if a request comes in to it while it's in the middle of disposing. |
I was going to say "can't be, the SafeHandles protect us"... but they don't. Coming up with a threading test to show that this hits periodically seems good. And then it can show that doing DangerousAddRef/DangerousRelease in Line 291 in 24fa00d
|
A number of properties in certificate reader behave the same way. I'll take a stab at reproducing this over the weekend. |
@bartonjs I'll attempt to get a PR in over the next few days assuming you have no objections, seeing as this is currently assigned to you. |
Another assertion I was able to hit using
|
Failed in #49721 on net6.0-Linux-Debug-x64-CoreCLR_release-Ubuntu.1604.Amd64.Open
The text was updated successfully, but these errors were encountered: