Skip to content

MicroBenchmarks.dll fails with "The specified network password is not correct." #2454

@kunalspathak

Description

@kunalspathak

We are seeing failures in our superpmi collection as soon as we start executing MicroBenchmarks. Wondering if perf lab is also seeing these failures and what is the fix? This is blocking our ability to do superpmi collection on benchmarks.

[18:22:58] C:\h\w\97FE0875\w\9B61093D\u\performance>C:\h\w\97FE0875\w\9B61093D\u\performance\tools\dotnet\x64\dotnet C:\h\w\97FE0875\w\9B61093D\u\performance\artifacts\MicroBenchmarks.dll  --filter "*" --corerun C:\h\w\97FE0875\p\superpmi\CoreRun.exe --partition-count 30 --partition-index 11 --envVars COMPlus_JitName:superpmi-shim-collector.dll  COMPlus_ZapDisable:1  COMPlus_ReadyToRun:0 --iterationCount 1 --warmupCount 0 --invocationCount 1 --unrollFactor 1 --strategy ColdStart 
[18:22:58] Unhandled exception. System.TypeInitializationException: The type initializer for 'System.Net.Security.Tests.SslStreamTests' threw an exception.
[18:22:58]  ---> Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The specified network password is not correct.
[18:22:58]    at System.Security.Cryptography.X509Certificates.CertificatePal.FilterPFXStore(ReadOnlySpan`1 rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
[18:22:58]    at System.Security.Cryptography.X509Certificates.CertificatePal.FromBlobOrFile(ReadOnlySpan`1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
[18:22:58]    at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
[18:22:58]    at System.Net.Test.Common.Configuration.Certificates.GetCertificate(String certificateFileName) in C:\h\w\97FE0875\w\9B61093D\u\performance\src\benchmarks\micro\libraries\System.Net.Http\Configuration.Certificates.cs:line 27
[18:22:58]    at System.Net.Security.Tests.SslStreamTests..cctor() in C:\h\w\97FE0875\w\9B61093D\u\performance\src\benchmarks\micro\libraries\System.Net.Security\SslStreamTests.cs:line 24
[18:22:58]    --- End of inner exception stack trace ---
[18:22:58]    at System.Net.Security.Tests.SslStreamTests.TlsProtocols()+MoveNext() in C:\h\w\97FE0875\w\9B61093D\u\performance\src\benchmarks\micro\libraries\System.Net.Security\SslStreamTests.Protocols.cs:line 22
[18:22:58]    at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
[18:22:58]    at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
[18:22:58]    at BenchmarkDotNet.Running.BenchmarkConverter.GetValidValuesForParamsSource(Type parentType, String sourceName)
[18:22:58]    at BenchmarkDotNet.Running.BenchmarkConverter.GetArgumentsDefinitions(MethodInfo benchmark, Type target, SummaryStyle summaryStyle)+MoveNext()
[18:22:58]    at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
[18:22:58]    at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
[18:22:58]    at BenchmarkDotNet.Running.BenchmarkConverter.MethodsToBenchmarksWithFullConfig(Type type, MethodInfo[] benchmarkMethods, IConfig config)
[18:22:58]    at System.Linq.Enumerable.SelectListIterator`2.MoveNext()
[18:22:58]    at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()
[18:22:58]    at BenchmarkDotNet.Running.BenchmarkSwitcher.RunWithDirtyAssemblyResolveHelper(String[] args, IConfig config, Boolean askUserForInput)
[18:22:58]    at BenchmarkDotNet.Running.BenchmarkSwitcher.Run(String[] args, IConfig config)
[18:22:58]    at MicroBenchmarks.Program.Main(String[] args) in C:\h\w\97FE0875\w\9B61093D\u\performance\src\benchmarks\micro\Program.cs:line 47

I am not sure if #1750 is related but we started seeing the failures around that time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions