Summary:
ptr_refs is a very useful way for tracking memory leaks by scanning the heap for all objects that have a pointer to a region of memory. Whenever invoking it for the iOS simulator, lldb will crash itself and the app.
Steps to Reproduce:
Open a debugger session on an iOS app launched in the simulator
Execute 'command script import lldb.macosx.heap' in lldb
Execute 'ptr_refs '
Expected Results:
A list of all objects in the heap that point to a specific memory address
Actual Results:
lldb and xcode crash
Version:
XCode 5.0
OSX 10.8.5
lldb-300.5.46
Notes:
I've tried this on three different machines with the same results. I recall a conversation from WWDC2013 labs with an Apple Engineer who demonstrated that the leaks tool has changed in Mavericks, he showed that the leaks instrument via the command line can do the same thing. I can't find any documentation for this in the manpage or on the developer portal,
Description
Summary: ptr_refs is a very useful way for tracking memory leaks by scanning the heap for all objects that have a pointer to a region of memory. Whenever invoking it for the iOS simulator, lldb will crash itself and the app.
Steps to Reproduce:
Expected Results: A list of all objects in the heap that point to a specific memory address
Actual Results: lldb and xcode crash
Version: XCode 5.0 OSX 10.8.5 lldb-300.5.46
Notes: I've tried this on three different machines with the same results. I recall a conversation from WWDC2013 labs with an Apple Engineer who demonstrated that the leaks tool has changed in Mavericks, he showed that the leaks instrument via the command line can do the same thing. I can't find any documentation for this in the manpage or on the developer portal,
Configuration: 15" Retina MacBook Pro
Attachments:
Product Version: XCode 5.0 Created: 2013-10-18T05:23:43.136558 Originated: 2013-10-18T00:00:00 Open Radar Link: http://www.openradar.me/15259972