lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
245 stars 17 forks source link

15259972: ptr_refs will crash lldb when used on iOS simulator processes #4360

Open openradar-mirror opened 9 years ago

openradar-mirror commented 9 years ago

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:

  1. Open a debugger session on an iOS app launched in the simulator
  2. Execute 'command script import lldb.macosx.heap' in lldb
  3. 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,

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

revolter commented 8 years ago

I have this problem too in Xcode 7.3