Skip to content
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

lldb crash on osx for load_native_certs #68

Closed
FredrikNoren opened this issue May 23, 2023 · 2 comments
Closed

lldb crash on osx for load_native_certs #68

FredrikNoren opened this issue May 23, 2023 · 2 comments

Comments

@FredrikNoren
Copy link

Hi,

I'm getting the following crash on osx when running rustls_native_certs::load_native_certs():

__cxa_throw (@__cxa_throw:3)
Security::UnixError::throwMeNoLogging(int) (@Security::UnixError::throwMeNoLogging(int):22)
Security::safeCopyFile(char const*, unsigned int, char const*, unsigned short) (@Security::safeCopyFile(char const*, unsigned int, char const*, unsigned short):345)
Security::MDSSession::updateDataBases() (@Security::MDSSession::updateDataBases():389)
Security::MDSSession::DbOpen(char const*, cssm_net_address const*, unsigned int, Security::AccessCredentials const*, void const*, long&) (@Security::MDSSession::DbOpen(char const*, cssm_net_address const*, unsigned int, Security::AccessCredentials const*, void const*, long&):42)
mds_DbOpen(long, char const*, cssm_net_address const*, unsigned int, cssm_access_credentials const*, void const*, long*) (@mds_DbOpen(long, char const*, cssm_net_address const*, unsigned int, cssm_access_credentials const*, void const*, long*):89)
Security::MDSClient::Directory::cdsa() const (@Security::MDSClient::Directory::cdsa() const:30)
Security::MDSClient::Directory::dlGetFirst(cssm_query const&, cssm_db_record_attribute_data&, cssm_data*, cssm_db_unique_record*&) (@Security::MDSClient::Directory::dlGetFirst(cssm_query const&, cssm_db_record_attribute_data&, cssm_data*, cssm_db_unique_record*&):18)
Security::CssmClient::Table<Security::MDSClient::Common>::startQuery(Security::CssmQuery const&, bool) (@Security::CssmClient::Table<Security::MDSClient::Common>::startQuery(Security::CssmQuery const&, bool):81)
Security::KeychainCore::DynamicDLDBList::searchList() (@Security::KeychainCore::DynamicDLDBList::searchList():100)
Security::KeychainCore::StorageManager::getSearchList(std::__1::vector<Security::KeychainCore::Keychain, std::__1::allocator<Security::KeychainCore::Keychain>>&) (@Security::KeychainCore::StorageManager::getSearchList(std::__1::vector<Security::KeychainCore::Keychain, std::__1::allocator<Security::KeychainCore::Keychain>>&):54)
__SecTrustSettingsCopyCertificates_block_invoke_2 (@__SecTrustSettingsCopyCertificates_block_invoke_2:55)
_dispatch_call_block_and_release (@_dispatch_call_block_and_release:11)
_dispatch_client_callout (@_dispatch_client_callout:8)
_dispatch_lane_serial_drain (@_dispatch_lane_serial_drain:170)
_dispatch_lane_invoke (@_dispatch_lane_invoke:99)
_dispatch_workloop_worker_thread (@_dispatch_workloop_worker_thread:165)
_pthread_wqthread (@_pthread_wqthread:75)

The strange thing is that this only happens when I'm launching from VSCode using codelldb. When I launch it through lldb on the command line it seems to work fine. I'm guessing there's some kind of lldb setting which blocks access? Has anyone run into this before?

@djc
Copy link
Member

djc commented May 23, 2023

Hmm, I haven't seen this before. Might have better luck asking around in https://github.com/kornelski/rust-security-framework...

@FredrikNoren
Copy link
Author

@djc Thanks, I'll post an issue there

@djc djc closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants