Mac OS X 10.11.4: NSURLConnection leaks
| Originator: | kusterer | ||
| Number: | rdar://26222969 | Date Originated: | 11-May-2016 06:48 PM |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | Mac OS X 10.11.4 (15E65) |
| Classification: | Serious Bug | Reproducible: | Not Applicable |
I have created an NSURLConnection with a delegate. All my delegate methods have their own autorelease pools. Yet I still get a log message that an object is being autoreleased without a pool on this thread that contains no code from me: #0 0x00007fff93ee8723 in objc_autoreleaseNoPool () #1 0x00007fff93ed180b in (anonymous namespace)::AutoreleasePoolPage::autoreleaseNoPage(objc_object*) () #2 0x00007fff93ed50bf in objc_object::rootAutorelease2() () #3 0x00007fff8c5f2285 in -[__NSURLSessionLocal _protocolClasses] () #4 0x00007fff8c5f8be7 in -[__NSURLSessionLocal _protocolClassForTask:] () #5 0x00007fff8c5f8ae9 in -[__NSURLSessionLocal _createCanonicalRequestForTask:] () #6 0x00007fff8c611f2d in URLConnectionClient::_internalEvent_WillSendRequest() () #7 0x00007fff8c611c67 in URLConnectionClient::_connectionClientInterface_startConnection(__CFRunLoop*, __CFString const*) () #8 0x00007fff8c611ad4 in ___ZN20ClassicURLConnection5startEv_block_invoke () #9 0x00007fff8c6118fd in ___ZN20ClassicURLConnection15withClientAsyncEU13block_pointerFvP25ConnectionClientInterfaceE_block_invoke () #10 0x00007fff8c600d61 in ___ZNK25URLConnectionInstanceData18withWorkQueueAsyncEU13block_pointerFvvE_block_invoke () #11 0x00000001029ac070 in _dispatch_call_block_and_release () #12 0x000000010299ecc5 in _dispatch_client_callout () #13 0x00000001029a4112 in _dispatch_queue_drain () #14 0x00000001029abe24 in _dispatch_queue_invoke () #15 0x000000010299ecc5 in _dispatch_client_callout () #16 0x00000001029a3457 in _dispatch_root_queue_drain () #17 0x00000001029a28a5 in _dispatch_worker_thread3 () #18 0x0000000102a01336 in _pthread_wqthread () #19 0x00000001029fef91 in start_wqthread ()
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!