-
Crash in our app [iOS]
We are using lightstreamer os x client in our project. Recently, we saw some crash related to NSURLConnection. However, we dont use this class in our code so we doubt this could be a issue caused by Lightstreamer. The version we currently use is pretty old and not sure if this is a fixed issue or not. Our testing environment is OS X 10.10.
Code:
Crashed Thread: 3 com.apple.NSURLConnectionLoader
Exception Type: EXC_GUARD
Exception Codes: 0x400000010000003f, 0x00007ffbd7fa58e0Thread 3 Crashed:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff91c6fba2 close + 10
1 com.apple.security 0x00007fff920f9e0e Security::AtomicBufferedFile::~AtomicBufferedFile() + 22
2 com.apple.security 0x00007fff921f6da6 Security::RefPointer<Security::AtomicBufferedFile>::release_internal() + 66
3 com.apple.security 0x00007fff920f7c2c Security::RefPointer<Security::AtomicBufferedFile>::release() + 30
4 com.apple.security 0x00007fff921f6d2f Security::RefPointer<Security::AtomicBufferedFile>::~RefPointer() + 15
5 com.apple.security 0x00007fff920f5ad1 Security::DbModifier::getDbVersion(bool) + 437
6 com.apple.security 0x00007fff920f58fd Security::DbModifier::openDatabase() + 55
7 com.apple.security 0x00007fff920f55d9 Security::Database::_dbOpen(Security::DatabaseSession&, unsigned int, Security::AccessCredentials const*, void const*) + 85
8 com.apple.security 0x00007fff920f4ec5 Security::DatabaseManager::dbOpen(Security::DatabaseSession&, Security::DbName const&, unsigned int, Security::AccessCredentials const*, void const*) + 67
9 com.apple.security 0x00007fff920f4b88 Security::DatabaseSession::DbOpen(char const*, cssm_net_address const*, unsigned int, Security::AccessCredentials const*, void const*, long&) + 156
10 com.apple.security 0x00007fff92103f5a cssm_DbOpen(long, char const*, cssm_net_address const*, unsigned int, cssm_access_credentials const*, void const*, long*) + 219
11 com.apple.security 0x00007fff92103c9f CSSM_DL_DbOpen + 111
12 com.apple.security 0x00007fff92102f6e Security::CssmClient::DbImpl::open() + 212
13 com.apple.security 0x00007fff92104355 SSDatabaseImpl::open(Security::DLDbIdentifier const&) + 59
14 com.apple.security 0x00007fff921040a1 SSDLSession::DbOpen(char const*, cssm_net_address const*, unsigned int, Security::AccessCredentials const*, void const*, long&) + 245
15 com.apple.security 0x00007fff92103f5a cssm_DbOpen(long, char const*, cssm_net_address const*, unsigned int, cssm_access_credentials const*, void const*, long*) + 219
16 com.apple.security 0x00007fff92103c9f CSSM_DL_DbOpen + 111
17 com.apple.security 0x00007fff92102f6e Security::CssmClient::DbImpl::open() + 212
18 com.apple.security 0x00007fff9210c05b Security::KeychainCore::KCCursorImpl::next(Security::KeychainCore::Item&) + 577
19 com.apple.security 0x00007fff9213c8cb SecIdentityCopyPreference + 724
20 com.apple.CFNetwork 0x00007fff8ff1e037 HTTPProtocolSSLSupport::getSSLCertsCached(__CFString const*) + 237
21 com.apple.CFNetwork 0x00007fff8ff1db84 HTTPProtocol::copyProtocolPropertiesForStream() + 608
22 com.apple.CFNetwork 0x00007fff8ff2f3fb HTTPProtocol::setProtocolPropertiesToStream() + 19
23 com.apple.CFNetwork 0x00007fff8ff2f1d8 HTTPProtocol::openStream() + 42
24 com.apple.CFNetwork 0x00007fff8ff2e3bd HTTPProtocol::useNetStreamInfoForRequest(MetaNetStreamInfo*, HTTPRequestMessage const*, unsigned char) + 1607
25 com.apple.CFNetwork 0x00007fff8ff2db39 HTTPConnectionCacheEntry::dispatchConnectionToProtocol(HTTPNetConnection*, HTTPConnectionCacheEnqueuedRequestInfo*, unsigned char) + 265
26 com.apple.CFNetwork 0x00007fff8ff2be31 HTTPConnectionCacheEntry::ingestTube(Tube*) + 1189
27 com.apple.CFNetwork 0x00007fff8ff2b618 HTTPConnectionCache::_onqueue_ingestTube(Tube*) + 120
28 com.apple.CFNetwork 0x00007fff8ff2ae47 TubeManager::_onqueue_newTubeReady(Tube*, __CFError*) + 493
29 com.apple.CFNetwork 0x00007fff8ff2ac30 ___ZN11TubeManager12newTubeReadyEP4TubeP9__CFError_block_invoke + 30
30 com.apple.CFNetwork 0x00007fff8ff14cec RunloopBlockContext::_invoke_block(void const*, void*) + 72
31 com.apple.CoreFoundation 0x00007fff92787664 CFArrayApplyFunction + 68
32 com.apple.CFNetwork 0x00007fff8ff14bad RunloopBlockContext::perform() + 133
33 com.apple.CFNetwork 0x00007fff8ff14998 MultiplexerSource::perform() + 282
34 com.apple.CFNetwork 0x00007fff8ff147ba MultiplexerSource::_perform(void*) + 72
35 com.apple.CoreFoundation 0x00007fff927bba01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
36 com.apple.CoreFoundation 0x00007fff927adb8d __CFRunLoopDoSources0 + 269
37 com.apple.CoreFoundation 0x00007fff927ad1bf __CFRunLoopRun + 927
38 com.apple.CoreFoundation 0x00007fff927acbd8 CFRunLoopRunSpecific + 296
39 com.apple.CFNetwork 0x00007fff8ff07220 +[NSURLConnection(Loader) _resourceLoadLoop:] + 434
40 com.apple.Foundation 0x00007fff88b99dc2 __NSThread__main__ + 1345
41 libsystem_pthread.dylib 0x00007fff8f47b268 _pthread_body + 131
42 libsystem_pthread.dylib 0x00007fff8f47b1e5 _pthread_start + 176
43 libsystem_pthread.dylib 0x00007fff8f47941d thread_start + 13
-
Hello,
it doesn't look like one of our threads: there are no references to our library in the stack, this "Loader" category of NSURLConnection is something we don't use (it's not even part of public APIs), and its name ("com.apple.NSURLConnectionLoader") is unknown to us.
Our OS X client library, starting with 1.0.0, runs all NSURLConnection operations inside threads with a name like "LS URL Dispatcher Thread <number>". It looks more like a system background thread spawned by some other operation.
On StackOverflow there's a good answer about EXC_GUARD that can provide some hints.
I'm afraid we can't be of more help.
Best regards,
Gianluca
-
I see. Thank you for your information.
-
Quick update. I upgrade the Lightstreamer client and the crash seems be fixed.