LLDB and deallocated instances

1,028 views
Skip to first unread message

Paul Sturgess

unread,
Oct 15, 2013, 8:52:04 AM10/15/13
to rubym...@googlegroups.com
Hi,

I'm hoping someone can help me out with how to use LLDB to debug a deallocated instance.

I'm starting my app via:

    $ rake debug=1 NSZombieEnabled=YES MallocStackLoggingNoCompact=1

I can reliably reproduce the bug and I get the following message in Terminal when I trigger it:

    Message sent to deallocated instance 0x14c786d0

Now in GDB I had a ~/.gdbinit file with `fb malloc_error_break` in it. This allowed me to:

    $ info malloc-history 0x14c786d0

How should I go about this in LLDB?

Thanks,
Paul.

Eloy Durán

unread,
Oct 15, 2013, 9:03:59 AM10/15/13
to rubym...@googlegroups.com
Hi,

If this is on the simulator you can use the tool: /usr/bin/malloc_history.

Alternatively, see this SO post for an in-debugger solution for LLDB: http://stackoverflow.com/questions/9738994/lldb-equivalent-to-gdbs-info-malloc-history-address-command

--
You received this message because you are subscribed to the Google Groups "RubyMotion - Ruby for iOS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubymotion+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubymotion/971de433-4ff8-4359-a5a3-eb3b2c7171d3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Paul Sturgess

unread,
Oct 15, 2013, 9:40:16 AM10/15/13
to rubym...@googlegroups.com
Hi Eloy,

Thanks for the reply.

When I run:

    $ script import lldb.macosx.heap
    $ malloc_info
--stack-history <objref>

I get the following output:

    malloc: *** error for object 0x86cec8156575355: pointer being freed was not allocated
   
*** set a breakpoint in malloc_error_break to debug

I also tried using /usr/bin/malloc_history like so:

    $ /usr/bin/malloc_history <process-id> <objref>

But I get:

    The target process has no stack logs.  Run it with the MallocStackLogging environment variable set to get stack logs.

This was starting the app via:

    $ rake debug=1 NSZombieEnabled=YES MallocStackLogging=1

Thanks,
Paul.


Eloy Durán

unread,
Oct 16, 2013, 4:49:24 AM10/16/13
to rubym...@googlegroups.com
Hmm, that last command works for me. What kind of output are you getting when you run that? This is what I see (the app is called TestFBPod):

~/t/R/TestFBPod » rake debug=1 NSZombieEnabled=YES MallocStackLogging=1
sw_vers(34711) malloc: recording malloc stacks to disk using standard recorder
sw_vers(34711) malloc: stack logs being written into /tmp/stack-logs.34711.sw_vers.peyXhs.index
sw_vers(34711,0x7fff792b2180) malloc: stack logs deleted from /tmp/stack-logs.34711.sw_vers.peyXhs.index
sh(34712) malloc: recording malloc stacks to disk using standard recorder
sh(34712) malloc: stack logs being written into /tmp/stack-logs.34712.sh.yzK9RM.index
ruby(34712) malloc: recording malloc stacks to disk using standard recorder
ruby(34712) malloc: stack logs deleted from /tmp/stack-logs.34712.sh.yzK9RM.index
ruby(34712) malloc: stack logs being written into /tmp/stack-logs.34712.ruby.QbYUd8.index
ruby(34712) malloc: stack logs deleted from /tmp/stack-logs.34712.ruby.QbYUd8.index
xcode-select(34713) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34713) malloc: stack logs being written into /tmp/stack-logs.34713.xcode-select.SqC0oD.index
xcode-select(34713) malloc: stack logs deleted from /tmp/stack-logs.34713.xcode-select.SqC0oD.index
xcode-select(34714) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34714) malloc: stack logs being written into /tmp/stack-logs.34714.xcode-select.Kppr1K.index
xcode-select(34714) malloc: stack logs deleted from /tmp/stack-logs.34714.xcode-select.Kppr1K.index
xcodebuild(34715) malloc: recording malloc stacks to disk using standard recorder
xcodebuild(34715) malloc: stack logs being written into /tmp/stack-logs.34715.xcodebuild.qKqccZ.index
xcodebuild(34715,0x7fff792b2180) malloc: stack logs deleted from /tmp/stack-logs.34715.xcodebuild.qKqccZ.index
xcode-select(34716) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34716) malloc: stack logs being written into /tmp/stack-logs.34716.xcode-select.P4bDbu.index
xcode-select(34716) malloc: stack logs deleted from /tmp/stack-logs.34716.xcode-select.P4bDbu.index
xcode-select(34717) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34717) malloc: stack logs being written into /tmp/stack-logs.34717.xcode-select.DivUcA.index
xcode-select(34717) malloc: stack logs deleted from /tmp/stack-logs.34717.xcode-select.DivUcA.index
xcode-select(34718) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34718) malloc: stack logs being written into /tmp/stack-logs.34718.xcode-select.kRueyW.index
xcode-select(34718) malloc: stack logs deleted from /tmp/stack-logs.34718.xcode-select.kRueyW.index
xcode-select(34719) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34719) malloc: stack logs being written into /tmp/stack-logs.34719.xcode-select.r8FPHi.index
xcode-select(34719) malloc: stack logs deleted from /tmp/stack-logs.34719.xcode-select.r8FPHi.index
xcode-select(34720) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34720) malloc: stack logs being written into /tmp/stack-logs.34720.xcode-select.tSlRv4.index
xcode-select(34720) malloc: stack logs deleted from /tmp/stack-logs.34720.xcode-select.tSlRv4.index
xcode-select(34721) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34721) malloc: stack logs being written into /tmp/stack-logs.34721.xcode-select.y4MtyP.index
xcode-select(34721) malloc: stack logs deleted from /tmp/stack-logs.34721.xcode-select.y4MtyP.index
xcode-select(34722) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34722) malloc: stack logs being written into /tmp/stack-logs.34722.xcode-select.ahGWR2.index
xcode-select(34722) malloc: stack logs deleted from /tmp/stack-logs.34722.xcode-select.ahGWR2.index
     Build ./build/iPhoneSimulator-7.0-Development
xcode-select(34723) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34723) malloc: stack logs being written into /tmp/stack-logs.34723.xcode-select.tSlQgX.index
xcode-select(34723) malloc: stack logs deleted from /tmp/stack-logs.34723.xcode-select.tSlQgX.index
xcode-select(34724) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34724) malloc: stack logs being written into /tmp/stack-logs.34724.xcode-select.C9e8ZC.index
xcode-select(34724) malloc: stack logs deleted from /tmp/stack-logs.34724.xcode-select.C9e8ZC.index
sh(34725) malloc: recording malloc stacks to disk using standard recorder
sh(34725) malloc: stack logs being written into /tmp/stack-logs.34725.sh.OEB5hp.index
otool(34725) malloc: recording malloc stacks to disk using standard recorder
otool(34725) malloc: stack logs deleted from /tmp/stack-logs.34725.sh.OEB5hp.index
otool(34725) malloc: stack logs being written into /tmp/stack-logs.34725.otool.yPUutW.index
otool(34725) malloc: stack logs deleted from /tmp/stack-logs.34725.otool.yPUutW.index
xcode-select(34726) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34726) malloc: stack logs being written into /tmp/stack-logs.34726.xcode-select.GOghYa.index
xcode-select(34726) malloc: stack logs deleted from /tmp/stack-logs.34726.xcode-select.GOghYa.index
sh(34727) malloc: recording malloc stacks to disk using standard recorder
sh(34727) malloc: stack logs being written into /tmp/stack-logs.34727.sh.VEifKM.index
otool(34727) malloc: recording malloc stacks to disk using standard recorder
otool(34727) malloc: stack logs deleted from /tmp/stack-logs.34727.sh.VEifKM.index
otool(34727) malloc: stack logs being written into /tmp/stack-logs.34727.otool.dywsv8.index
otool(34727) malloc: stack logs deleted from /tmp/stack-logs.34727.otool.dywsv8.index
xcode-select(34728) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34728) malloc: stack logs being written into /tmp/stack-logs.34728.xcode-select.2KkJwy.index
xcode-select(34728) malloc: stack logs deleted from /tmp/stack-logs.34728.xcode-select.2KkJwy.index
sh(34729) malloc: recording malloc stacks to disk using standard recorder
sh(34729) malloc: stack logs being written into /tmp/stack-logs.34729.sh.p6AsVl.index
otool(34729) malloc: recording malloc stacks to disk using standard recorder
otool(34729) malloc: stack logs deleted from /tmp/stack-logs.34729.sh.p6AsVl.index
otool(34729) malloc: stack logs being written into /tmp/stack-logs.34729.otool.oFLzSc.index
otool(34729) malloc: stack logs deleted from /tmp/stack-logs.34729.otool.oFLzSc.index
xcode-select(34730) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34730) malloc: stack logs being written into /tmp/stack-logs.34730.xcode-select.QM7Sh5.index
xcode-select(34730) malloc: stack logs deleted from /tmp/stack-logs.34730.xcode-select.QM7Sh5.index
sh(34731) malloc: recording malloc stacks to disk using standard recorder
sh(34731) malloc: stack logs being written into /tmp/stack-logs.34731.sh.rz5oDs.index
otool(34731) malloc: recording malloc stacks to disk using standard recorder
otool(34731) malloc: stack logs deleted from /tmp/stack-logs.34731.sh.rz5oDs.index
otool(34731) malloc: stack logs being written into /tmp/stack-logs.34731.otool.aqeK0v.index
otool(34731) malloc: stack logs deleted from /tmp/stack-logs.34731.otool.aqeK0v.index
xcode-select(34733) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34733) malloc: stack logs being written into /tmp/stack-logs.34733.xcode-select.1iZyoE.index
xcode-select(34733) malloc: stack logs deleted from /tmp/stack-logs.34733.xcode-select.1iZyoE.index
sh(34734) malloc: recording malloc stacks to disk using standard recorder
sh(34734) malloc: stack logs being written into /tmp/stack-logs.34734.sh.yPVT1B.index
otool(34734) malloc: recording malloc stacks to disk using standard recorder
otool(34734) malloc: stack logs deleted from /tmp/stack-logs.34734.sh.yPVT1B.index
otool(34734) malloc: stack logs being written into /tmp/stack-logs.34734.otool.iFPSX6.index
otool(34734) malloc: stack logs deleted from /tmp/stack-logs.34734.otool.iFPSX6.index
xcode-select(34735) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34735) malloc: stack logs being written into /tmp/stack-logs.34735.xcode-select.CkjzVn.index
xcode-select(34735) malloc: stack logs deleted from /tmp/stack-logs.34735.xcode-select.CkjzVn.index
sh(34736) malloc: recording malloc stacks to disk using standard recorder
sh(34736) malloc: stack logs being written into /tmp/stack-logs.34736.sh.GVHpLx.index
otool(34736) malloc: recording malloc stacks to disk using standard recorder
otool(34736) malloc: stack logs deleted from /tmp/stack-logs.34736.sh.GVHpLx.index
otool(34736) malloc: stack logs being written into /tmp/stack-logs.34736.otool.KcgIvC.index
otool(34736) malloc: stack logs deleted from /tmp/stack-logs.34736.otool.KcgIvC.index
xcode-select(34737) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34737) malloc: stack logs being written into /tmp/stack-logs.34737.xcode-select.sItNn9.index
xcode-select(34737) malloc: stack logs deleted from /tmp/stack-logs.34737.xcode-select.sItNn9.index
sh(34738) malloc: recording malloc stacks to disk using standard recorder
sh(34738) malloc: stack logs being written into /tmp/stack-logs.34738.sh.q9Ktau.index
otool(34738) malloc: recording malloc stacks to disk using standard recorder
otool(34738) malloc: stack logs deleted from /tmp/stack-logs.34738.sh.q9Ktau.index
otool(34738) malloc: stack logs being written into /tmp/stack-logs.34738.otool.w8bSTr.index
otool(34738) malloc: stack logs deleted from /tmp/stack-logs.34738.otool.w8bSTr.index
xcode-select(34739) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34739) malloc: stack logs being written into /tmp/stack-logs.34739.xcode-select.Or8zLC.index
xcode-select(34739) malloc: stack logs deleted from /tmp/stack-logs.34739.xcode-select.Or8zLC.index
sh(34740) malloc: recording malloc stacks to disk using standard recorder
sh(34740) malloc: stack logs being written into /tmp/stack-logs.34740.sh.QK9pl1.index
otool(34740) malloc: recording malloc stacks to disk using standard recorder
otool(34740) malloc: stack logs deleted from /tmp/stack-logs.34740.sh.QK9pl1.index
otool(34740) malloc: stack logs being written into /tmp/stack-logs.34740.otool.5jY3cE.index
otool(34740) malloc: stack logs deleted from /tmp/stack-logs.34740.otool.5jY3cE.index
xcode-select(34741) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34741) malloc: stack logs being written into /tmp/stack-logs.34741.xcode-select.7bYMCz.index
xcode-select(34741) malloc: stack logs deleted from /tmp/stack-logs.34741.xcode-select.7bYMCz.index
sh(34742) malloc: recording malloc stacks to disk using standard recorder
sh(34742) malloc: stack logs being written into /tmp/stack-logs.34742.sh.pZAZTx.index
otool(34742) malloc: recording malloc stacks to disk using standard recorder
otool(34742) malloc: stack logs deleted from /tmp/stack-logs.34742.sh.pZAZTx.index
otool(34742) malloc: stack logs being written into /tmp/stack-logs.34742.otool.AVEvpm.index
otool(34742) malloc: stack logs deleted from /tmp/stack-logs.34742.otool.AVEvpm.index
xcode-select(34743) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34743) malloc: stack logs being written into /tmp/stack-logs.34743.xcode-select.q9cb7b.index
xcode-select(34743) malloc: stack logs deleted from /tmp/stack-logs.34743.xcode-select.q9cb7b.index
sh(34744) malloc: recording malloc stacks to disk using standard recorder
sh(34744) malloc: stack logs being written into /tmp/stack-logs.34744.sh.dsvmDp.index
otool(34744) malloc: recording malloc stacks to disk using standard recorder
otool(34744) malloc: stack logs deleted from /tmp/stack-logs.34744.sh.dsvmDp.index
otool(34744) malloc: stack logs being written into /tmp/stack-logs.34744.otool.0jYnxl.index
otool(34744) malloc: stack logs deleted from /tmp/stack-logs.34744.otool.0jYnxl.index
xcode-select(34745) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34745) malloc: stack logs being written into /tmp/stack-logs.34745.xcode-select.vrsOhQ.index
xcode-select(34745) malloc: stack logs deleted from /tmp/stack-logs.34745.xcode-select.vrsOhQ.index
sh(34746) malloc: recording malloc stacks to disk using standard recorder
sh(34746) malloc: stack logs being written into /tmp/stack-logs.34746.sh.E60pW1.index
otool(34746) malloc: recording malloc stacks to disk using standard recorder
otool(34746) malloc: stack logs deleted from /tmp/stack-logs.34746.sh.E60pW1.index
otool(34746) malloc: stack logs being written into /tmp/stack-logs.34746.otool.zgR5rx.index
otool(34746) malloc: stack logs deleted from /tmp/stack-logs.34746.otool.zgR5rx.index
xcode-select(34747) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34747) malloc: stack logs being written into /tmp/stack-logs.34747.xcode-select.WTwKQ3.index
xcode-select(34747) malloc: stack logs deleted from /tmp/stack-logs.34747.xcode-select.WTwKQ3.index
sh(34748) malloc: recording malloc stacks to disk using standard recorder
sh(34748) malloc: stack logs being written into /tmp/stack-logs.34748.sh.keDMPR.index
otool(34748) malloc: recording malloc stacks to disk using standard recorder
otool(34748) malloc: stack logs deleted from /tmp/stack-logs.34748.sh.keDMPR.index
otool(34748) malloc: stack logs being written into /tmp/stack-logs.34748.otool.wu5oaB.index
otool(34748) malloc: stack logs deleted from /tmp/stack-logs.34748.otool.wu5oaB.index
xcode-select(34749) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34749) malloc: stack logs being written into /tmp/stack-logs.34749.xcode-select.4R3BST.index
xcode-select(34749) malloc: stack logs deleted from /tmp/stack-logs.34749.xcode-select.4R3BST.index
sh(34750) malloc: recording malloc stacks to disk using standard recorder
sh(34750) malloc: stack logs being written into /tmp/stack-logs.34750.sh.TsxY1o.index
otool(34750) malloc: recording malloc stacks to disk using standard recorder
otool(34750) malloc: stack logs deleted from /tmp/stack-logs.34750.sh.TsxY1o.index
otool(34750) malloc: stack logs being written into /tmp/stack-logs.34750.otool.KtjGKN.index
otool(34750) malloc: stack logs deleted from /tmp/stack-logs.34750.otool.KtjGKN.index
xcode-select(34751) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34751) malloc: stack logs being written into /tmp/stack-logs.34751.xcode-select.V8xuTF.index
xcode-select(34751) malloc: stack logs deleted from /tmp/stack-logs.34751.xcode-select.V8xuTF.index
sh(34752) malloc: recording malloc stacks to disk using standard recorder
sh(34752) malloc: stack logs being written into /tmp/stack-logs.34752.sh.qu7b4G.index
otool(34752) malloc: recording malloc stacks to disk using standard recorder
otool(34752) malloc: stack logs deleted from /tmp/stack-logs.34752.sh.qu7b4G.index
otool(34752) malloc: stack logs being written into /tmp/stack-logs.34752.otool.rvBxtx.index
otool(34752) malloc: stack logs deleted from /tmp/stack-logs.34752.otool.rvBxtx.index
xcode-select(34753) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34753) malloc: stack logs being written into /tmp/stack-logs.34753.xcode-select.F63Un8.index
xcode-select(34753) malloc: stack logs deleted from /tmp/stack-logs.34753.xcode-select.F63Un8.index
sh(34754) malloc: recording malloc stacks to disk using standard recorder
sh(34754) malloc: stack logs being written into /tmp/stack-logs.34754.sh.4FCPEn.index
otool(34754) malloc: recording malloc stacks to disk using standard recorder
otool(34754) malloc: stack logs deleted from /tmp/stack-logs.34754.sh.4FCPEn.index
otool(34754) malloc: stack logs being written into /tmp/stack-logs.34754.otool.ablrTs.index
otool(34754) malloc: stack logs deleted from /tmp/stack-logs.34754.otool.ablrTs.index
xcode-select(34755) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34755) malloc: stack logs being written into /tmp/stack-logs.34755.xcode-select.6tDHQV.index
xcode-select(34755) malloc: stack logs deleted from /tmp/stack-logs.34755.xcode-select.6tDHQV.index
sh(34756) malloc: recording malloc stacks to disk using standard recorder
sh(34756) malloc: stack logs being written into /tmp/stack-logs.34756.sh.yUtmk5.index
otool(34756) malloc: recording malloc stacks to disk using standard recorder
otool(34756) malloc: stack logs deleted from /tmp/stack-logs.34756.sh.yUtmk5.index
otool(34756) malloc: stack logs being written into /tmp/stack-logs.34756.otool.vU2PAK.index
otool(34756) malloc: stack logs deleted from /tmp/stack-logs.34756.otool.vU2PAK.index
xcode-select(34757) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34757) malloc: stack logs being written into /tmp/stack-logs.34757.xcode-select.QX1hTD.index
xcode-select(34757) malloc: stack logs deleted from /tmp/stack-logs.34757.xcode-select.QX1hTD.index
sh(34758) malloc: recording malloc stacks to disk using standard recorder
sh(34758) malloc: stack logs being written into /tmp/stack-logs.34758.sh.qixErC.index
otool(34758) malloc: recording malloc stacks to disk using standard recorder
otool(34758) malloc: stack logs deleted from /tmp/stack-logs.34758.sh.qixErC.index
otool(34758) malloc: stack logs being written into /tmp/stack-logs.34758.otool.FOiKun.index
otool(34758) malloc: stack logs deleted from /tmp/stack-logs.34758.otool.FOiKun.index
xcode-select(34759) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34759) malloc: stack logs being written into /tmp/stack-logs.34759.xcode-select.tLrwrF.index
xcode-select(34759) malloc: stack logs deleted from /tmp/stack-logs.34759.xcode-select.tLrwrF.index
sh(34760) malloc: recording malloc stacks to disk using standard recorder
sh(34760) malloc: stack logs being written into /tmp/stack-logs.34760.sh.DQw0wM.index
otool(34760) malloc: recording malloc stacks to disk using standard recorder
otool(34760) malloc: stack logs deleted from /tmp/stack-logs.34760.sh.DQw0wM.index
otool(34760) malloc: stack logs being written into /tmp/stack-logs.34760.otool.Z6LDwo.index
otool(34760) malloc: stack logs deleted from /tmp/stack-logs.34760.otool.Z6LDwo.index
     Build vendor/Pods
sysctl(34761) malloc: recording malloc stacks to disk using standard recorder
sysctl(34761) malloc: stack logs being written into /tmp/stack-logs.34761.sysctl.xcKTLt.index
sysctl(34761) malloc: stack logs deleted from /tmp/stack-logs.34761.sysctl.xcKTLt.index
xcode-select(34762) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34762) malloc: stack logs being written into /tmp/stack-logs.34762.xcode-select.nfwAtB.index
xcode-select(34762) malloc: stack logs deleted from /tmp/stack-logs.34762.xcode-select.nfwAtB.index
sh(34763) malloc: recording malloc stacks to disk using standard recorder
sh(34763) malloc: stack logs being written into /tmp/stack-logs.34763.sh.deK7wA.index
nm(34763) malloc: recording malloc stacks to disk using standard recorder
nm(34763) malloc: stack logs deleted from /tmp/stack-logs.34763.sh.deK7wA.index
nm(34763) malloc: stack logs being written into /tmp/stack-logs.34763.nm.eBIAP3.index
nm(34763) malloc: stack logs deleted from /tmp/stack-logs.34763.nm.eBIAP3.index
xcode-select(34764) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34764) malloc: stack logs being written into /tmp/stack-logs.34764.xcode-select.s8RVRt.index
xcode-select(34764) malloc: stack logs deleted from /tmp/stack-logs.34764.xcode-select.s8RVRt.index
xcode-select(34765) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34765) malloc: stack logs being written into /tmp/stack-logs.34765.xcode-select.2xYJYi.index
xcode-select(34765) malloc: stack logs deleted from /tmp/stack-logs.34765.xcode-select.2xYJYi.index
sh(34766) malloc: recording malloc stacks to disk using standard recorder
sh(34766) malloc: stack logs being written into /tmp/stack-logs.34766.sh.vAkUau.index
nfd(34766) malloc: recording malloc stacks to disk using standard recorder
nfd(34766) malloc: stack logs deleted from /tmp/stack-logs.34766.sh.vAkUau.index
nfd(34766) malloc: stack logs being written into /tmp/stack-logs.34766.nfd.FTwLYX.index
nfd(34766) malloc: stack logs deleted from /tmp/stack-logs.34766.nfd.FTwLYX.index
sh(34767) malloc: recording malloc stacks to disk using standard recorder
sh(34767) malloc: stack logs being written into /tmp/stack-logs.34767.sh.pVp0u4.index
defaults(34767) malloc: recording malloc stacks to disk using standard recorder
defaults(34767) malloc: stack logs deleted from /tmp/stack-logs.34767.sh.pVp0u4.index
defaults(34767) malloc: stack logs being written into /tmp/stack-logs.34767.defaults.xQPQMQ.index
defaults(34767,0x7fff792b2180) malloc: stack logs deleted from /tmp/stack-logs.34767.defaults.xQPQMQ.index
xcode-select(34768) malloc: recording malloc stacks to disk using standard recorder
xcode-select(34768) malloc: stack logs being written into /tmp/stack-logs.34768.xcode-select.btmK39.index
xcode-select(34768) malloc: stack logs deleted from /tmp/stack-logs.34768.xcode-select.btmK39.index
  Simulate ./build/iPhoneSimulator-7.0-Development/TestFBPod.app
sh(34769) malloc: recording malloc stacks to disk using standard recorder
sh(34769) malloc: stack logs being written into /tmp/stack-logs.34769.sh.DI9zxM.index
sim(34769) malloc: recording malloc stacks to disk using standard recorder
sim(34769) malloc: stack logs deleted from /tmp/stack-logs.34769.sh.DI9zxM.index
sim(34769) malloc: stack logs being written into /tmp/stack-logs.34769.sim.hOyRWv.index
lldb(34818) malloc: recording malloc stacks to disk using standard recorder
lldb(34818) malloc: process 34616 no longer exists, stack logs deleted from /tmp/stack-logs.34616.TestFBPod.tHT7P5.index
lldb(34818) malloc: stack logs being written into /tmp/stack-logs.34818.lldb.D0zzFO.index
1 location added to breakpoint 1
1 location added to breakpoint 2
TestFBPod(34814) malloc: recording malloc stacks to disk using standard recorder
TestFBPod(34814) malloc: stack logs being written into /tmp/stack-logs.34814.TestFBPod.fSCBhT.index
2013-10-16 10:48:18.895 TestFBPod[34814:a0b] Cannot find executable for CFBundle 0xd8ec130 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2013-10-16 10:48:18.919 TestFBPod[34814:a0b] Cannot find executable for CFBundle 0x10981b30 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/GeoServices.axbundle> (not loaded)
2013-10-16 10:48:18.944 TestFBPod[34814:a0b] Cannot find executable for CFBundle 0xab6af80 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/SocialFramework.axbundle> (not loaded)

error: empty command
(lldb) exit
Quitting LLDB will detach from one or more processes. Do you really want to proceed: [Y/n] y
lldb(34818,0x7fff792b2180) malloc: stack logs deleted from /tmp/stack-logs.34818.lldb.D0zzFO.index
sim(34769,0x7fff792b2180) malloc: stack logs deleted from /tmp/stack-logs.34769.sim.hOyRWv.index
stty(34833) malloc: recording malloc stacks to disk using standard recorder
stty(34833) malloc: stack logs being written into /tmp/stack-logs.34833.stty.j07pdR.index
stty(34833) malloc: stack logs deleted from /tmp/stack-logs.34833.stty.j07pdR.index

Paul Sturgess

unread,
Oct 16, 2013, 10:12:39 AM10/16/13
to rubym...@googlegroups.com
OK so I've got to the bottom of the memory bug I had with the help of Eloy.

I've written up in full how to go about using LLDB for debugging memory issues on my blog here:


Cheers,
Paul.
Reply all
Reply to author
Forward
0 new messages