Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msl not working in Xcode 12.4 #31

Open
daniel-beard opened this issue Apr 21, 2021 · 2 comments
Open

msl not working in Xcode 12.4 #31

daniel-beard opened this issue Apr 21, 2021 · 2 comments

Comments

@daniel-beard
Copy link

daniel-beard commented Apr 21, 2021

Hi, I've enabled malloc stack logging in the scheme editor for my current target (Simulator x86_64), and when I take an ObjC object address and pass to msl, I'm not getting any output.

Is there something I might be missing, or otherwise how can I provide more information here for effective debugging?
I am using the latest version of this repo, as of this morning.

(lldb) p inObject
(ClassNameRedactedHere *) $5 = 0x00007f8beaab8e40
(lldb) msl 0x00007f8beaab8e40
@daniel-beard
Copy link
Author

Previous no output was with only Live Allocation tracking. For tracking all allocations, I see this:

(lldb) msl 0x00007fecd0575df0
Traceback (most recent call last):
  File "/Users/dbeard/bin/LLDB/lldb_commands/msl.py", line 55, in handle_command
    retString = processStackTraceStringFromAddresses(addresses, target, options)
  File "/Users/dbeard/bin/LLDB/lldb_commands/msl.py", line 66, in processStackTraceStringFromAddresses
    prevAddr = target.ResolveLoadAddress(frameAddr - 1)
  File "/Applications/Xcode12.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python3/lldb/__init__.py", line 11127, in ResolveLoadAddress
    return _lldb.SBTarget_ResolveLoadAddress(self, vm_addr)
OverflowError: in method 'SBTarget_ResolveLoadAddress', argument 2 of type 'lldb::addr_t'
(lldb) 

@daniel-beard
Copy link
Author

One last follow up, it does appear to work if I set All Allocation and Free History and pass the resymbolication flag:

(lldb) msl -r {Address}    // this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant