dispatch_async to queues other than main queue leaks memory in iOS 9.2

Originator:onevcat
Number:rdar://23894846 Date Originated:2015/12/15
Status:Closed Resolved:No
Product:iOS Product Version:9.2
Classification:iOS SDK Reproducible:Always
 
Summary:
dispatch_async to a queue other than the main queue leaks memory. It only appears in iOS 9.2. It works perfect in other iOS versions. So I guess it is a regression of iOS 9.2

Steps to Reproduce:
Open and run the project here: https://github.com/onevcat/DispatchMemoryLeakDemo

Expected Results:
The demo runs without problem. Memory does not increase unbounded.

Actual Results:
The memory increases until the app crashes in iOS 9.2 devices. On other iOS versions or even iOS simulator with 9.2, memory keeps reasonable.

Version:
9.2(13C75)

Notes:
You can find a demo here https://github.com/onevcat/DispatchMemoryLeakDemo

Configuration:
iPhone 6 Plus/iPhone 6

Comments

Thanks for reply. It turns out to be a problem of Xcode debug session instead. Turning off the "Queue Debugging" option in scheme setting would stop it. https://github.com/onevcat/DispatchMemoryLeakDemo/issues/2

Just want to mention, you cannot catch the memory increasing in Instrument. You can only see it in Xcode debug panel.


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!