I’ve been trying to dump memory of a 64-bit application (at least it seems to be so). Looking at many of the tutorials (this, this and this) what I did was:

  1. Installed gdb.
  2. SSH into device.
  3. Cracked application using Clutch and installed it again using ipainstaller command-line tool.
  4. Started application and found its PID from ps -ax.
  5. gdb -p %PID%

What I get however is a Segmentation fault: 11 when trying to attach. Some applications like Chess.com or TinyRails are OK to getting attached but ten I see bunch of errors:

warning: error on line 221 of “/Volumes/Builds2/BuildRoot/SourceCache/gdb/gdb-1708/src/gdb/macosx/macosx-nat-infthread.c” in function “kern_return_t modify_trace_bit(thread_t, int)”: (os/kern) invalid argument (0x4x)

warning: error on line 395 of “/Volumes/Builds2/BuildRoot/SourceCache/gdb/gdb-1708/src/gdb/macosx/macosx-nat-infthread.c” in function “void prepare_threads_after_stop(struct macosx_inferior_status *)”: (os/kern) invalid argument (0x4x)

Is there a way to dump memory from 64-bit applications? Ideally I want to be able to do that on device only, without Xcode or other specific PC tools.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

Log in with your credentials

Forgot your details?