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

Simperium crashes on 10.7.4!! #16

Closed
chbeer opened this issue Jul 15, 2012 · 4 comments
Closed

Simperium crashes on 10.7.4!! #16

chbeer opened this issue Jul 15, 2012 · 4 comments

Comments

@chbeer
Copy link

chbeer commented Jul 15, 2012

Simperium seems to work on 10.7.3 (although I got errors because of empty managed objects; so I'm not sure) but crashes on 10.7.4:

(Breakpoint is an exception breakpoint)

2012-07-15 17:52:13:006 iVocabulary[15845:b03] https://auth.simperium.com/1/practice-game-30c/authorize/
(lldb) bt
* thread #9: tid = 0x3b03, 0x00007fff8eeb20e0 libc++abi.dylib`__cxa_throw, stop reason = breakpoint 2.2
    frame #0: 0x00007fff8eeb20e0 libc++abi.dylib`__cxa_throw
    frame #1: 0x00007fff8bbbf5a8 Security`Security::CssmError::throwMe(int) + 54
    frame #2: 0x00007fff8bb963fc Security`Security::DbVersion::findTable(unsigned int) const + 58
    frame #3: 0x00007fff8bb96397 Security`Security::DbVersion::createCursor(cssm_query const*) const + 85
    frame #4: 0x00007fff8bb962db Security`Security::DbModifier::createCursor(cssm_query const*) + 65
    frame #5: 0x00007fff8bcc9079 Security`Security::AppleDatabase::dataGetFirst(Security::DbContext&, Security::CssmQuery const*, cssm_db_record_attribute_data*, Security::CssmData*, cssm_db_unique_record*&) + 49
    frame #6: 0x00007fff8bcd46b0 Security`Security::DatabaseSession::DataGetFirst(long, Security::CssmQuery const*, cssm_db_record_attribute_data*, Security::CssmData*, cssm_db_unique_record*&) + 174
    frame #7: 0x00007fff8bba5681 Security`_ZL17cssm_DataGetFirst17cssm_dl_db_handlePK10cssm_queryPlP29cssm_db_record_attribute_dataP9cssm_dataPP21cssm_db_unique_record + 148
    frame #8: 0x00007fff8bba550c Security`CSSM_DL_DataGetFirst + 120
    frame #9: 0x00007fff8bca6103 Security`SSDLSession::DataGetFirst(long, Security::CssmQuery const*, cssm_db_record_attribute_data*, Security::CssmData*, cssm_db_unique_record*&) + 171
    frame #10: 0x00007fff8bba5681 Security`_ZL17cssm_DataGetFirst17cssm_dl_db_handlePK10cssm_queryPlP29cssm_db_record_attribute_dataP9cssm_dataPP21cssm_db_unique_record + 148
    frame #11: 0x00007fff8bba550c Security`CSSM_DL_DataGetFirst + 120
    frame #12: 0x00007fff8bc96570 Security`tpDbFindIssuerCrl + 728
    frame #13: 0x00007fff8bbdc622 Security`tpVerifyCertGroupWithCrls + 1559
    frame #14: 0x00007fff8bbc3c38 Security`AppleTPSession::CertGroupVerify(long, long, cssm_certgroup const&, cssm_tp_verify_context const*, cssm_tp_verify_context_result*) + 3262
    frame #15: 0x00007fff8bbc2ecf Security`_ZL20cssm_CertGroupVerifylllPK14cssm_certgroupPK22cssm_tp_verify_contextP29cssm_tp_verify_context_result + 129
    frame #16: 0x00007fff8bbc2ca9 Security`CSSM_TP_CertGroupVerify + 111
    frame #17: 0x00007fff8bbc2509 Security`Security::CssmClient::TPImpl::certGroupVerify(Security::CertGroup const&, Security::TPVerifyContext const&, Security::TPVerifyResult*) + 133
    frame #18: 0x00007fff8bbbcc54 Security`Security::KeychainCore::Trust::evaluate(bool) + 2190
    frame #19: 0x00007fff8bbbc2c3 Security`SecTrustEvaluate + 49
    frame #20: 0x00007fff8bbeb8ed Security`sslVerifyCertChain + 1104
    frame #21: 0x00007fff8bbeb3b5 Security`SSLProcessCertificate + 303
    frame #22: 0x00007fff8bbe3146 Security`SSLProcessHandshakeRecord + 330
    frame #23: 0x00007fff8bbe2fa7 Security`SSLProcessProtocolMessage + 82
    frame #24: 0x00007fff8bbe2995 Security`SSLHandshakeProceed + 390
    frame #25: 0x00007fff8bbe27ff Security`SSLHandshake + 107
    frame #26: 0x00007fff8d837e2b CFNetwork`SocketStream::_PerformSecurityHandshake_NoLock() + 159
    frame #27: 0x00007fff8d837206 CFNetwork`SocketStream::socketCallback(__CFSocket*, unsigned long, __CFData const*, void const*) + 184
    frame #28: 0x00007fff8d837136 CFNetwork`SocketStream::_SocketCallBack_stream(__CFSocket*, unsigned long, __CFData const*, void const*, void*) + 100
    frame #29: 0x00007fff8e0240c4 CoreFoundation`__CFSocketPerformV0 + 980
    frame #30: 0x00007fff8dfdc4f1 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #31: 0x00007fff8dfdbd5d CoreFoundation`__CFRunLoopDoSources0 + 253
    frame #32: 0x00007fff8e002b49 CoreFoundation`__CFRunLoopRun + 905
    frame #33: 0x00007fff8e002486 CoreFoundation`CFRunLoopRunSpecific + 230
    frame #34: 0x00007fff8e01219f CoreFoundation`CFRunLoopRun + 95
    frame #35: 0x000000010919b17c Simperium-OSX`+[ASIHTTPRequest runRequests] + 172
    frame #36: 0x00007fff9076d72a Foundation`-[NSThread main] + 68
    frame #37: 0x00007fff9076d6a2 Foundation`__NSThread__main__ + 1575
    frame #38: 0x00007fff9001f8bf libsystem_c.dylib`_pthread_start + 335
    frame #39: 0x00007fff90022b75 libsystem_c.dylib`thread_start + 13
@mikejohnstn
Copy link
Contributor

Judging by your log, this crash is actually in the SSL handshake being performed by ASIHTTPRequest, a deprecated library that won't be used in future releases. Having said that, it's working on our 10.7.4 boxes so I'm not sure why it fails on your box.

@chbeer
Copy link
Author

chbeer commented Jul 16, 2012

Hi Mike,
thanks for your instant answer! As I had been using ASIHTTPRequest in my project as well, I supposed it could have been a version clash. So, as I already planned to throw out ASIHTTPRequest, I just throw it out to try if that's the case.

But the crash still happens. And it happens on two machines that run on 10.7.4 where it worked before on 10.7.3.

What can I do to find out the reason for the crash? I tried to find some info about it in the internets, but I couldn't find any.

Could it be related to my app being code signed?

@mikejohnstn
Copy link
Contributor

We've got some ideas and we'll contact you directly to try some things.

@ghost ghost assigned rayvace Jul 17, 2012
@chbeer chbeer closed this as completed Jul 27, 2012
@chbeer
Copy link
Author

chbeer commented Jul 27, 2012

Seemed to be caused by some broken SSL certificates or something. I think this can be closed.

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

3 participants