nsurlsessiond crashes EXC_RESOURCE CPU in iOS 8.3

for the past few weeks on my iphone 5s, nsurlsessiond has been crashing a few times a day with EXC_RESOURCE CPU in the com.apple.libdispatch-manager queue. they all look like the crash report below. i'm developing an app that uploads a single zip file of ~150MB at a time to amazon S3 using a background NSURLSession upload task. there's nothing special set on the request.


this results in the task not actually succeeding and when I launch my app it hangs on [NSURLSession sessionWithConfiguration:delegate:delegateQueue:] for 60s or so until it comes back to life and finally starts processing the task. is this a known problem?


Incident Identifier: C00DFA73-0F0B-4CAF-A646-DFDA7D397C8F

CrashReporter Key: df9dd31157b8b930a014e9b2fd8c974fb4fb60aa

Hardware Model: iPhone6,1

Process: nsurlsessiond [129]

Path: /usr/libexec/nsurlsessiond

Identifier: nsurlsessiond

Version: ???

Code Type: ARM-64 (Native)

Parent Process: launchd [1]



Date/Time: 2015-06-18 09:51:29.740 -0400

Launch Time: 2015-06-18 09:24:35.568 -0400

OS Version: iOS 8.3 (12F70)

Report Version: 105



Exception Type: EXC_RESOURCE

Exception Subtype: CPU

Exception Message: (Limit 50%) Observed 62% over 180 secs

Triggered by Thread: 1



Thread 0 name: Dispatch queue: com.apple.main-thread

Thread 0:

0 libsystem_kernel.dylib 0x000000019834ce0c mach_msg_trap + 8

1 libsystem_kernel.dylib 0x000000019834cc84 mach_msg + 68

2 CoreFoundation 0x00000001863bb720 __CFRunLoopServiceMachPort + 196

3 CoreFoundation 0x00000001863b9674 __CFRunLoopRun + 936

4 CoreFoundation 0x00000001862e52d0 CFRunLoopRunSpecific + 392

5 Foundation 0x000000018721d4c4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 312

6 Foundation 0x000000018727780c -[NSRunLoop(NSRunLoop) run] + 92

7 nsurlsessiond 0x0000000100078170 0x100074000 + 16752

8 libdyld.dylib 0x000000019824ea04 start + 0



Thread 1 name: Dispatch queue: com.apple.libdispatch-manager

Thread 1 Attributed:

0 libdispatch.dylib 0x00000001982348dc 0x198220000 + 84188

1 libdispatch.dylib 0x0000000198236904 0x198220000 + 92420

2 libdispatch.dylib 0x0000000198236904 0x198220000 + 92420

3 libdispatch.dylib 0x0000000198221950 0x198220000 + 6480

4 libdispatch.dylib 0x000000019822c0a0 0x198220000 + 49312

5 libdispatch.dylib 0x000000019822c404 0x198220000 + 50180

6 libdispatch.dylib 0x0000000198231da4 0x198220000 + 73124

7 libdispatch.dylib 0x0000000198223998 0x198220000 + 14744



Thread 2 name: com.apple.NSURLConnectionLoader

Thread 2:

0 libsystem_kernel.dylib 0x000000019834ce0c mach_msg_trap + 8

1 libsystem_kernel.dylib 0x000000019834cc84 mach_msg + 68

2 CoreFoundation 0x00000001863bb720 __CFRunLoopServiceMachPort + 196

3 CoreFoundation 0x00000001863b9674 __CFRunLoopRun + 936

4 CoreFoundation 0x00000001862e52d0 CFRunLoopRunSpecific + 392

5 CFNetwork 0x0000000185dc6890 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436

6 Foundation 0x0000000187305db4 __NSThread__main__ + 1068

7 libsystem_pthread.dylib 0x0000000198403dc4 _pthread_body + 160

8 libsystem_pthread.dylib 0x0000000198403d20 _pthread_start + 156

9 libsystem_pthread.dylib 0x0000000198400ef4 thread_start + 0



Thread 3 name: com.apple.CFSocket.private

Thread 3:

0 libsystem_kernel.dylib 0x0000000198367498 __select + 8

1 CoreFoundation 0x00000001863c1124 __CFSocketManager + 668

2 libsystem_pthread.dylib 0x0000000198403dc4 _pthread_body + 160

3 libsystem_pthread.dylib 0x0000000198403d20 _pthread_start + 156

4 libsystem_pthread.dylib 0x0000000198400ef4 thread_start + 0



Thread 4:

0 libsystem_kernel.dylib 0x0000000198367c78 __workq_kernreturn + 8

1 libsystem_pthread.dylib 0x00000001984012d8 _pthread_wqthread + 988

2 libsystem_pthread.dylib 0x0000000198400eec start_wqthread + 0



Thread 1 crashed with ARM Thread State (64-bit):

x0: 0x0000000140b5dab0 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000005

x4: 0x0000000000000001 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000

x8: 0x000000019c208640 x9: 0x0000000140351900 x10: 0x000000081c96996a x11: 0x00000007f12f124e

x12: 0x0000000000000001 x13: 0x0000000000000000 x14: 0x0000000102d00010 x15: 0x0000000000039480

x16: 0x0000000000000039 x17: 0x00000001982219f4 x18: 0x0000000000000000 x19: 0x0000000140b5dab0

x20: 0x0000000000000004 x21: 0x000000019c2088c0 x22: 0x0000000000000008 x23: 0x0000000140b5db70

x24: 0x0000000140b5db70 x25: 0x0000000102e62880 x26: 0x00000000000010ff x27: 0x000000019c2078d8

x28: 0x0000000000010003 fp: 0x00000001001c34c0 lr: 0x0000000198236908

sp: 0x00000001001c3490 pc: 0x00000001982348dc cpsr: 0x20000000



Bad magic 0x8721D4C8

Microstackshots: 1 (from 1969-12-31 19:03:20 -0500 to 1969-12-31 19:03:20 -0500)

1 ??? [0x16fd8bbe0]

1 CoreFoundation 0x1862dc000 + 906872 [0x1863b9678]

1 ??? [0x16fd8aed0]

1 CoreFoundation 0x1862dc000 + 915236 [0x1863bb724]

1 ??? [0x16fd8ae70]

1 libsystem_kernel.dylib 0x19834c000 + 3208 [0x19834cc88]

1 ??? [0x16fd8ae20]

1 libsystem_kernel.dylib 0x19834c000 + 3596 [0x19834ce0c]

*1 ??? [0xffffff80020144a4]



Binary Images:

0x100074000 - 0x1000bbfff nsurlsessiond arm64 <6d55c4fc44fa3c96acf44cdaf58815b5> /usr/libexec/nsurlsessiond

0x1200a4000 - 0x1200cbfff dyld arm64 <75c68bbe28b13fcd91014f15139742dc> /usr/lib/dyld

0x184bb0000 - 0x184d44fff AVFoundation arm64 <c69cb19d6db0339bbfb4c18fa7f4f26c> /System/Library/Frameworks/AVFoundation.framework/AVFoundation

0x184d48000 - 0x184dacfff libAVFAudio.dylib arm64 <fdd31b28c0ec3f76b8f0fa9a057e43d9> /System/Library/Frameworks/AVFoundation.framework/libAVFAudio.dylib

0x184df0000 - 0x184df0fff Accelerate arm64 <a2161063fee1315193bc488d0354f43e> /System/Library/Frameworks/Accelerate.framework/Accelerate

0x184e08000 - 0x185027fff vImage arm64 <74eb7b77dbcd321db86e784be9353a08> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage

0x185028000 - 0x1850cffff libBLAS.dylib arm64 <56e8b79c2c03379dad45fe2ea1a4052f> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib

0x1850d0000 - 0x18544afff libLAPACK.dylib arm64 <fd491ae19b12315babb621650a0eef76> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib

0x18544c000 - 0x185461fff libLinearAlgebra.dylib arm64 <9307063a5e1833abbb857a9ec4c5369e> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLinearAlgebra.dylib

0x185464000 - 0x1854ccfff libvDSP.dylib arm64 <d4d2b4a941213e2b81f3ddafd6b8a312> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib

0x1854d0000 - 0x1854f3fff libvMisc.dylib arm64 <92a0dd635be43dfe8c128c888ef37c0e> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvMisc.dylib

0x1854f4000 - 0x1854f4fff vecLib arm64 <9248f57f1d8430219a810aa93254f157> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib

0x1854f8000 - 0x185527fff Accounts arm64 <4199851056d4376aa4d8668b83c85454> /System/Library/Frameworks/Accounts.framework/Accounts

0x1858c8000 - 0x185b88fff AudioToolbox arm64 <760c2dc59fa13660a769cc1b052d41e6> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox

0x185d28000 - 0x185f3bfff CFNetwork arm64 <df5535d1633f375aa889f755db0a93b9> /System/Library/Frameworks/CFNetwork.framework/CFNetwork

0x185f3c000 - 0x185fd8fff CloudKit arm64 <c24c6a0eeb1a38b598fafc24e9974595> /System/Library/Frameworks/CloudKit.framework/CloudKit

0x185fdc000 - 0x186041fff CoreAudio arm64 <b85ca2cdb29639ccb5f6405baf597027> /System/Library/Frameworks/CoreAudio.framework/CoreAudio

0x186068000 - 0x186089fff CoreBluetooth arm64 <fbd7cbc4b2533ea38844bf98757ce58d> /System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth

0x18608c000 - 0x1862d8fff CoreData arm64 <af13d4e830e13607b745fe57f90e5d5e> /System/Library/Frameworks/CoreData.framework/CoreData

0x1862dc000 - 0x18663afff CoreFoundation arm64 <6548b13bef1f3f958d96266f7c4c44e0> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation

0x18663c000 - 0x18679efff CoreGraphics arm64 <92162d42d08d357ab66302a38d724828> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics

0x186b4c000 - 0x186baafff CoreLocation arm64 <a166ad7f12f93406b54ae6a170fb38ee> /System/Library/Frameworks/CoreLocation.framework/CoreLocation

0x186be4000 - 0x186ca7fff CoreMedia arm64 <403a9798401c3b70a207e0e236454c0d> /System/Library/Frameworks/CoreMedia.framework/CoreMedia

0x186ca8000 - 0x186d96fff CoreMotion arm64 <61338e072f2a385ab4e315975f23eea2> /System/Library/Frameworks/CoreMotion.framework/CoreMotion

0x186d98000 - 0x186e09fff CoreTelephony arm64 <450440ee68593b8e9c951cdf838264f3> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony

0x186e0c000 - 0x186f14fff CoreText arm64 <4a9633cee0393585a98fcf07410e0828> /System/Library/Frameworks/CoreText.framework/CoreText

0x186f18000 - 0x186f35fff CoreVideo arm64 <217e5b69f6d03f8893f01de3e40915a8> /System/Library/Frameworks/CoreVideo.framework/CoreVideo

0x187210000 - 0x187468fff Foundation arm64 <509b484fb7b634b19673d50296d8278f> /System/Library/Frameworks/Foundation.framework/Foundation

0x1875b0000 - 0x18761bfff IOKit arm64 <311bed1f2b893195b8c0564d8925bfa2> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit

0x18761c000 - 0x1878bffff ImageIO arm64 <7d3c81746f2c3f1488b3efc633d21633> /System/Library/Frameworks/ImageIO.framework/ImageIO

0x18869c000 - 0x1886a2fff MediaAccessibility arm64 <4e3e82a2b09a38fcbf01843f97d5e604> /System/Library/Frameworks/MediaAccessibility.framework/MediaAccessibility

0x1888c8000 - 0x188ce6fff MediaToolbox arm64 <c2103a7dd16e3f67abfe898b039061e7> /System/Library/Frameworks/MediaToolbox.framework/MediaToolbox

0x188dc0000 - 0x188e38fff Metal arm64 <eb54636e26cd3dee870fa5e4fb708fe6> /System/Library/Frameworks/Metal.framework/Metal

0x188e3c000 - 0x188eedfff MobileCoreServices arm64 <daa61b358c17365792c20df791224e26> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices

0x18a168000 - 0x18a172fff OpenGLES arm64 <8824bb82d43937a9b0aa3870ece35772> /System/Library/Frameworks/OpenGLES.framework/OpenGLES

0x18a178000 - 0x18a179fff libCVMSPluginSupport.dylib arm64 <34760639fb2331dcaa229ba0e418c1af> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib

0x18a17c000 - 0x18a17ffff libCoreFSCache.dylib arm64 <e6f967504d5937d59223598de12969ab> /System/Library/Frameworks/OpenGLES.framework/libCoreFSCache.dylib

0x18a180000 - 0x18a184fff libCoreVMClient.dylib arm64 <30969b8fde9f36c4a6a0293c03e74e5f> /System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib

0x18a188000 - 0x18a192fff libGFXShared.dylib arm64 <5942ea8060c63e86b3ffbfb76b061276> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib

0x18a194000 - 0x18a1dffff libGLImage.dylib arm64 <3e46a6b44be93e5689e4851c76b2db04> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib

0x18a77c000 - 0x18a90efff QuartzCore arm64 <e47923f08f343c3e98e77f22f674f234> /System/Library/Frameworks/QuartzCore.framework/QuartzCore

0x18ab94000 - 0x18abe8fff Security arm64 <80b60ba1feba39afb6686e342398cce1> /System/Library/Frameworks/Security.framework/Security

0x18adbc000 - 0x18ae2ffff SystemConfiguration arm64 <633d8a8abeaf3abda9b0401146f2b668> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration

0x18b7b8000 - 0x18b831fff ************ arm64 <1468c96c3448370bbb407644bedbb368> /System/Library/Frameworks/************.framework/************

0x18c144000 - 0x18c149fff AggregateDictionary arm64 <cfa106cd07b430a6959f9127a6c3363a> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary

0x18c34c000 - 0x18c34ffff AirPlaySupport arm64 <9379098c9eed33088c7096882eec570d> /System/Library/PrivateFrameworks/AirPlaySupport.framework/AirPlaySupport

0x18c5a4000 - 0x18c5ecfff AppSupport arm64 <d088c6263b4932aebd9dcf2a14aadef2> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport

0x18c75c000 - 0x18c7a8fff AppleJPEG arm64 <621fe1223e9038a09023dd6c558ce423> /System/Library/PrivateFrameworks/AppleJPEG.framework/AppleJPEG

0x18c7d4000 - 0x18c7ddfff AppleSRP arm64 <8f0cacbeabdf39b3815a72e7ec9e8668> /System/Library/PrivateFrameworks/AppleSRP.framework/AppleSRP

0x18c7f0000 - 0x18c7fbfff AssertionServices arm64 <e0f182c7fdcd34a1a4acfe0bd4c7eae3> /System/Library/PrivateFrameworks/AssertionServices.framework/AssertionServices

0x18c7fc000 - 0x18c819fff AssetsLibraryServices arm64 <e28e74aed7103573b9416e016525ac04> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices

0x18c898000 - 0x18c89bfff BTLEAudioController arm64 <ea2ff306f28638ca8bc7a4f02d3c8f1e> /System/Library/PrivateFrameworks/BTLEAudioController.framework/BTLEAudioController

0x18c89c000 - 0x18c8b8fff BackBoardServices arm64 <ff372ac34d6430829a97778caad5bdf4> /System/Library/PrivateFrameworks/BackBoardServices.framework/BackBoardServices

0x18c8c0000 - 0x18c8fdfff BaseBoard arm64 <ab16c3464cfb3319bf31202639bb4a90> /System/Library/PrivateFrameworks/BaseBoard.framework/BaseBoard

0x18cc28000 - 0x18cc32fff CaptiveNetwork arm64 <0f8d341d0a8f3828b9485b189d04e126> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork

0x18cc40000 - 0x18cd8cfff ********* arm64 <0b8842c85d7139848f5e049e8e784c47> /System/Library/PrivateFrameworks/*********.framework/*********

0x18cf2c000 - 0x18cf50fff ChunkingLibrary arm64 <d38656203ca635b883d96b9c82d4cb59> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/ChunkingLibrary

0x18cf54000 - 0x18cf9efff CloudDocs arm64 <77c63a3164da35c684ad0a23f032a738> /System/Library/PrivateFrameworks/CloudDocs.framework/CloudDocs

0x18d550000 - 0x18d562fff CommonUtilities arm64 <cf917a1cdf503940a9879dda3ea7eae4> /System/Library/PrivateFrameworks/CommonUtilities.framework/CommonUtilities

0x18d69c000 - 0x18d6a4fff CoreAUC arm64 <ac7f4428bde93a379e4710ff07f8cd82> /System/Library/PrivateFrameworks/CoreAUC.framework/CoreAUC

0x18d744000 - 0x18d76cfff CoreDuet arm64 <2325864ac79931d08384cad9a5c2378c> /System/Library/PrivateFrameworks/CoreDuet.framework/CoreDuet

0x18d778000 - 0x18d78bfff CoreDuetDaemonProtocol arm64 <8e9b82e37ab1398fb75be0114863b188> /System/Library/PrivateFrameworks/CoreDuetDaemonProtocol.framework/CoreDuetDaemonProtocol

0x18d794000 - 0x18d796fff CoreDuetDebugLogging arm64 <9a52d10bde253ae196a436618e6245af> /System/Library/PrivateFrameworks/CoreDuetDebugLogging.framework/CoreDuetDebugLogging

0x18dc3c000 - 0x18dc60fff CoreServicesInternal arm64 <c35ab32d16e839e5bd3a2d4357cd512b> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/CoreServicesInternal

0x18df60000 - 0x18dffafff CoreUtils arm64 <835930892f3f3c28823421061c40dad7> /System/Library/PrivateFrameworks/CoreUtils.framework/CoreUtils

0x18dffc000 - 0x18e002fff CrashReporterSupport arm64 <939d8e00b1a8388eaf6721fe6fed8d07> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport

0x18e33c000 - 0x18e343fff DataMigration arm64 <ac8e9c98ebaf3b3facc8a35d4a5f662d> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration

0x18e3ac000 - 0x18e3d2fff EAP8021X arm64 <6201a1545ea735eaa654e6c4f19fce9c> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X

0x18e9f8000 - 0x18e9f8fff FontServices arm64 <9d2ca68913c53fef976aabcdb3f2bb7c> /System/Library/PrivateFrameworks/FontServices.framework/FontServices

0x18e9fc000 - 0x18eadcfff libFontParser.dylib arm64 <3e696fd5c611305eaee6bad27362f029> /System/Library/PrivateFrameworks/FontServices.framework/libFontParser.dylib

0x18ebfc000 - 0x18ec1cfff FrontBoardServices arm64 <06e8a3da46443f858df92288b8b009bf> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices

0x18f7c4000 - 0x18f7ddfff GenerationalStorage arm64 <c02d99b6f6e138249504e2a9a598e9b1> /System/Library/PrivateFrameworks/GenerationalStorage.framework/GenerationalStorage

0x18f7e0000 - 0x18faf5fff GeoServices arm64 <624b0528e79e3bd78cf8e4ca477e207b> /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices

0x18faf8000 - 0x18fb0bfff GraphicsServices arm64 <75b91070a0e7388fb904347f318b8cc0> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices

0x1901e0000 - 0x1901e7fff IOAccelerator arm64 <95ab3e3274d630779faccf8902ddc494> /System/Library/PrivateFrameworks/IOAccelerator.framework/IOAccelerator

0x1901ec000 - 0x1901f2fff IOMobileFramebuffer arm64 <079c9947522f331b8837714ca08e0966> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer

0x1901f4000 - 0x1901fafff IOSurface arm64 <202149d941b339f1a765e48058a523ea> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface

0x1901fc000 - 0x1901fefff IOSurfaceAccelerator arm64 <9aaea96dbea43a648fa78e7f43f769cd> /System/Library/PrivateFrameworks/IOSurfaceAccelerator.framework/IOSurfaceAccelerator

0x190690000 - 0x1906fcfff MMCS arm64 <780e63b11aeb3997b5bafb50d6b21b03> /System/Library/PrivateFrameworks/MMCS.framework/MMCS

0x1907ac000 - 0x19086afff ManagedConfiguration arm64 <b8ba68326c7030c1803e9f01edcefe02> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration

0x190880000 - 0x190904fff MediaControlSender arm64 <efb209af426c3d2bb592c4e8f2648a27> /System/Library/PrivateFrameworks/MediaControlSender.framework/MediaControlSender

0x1909b8000 - 0x1909d0fff MediaRemote arm64 <29897add26cf34f7b92dc012ed32f883> /System/Library/PrivateFrameworks/MediaRemote.framework/MediaRemote

0x1909d4000 - 0x1909e9fff MediaServices arm64 <98515a962b2f335da9efb5f14931c42f> /System/Library/PrivateFrameworks/MediaServices.framework/MediaServices

0x190c20000 - 0x190c29fff MobileInstallation arm64 <096c77b57b62337bb756b2b347fb0768> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation

0x190c2c000 - 0x190c3bfff MobileKeyBag arm64 <0e6f9d62dfe23cbca54b4d1a14f76149> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag

0x190c78000 - 0x190c7bfff MobileSystemServices arm64 <54153419dcaa356fb42fd86b712a4cf2> /System/Library/PrivateFrameworks/MobileSystemServices.framework/MobileSystemServices

0x190ca4000 - 0x190cb5fff MobileWiFi arm64 <b033fc6a7d7b39debe0d81296dce51e1> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi

0x191130000 - 0x191136fff Netrb arm64 <28eb6839c8f63101816697fa19770689> /System/Library/PrivateFrameworks/Netrb.framework/Netrb

0x191138000 - 0x19113ffff NetworkStatistics arm64 <b120e0e7ff6d36889b917c7ca2e5f978> /System/Library/PrivateFrameworks/NetworkStatistics.framework/NetworkStatistics

0x19116c000 - 0x19116ffff OAuth arm64 <e8987386b74a365582fa85fef51bc127> /System/Library/PrivateFrameworks/OAuth.framework/OAuth

0x191b04000 - 0x191b2dfff PersistentConnection arm64 <6723595bce1937c3a45fbb85baff8c55> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection

0x192030000 - 0x192038fff PowerLog arm64 <e938cd724d08330995b5f601f8dd14f6> /System/Library/PrivateFrameworks/PowerLog.framework/PowerLog

0x192474000 - 0x1924a1fff ProtectedCloudStorage arm64 <d928e44bb8ce3522a7bb283faaa5047b> /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/ProtectedCloudStorage

0x1924a4000 - 0x1924b2fff ProtocolBuffer arm64 <479705f12ac2303b931994a7b06663bf> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer

0x1924f4000 - 0x192572fff Quagga arm64 <66a25218aec23c18b9a18d8f810c5258> /System/Library/PrivateFrameworks/Quagga.framework/Quagga

0x192bec000 - 0x192c0cfff SpringBoardServices arm64 <c2866d40ee023cf9bb04fd7e58d20be2> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices

0x19300c000 - 0x19316afff StoreServices arm64 <6f1976a1f8de3576bab51f432d4fd363> /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices

0x193254000 - 0x19325afff SymptomReporter arm64 <c5101ccf34753ddbb759fbe42a5c8aa8> /System/Library/PrivateFrameworks/Symptoms.framework/Frameworks/SymptomReporter.framework/SymptomReporter

0x193268000 - 0x19326bfff TCC arm64 <b82f927439b13660b90c1669424d0c88> /System/Library/PrivateFrameworks/TCC.framework/TCC

0x19431c000 - 0x19431ffff UserFS arm64 <e5ebd8c9ae653364a9165ece0a913713> /System/Library/PrivateFrameworks/UserFS.framework/UserFS

0x196ec4000 - 0x196edffff libCRFSuite.dylib arm64 <be077716ac813f089f62203291996e66> /usr/lib/libCRFSuite.dylib

0x19707c000 - 0x197096fff libMobileGestalt.dylib arm64 <0d296a1f3cbd39bca52fdaa3b4df2a34> /usr/lib/libMobileGestalt.dylib

0x1970c8000 - 0x1970c9fff libSystem.B.dylib arm64 <9e8736fd5dda318abe4e597a531a625f> /usr/lib/libSystem.B.dylib

0x19714c000 - 0x19719afff libTelephonyUtilDynamic.dylib arm64 <f3b516b737b63a46b0a4b1e41ed9e7d4> /usr/lib/libTelephonyUtilDynamic.dylib

0x1972c4000 - 0x1972eefff libarchive.2.dylib arm64 <940f023a5f5f3aa19366e25514485721> /usr/lib/libarchive.2.dylib

0x197330000 - 0x197340fff libbsm.0.dylib arm64 <9e2235e821063e82a304719b1f4cf5f9> /usr/lib/libbsm.0.dylib

0x197344000 - 0x197354fff libbz2.1.0.dylib arm64 <a4e3b1006e6c37d3816f612caa78bdf2> /usr/lib/libbz2.1.0.dylib

0x197358000 - 0x1973aefff libc++.1.dylib arm64 <fd4810a47e6b31d3b5a8ceedf8ac6937> /usr/lib/libc++.1.dylib

0x1973b0000 - 0x1973d2fff libc++abi.dylib arm64 <2d2238a0320c395dbd802981c0b1a5fe> /usr/lib/libc++abi.dylib

0x197430000 - 0x19744dfff libextension.dylib arm64 <e2ed78a202593605b32575c0f22e08ea> /usr/lib/libextension.dylib

0x19747c000 - 0x197481fff libheimdal-asn1.dylib arm64 <61576927c939371c86216b7f14aed420> /usr/lib/libheimdal-asn1.dylib

0x197484000 - 0x197577fff libiconv.2.dylib arm64 <f735f961ee3e380ea18bb26f937c708e> /usr/lib/libiconv.2.dylib

0x197578000 - 0x19775ffff libicucore.A.dylib arm64 <4d8191c3315c3f5ca890c19e30dcd75b> /usr/lib/libicucore.A.dylib

0x197774000 - 0x197775fff liblangid.dylib arm64 <02a03c3dba573ae0ab3b32911c77efba> /usr/lib/liblangid.dylib

0x197778000 - 0x197784fff liblockdown.dylib arm64 <f3fabf14927e30f4889f04efcd61711c> /usr/lib/liblockdown.dylib

0x197788000 - 0x1977a1fff liblzma.5.dylib arm64 <f16086f89f1032d1aa3b80b559eddca9> /usr/lib/liblzma.5.dylib

0x197b78000 - 0x197b90fff libmis.dylib arm64 <3929204949543825a23a02585a45eff8> /usr/lib/libmis.dylib

0x197bc8000 - 0x197dc4fff libobjc.A.dylib arm64 <963fc34f80f9303da52a020af5a63e74> /usr/lib/libobjc.A.dylib

0x197efc000 - 0x197fd9fff libsqlite3.dylib arm64 <a97fddbf637f349ab395149f86cd80be> /usr/lib/libsqlite3.dylib

0x198074000 - 0x198162fff libxml2.2.dylib arm64 <73e5c4db073c3f97b3d7a78fdc531e86> /usr/lib/libxml2.2.dylib

0x198190000 - 0x1981a1fff libz.1.dylib arm64 <263f8bc085593d578ea393ba40438ee3> /usr/lib/libz.1.dylib

0x1981a4000 - 0x1981a8fff libcache.dylib arm64 <69f2d8d4d9ed3393b4e44bc425b538f2> /usr/lib/system/libcache.dylib

0x1981ac000 - 0x1981b8fff libcommonCrypto.dylib arm64 <c126afa9b4eb3f8cbb5fee48a17b56c6> /usr/lib/system/libcommonCrypto.dylib

0x1981bc000 - 0x1981bffff libcompiler_rt.dylib arm64 <7d48e08690f43daeaf8fdcb82d3ebb74> /usr/lib/system/libcompiler_rt.dylib

0x1981c0000 - 0x1981c7fff libcopyfile.dylib arm64 <126799884b2231498c7a5697b769aff5> /usr/lib/system/libcopyfile.dylib

0x1981c8000 - 0x19821ffff libcorecrypto.dylib arm64 <eeae3730f4bb3c8e91bd85f00b2314ce> /usr/lib/system/libcorecrypto.dylib

0x198220000 - 0x198248fff libdispatch.dylib arm64 <91f808be126a33b982d5880c2454afde> /usr/lib/system/libdispatch.dylib

0x19824c000 - 0x19824efff libdyld.dylib arm64 <cdf00d005c2f30efa821536ccb0b70f4> /usr/lib/system/libdyld.dylib

0x198250000 - 0x198250fff liblaunch.dylib arm64 <0d5f253a83673ecb9a55f667adf2c205> /usr/lib/system/liblaunch.dylib

0x198254000 - 0x198259fff libmacho.dylib arm64 <08dc912ff3123d2abc59dd17889f2abc> /usr/lib/system/libmacho.dylib

0x19825c000 - 0x19825dfff libremovefile.dylib arm64 <d5239b98479b37538d63f1fd0fe35905> /usr/lib/system/libremovefile.dylib

0x198260000 - 0x198275fff libsystem_asl.dylib arm64 <314e1ff76a71372ca4bc80351f984376> /usr/lib/system/libsystem_asl.dylib

0x198278000 - 0x198279fff libsystem_blocks.dylib arm64 <b120e51ddfeb3a1ca33f448f54412428> /usr/lib/system/libsystem_blocks.dylib

0x19827c000 - 0x1982fcfff libsystem_c.dylib arm64 <043c87b4428d34d4985264cebab5f687> /usr/lib/system/libsystem_c.dylib

0x198300000 - 0x198302fff libsystem_configuration.dylib arm64 <a666b752b9ea3289998dcf502fdeed0f> /usr/lib/system/libsystem_configuration.dylib

0x198304000 - 0x198305fff libsystem_coreservices.dylib arm64 <f73841bdf9a03defa5893ff3053889fa> /usr/lib/system/libsystem_coreservices.dylib

0x198308000 - 0x198318fff libsystem_coretls.dylib arm64 <e5edf64e24403daa997390669c136d6f> /usr/lib/system/libsystem_coretls.dylib

0x19831c000 - 0x198324fff libsystem_dnssd.dylib arm64 <c3c32be935df34b99c9f7acf5c29d3ff> /usr/lib/system/libsystem_dnssd.dylib

0x198328000 - 0x198349fff libsystem_info.dylib arm64 <7568980767d3355b99464736b574ff14> /usr/lib/system/libsystem_info.dylib

0x19834c000 - 0x19836cfff libsystem_kernel.dylib arm64 <7cd96299577530ebbca0cb44625702a7> /usr/lib/system/libsystem_kernel.dylib

0x198370000 - 0x19838cfff libsystem_m.dylib arm64 <4f59e5b4cf4935ada2e457a196730c2a> /usr/lib/system/libsystem_m.dylib

0x198390000 - 0x1983a9fff libsystem_malloc.dylib arm64 <56245a320c8a39f5b6057a9e99cac10d> /usr/lib/system/libsystem_malloc.dylib

0x1983ac000 - 0x1983e3fff libsystem_network.dylib arm64 <45c9566df16c3ae8ac52b39cafc30094> /usr/lib/system/libsystem_network.dylib

0x1983e4000 - 0x1983eafff libsystem_networkextension.dylib arm64 <2d758a26b5c23b969bfdb2c759752531> /usr/lib/system/libsystem_networkextension.dylib

0x1983ec000 - 0x1983f6fff libsystem_notify.dylib arm64 <c9c3de7c1a60336caf14918b9b087245> /usr/lib/system/libsystem_notify.dylib

0x1983f8000 - 0x1983fcfff libsystem_platform.dylib arm64 <c1774ebd3158311c8ee629808cbf8e77> /usr/lib/system/libsystem_platform.dylib

0x198400000 - 0x198408fff libsystem_pthread.dylib arm64 <e33298efd42037c2b571cde172635e5a> /usr/lib/system/libsystem_pthread.dylib

0x19840c000 - 0x19840efff libsystem_sandbox.dylib arm64 <edbadf71bd723d298ae9d5ad3d88ea86> /usr/lib/system/libsystem_sandbox.dylib

0x198410000 - 0x198413fff libsystem_stats.dylib arm64 <3ff8d305985431a9b00a9be30ea1d06e> /usr/lib/system/libsystem_stats.dylib

0x198414000 - 0x19841afff libsystem_trace.dylib arm64 <85a38582fb75355d92d3f50ca8c00b23> /usr/lib/system/libsystem_trace.dylib

0x19841c000 - 0x198421fff libunwind.dylib arm64 <ff63fb2532113013bd0a9da1f3df5911> /usr/lib/system/libunwind.dylib

0x198424000 - 0x198447fff libxpc.dylib arm64 <b870b51daa853686a7d9acd48c5fe153> /usr/lib/system/libxpc.dylib

Accepted Reply

I did indeed file bug number 21465338

Thank you.

which was closed as a duplicate of 20582825 which was itself closed with no further details about what version it is supposed to be fixed in.

According to the bug reports this was a bug in NSURLSession that was introduced in iOS 8.3 and is expected to be fixed in iOS 9. It only affects background sessions on iOS. Unfortunately I don't think there's a workaround, other than for you app to be as tolerant as possible of these

nsurlsessiond
crashes.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

I also got this issue on iOS 7.1.2. I still didn't find the exact issue, but it seems to be occuring when I'm queuing too much background downloads in too many different sessions. Can any one confirm there is a limitation?

You should definitely file a bug about this. Please post your bug number, just for the record.

If you can reliably reproduce the problem then it'd be great if you could attach a small test project to the bug. Also, if you can make sure it still happens on iOS 9 beta, that'd be grand.

It sounds like something you're doing is tying

nsurlsessiond
up in knots such that it's got stuck in a tight loop. Eventually the watchdog kills it and things recover. However, given that your just dealing with a single upload task, it's not obvious how you managed to convince the daemon to get itself into this state.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I also got this issue on iOS 7.1.2. I still didn't find the exact issue, but it seems to be occuring when I'm queuing too much background downloads in too many different sessions. Can any one confirm there is a limitation?

There's no concrete limit. In my experience, hundreds on tasks work just fine, things start to creak when you hit thousands of tasks, and tens of thousands of tasks would be a mistake.

Having said that, NSURLSession's background sessions have improved a lot since the iOS 7 days. Have you been seeing the same sorts of problems on recent iOS 8 releases?

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I have been able to reproduce it on iOS 8.1.1 on an iPad 2, but I have not been able to reproduce it on iOS 8.4 on an iPad Air.


Is the total number of task an issue only only for concurrent downloads, or for the total number tasks than an application is launching over time?

Here is the bug number : 21919383


I cannot test on iOS 9 beta for now because we are close of a releasing, and want to avoid instability issues by using a beta biuld.

Is the total number of task an issue only only for concurrent downloads, or for the total number tasks than an application is launching over time?

It should be the number you run concurrently.

Keep in mind that the tasks you submit to the NSURLSession background session don't all hit the 'wire' simultaneously. The background daemon has its own queue that limits the number of concurrent requests that it will run on the network.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi, I have the same problem: my background NSURLSession stops to work with error:

domain = NSURLErrorDomain

code = -997

description = “Lost connection to background transfer service”

when I add a lot of download task (3.000+). Please let me know how I could treat that issue..

I did indeed file bug number 21465338 which was closed as a duplicate of 20582825 which was itself closed with no further details about what version it is supposed to be fixed in. I had since upgraded to ios 9 beta 4 and not seen this crash again, although I haven't seen a lot of background uploads succeed either.

I did indeed file bug number 21465338

Thank you.

which was closed as a duplicate of 20582825 which was itself closed with no further details about what version it is supposed to be fixed in.

According to the bug reports this was a bug in NSURLSession that was introduced in iOS 8.3 and is expected to be fixed in iOS 9. It only affects background sessions on iOS. Unfortunately I don't think there's a workaround, other than for you app to be as tolerant as possible of these

nsurlsessiond
crashes.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"