You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While developing new pytests to invoke Python bindings to Certifier Framework interfaces, the following memory leak was detected and reported by the pytests machinery:
test_certifier_framework.py::test_run_app_as_a_client_init_client_ssl PublicKeyFromCert() error, line 432, Failed to retrieve HWID from VCEK extensions
... cctd.init_policy_key() succeeded.
... cctd.initialize_simulated_enclave_data() succeeded.
... cctd.cold_init() succeeded.
... cctd.warm_restart() succeeded.
certify_domain():1539: enclave_type_ = 'simulated-enclave', purpose_ = 'authentication'
... cctd.certify_me() succeeded.
... cctd.cc_all_initialized() succeeded.
... Secure channel client instantiated.
... cctd.trust data is initialized.
... cctd.primary admissions cert is valid.
asn1_to_x509() error, line: 3764, no x509 pointer
init_client_ssl() error, line 2409, init_client_ssl: root cert invalid
64756d6d792d73657269616c697a65642d706f6c6963792d63657274
swig/python detected a memory leak of type 'key_message *', no destructor found.
The test case itself is currently not working due to some Python arg-calling interface issues.
After correcting those manually (by patching generated SWIG wrapper code), the memory leak messages are still seen:
*swig/python detected a memory leak of type 'key_message ', no destructor found.
--
The suspected code is probably here in the destructor method of secure_authenticated_channel():
2362 certifier::framework::secure_authenticated_channel::
2363 ~secure_authenticated_channel() {
2364 role_.clear();
2365 channel_initialized_ = false;
2366
2367 // ? FIXME - Seems to cause a memory leak detected in pytests
2368 // delete private_key_
2369
2370 if (ssl_ctx_ != nullptr)
Investigate this code flow to see how to do a delete on protobuf-generated sub-objects hanging off of secure_authenticated_channel().
The text was updated successfully, but these errors were encountered:
While developing new pytests to invoke Python bindings to Certifier Framework interfaces, the following memory leak was detected and reported by the pytests machinery:
The test case itself is currently not working due to some Python arg-calling interface issues.
After correcting those manually (by patching generated SWIG wrapper code), the memory leak messages are still seen:
*swig/python detected a memory leak of type 'key_message ', no destructor found.
--
The suspected code is probably here in the destructor method of
secure_authenticated_channel()
:Investigate this code flow to see how to do a
delete
on protobuf-generated sub-objects hanging off ofsecure_authenticated_channel()
.The text was updated successfully, but these errors were encountered: