Crash in -[__NSCFURLLocalStreamTask _onSessionQueue_disavow], only on iOS 10
site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=Xex2VCFQXQRdy83mCR3vwwadev1dI uHdfjwLonOXyLc=; b=J35J+EdoBkOi8Zun9gEP0IiwOFnWRe3GtSXpkyQ2C2ASZ TGzMQBnPmLWeKtFNLvQ9zEXKawJ6+XkaQ3i17SMV+BiS3z+fHQXjSwSKErBAufQL gzgEdNpv01LJWnKbFuj7bwe6ZYeF3ZsRGvtOms6fa+P5+SwPhJNeY+7e1R/NMSDN DdO0J/cEKkx/2sQEBJ8lMF+V000iQJbJxyP3pKBu06qGaCixmvYgbheCdgS/uDHK TnoNq03UgN6zHjPgphkucFc+SQZU9LgF01xswYjj5H1Ze7IV2QvxS8RC2L0L3PWb jBE5FTR9UNAYCa9j7H9ou7Wnw91HA2p0RzVSLpGUw== In testing our library, which uses NSURLSessionStreamTask, we're seeing a crash that only occurs in iOS 10.2 [simulator], not iOS 11. The crash doesn't involve our code — it's on the system 'com.apple.NSURLSession-work' queue, in a method of the internal __NSCFURLLocalStreamTask class: * thread #13, queue = 'com.apple.NSURLSession-work', stop reason = EXC_BAD_ACCESS (code=1, address=0x10) * frame #0: 0x00000001141d9757 CFNetwork`-[__NSCFURLLocalStreamTask _onSessionQueue_disavow] + 34 frame #1: 0x000000011403da97 CFNetwork`__51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke_2 + 31 frame #2: 0x000000010c43e122 libclang_rt.asan_iossim_dynamic.dylib`__wrap_dispatch_async_block_invoke + 290 frame #3: 0x0000000114bbf808 libdispatch.dylib`_dispatch_call_block_and_release + 12 … Is this a known bug in iOS 10 that was fixed in iOS 11? I'm not directly involved in debugging this; the engineer who is commented:
This seems to be an issue with NSURLSession's stream task on iOS 10.2 that canceling the task after an error could cause the crash down in __NSCFURLLocalStreamTask. I also noticed a weird issue that -URLSession:task:didCompleteWithError: is called twice.
(If you want to see the full details, they're in https://github.com/couchbase/couchbase-lite-ios/issues/2089 .) —Jens _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jens Alfke