New issue
Advanced search Search tips

Issue 877416 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Investiage why CertificateManagerModel.ListsCertsFromPlatform is flaky

Project Member Reported by pmarko@chromium.org, Aug 24

Issue description

CertificateManagerModel.ListsCertsFromPlatform was flaky - see
https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8937415838820796480/+/steps/unit_tests__with_patch_/0/stdout

I've temporarily disabled it in 
https://chromium-review.googlesource.com/c/chromium/src/+/1186581
It seems that the issue is that after importing the test cert into the test slot:
PK11_ImportCert(test_nssdb_.slot(), cert, CK_INVALID_HANDLE, "cert",                            PR_FALSE /* includeTrust (unused) */));

We list the certificates and find the corresponding CertInfo object:
certificate_manager_model_->FilterAndBuildOrgGroupingMap(net::CertType::CA_CERT, &org_grouping_map);
CertificateManagerModel::CertInfo* cert_info = GetCertInfoFromOrgGroupingMap(org_grouping_map, cert);

and the following two expectations fail:
EXPECT_TRUE(cert_info->untrusted());
EXPECT_FALSE(cert_info->web_trust_anchor());

I can only imagine that the cert having trust in NSS somehow leaks from another test run.

The tests are run with NSS_DISABLE_UNLOAD=1 NSS_DISABLE_ARENA_FREE_LIST=1 but I couldn't repro on my machine with those flags even in 200 iterations.
 
Triage nag: This Chrome OS bug has an owner but no component. Please add a component so that this can be tracked by the relevant team.
<UI triage> Bug owners, please add the appropriate component to your bug. Thanks!
Components: Internals>Network>Certificate

Sign in to add a comment