LLDB连接时报出大量warning: unable to find and load segment named '__TEXT' at 0xxxx in '' in macosx dynamic loader plug-in

Continuing the discussion from 一步一步用debugserver + lldb代替gdb进行动态调试:

按照文章所说 也换了上面链接的ldid 但是进入调试后…(process connect connect://192.168.10.105:1234)就出现下面的.
warning: unable to find and load segment named ‘__DATA’ at 0x3849c000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3a180000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x2cb97000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x384a3000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3a180000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x31b99000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x38f68000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3a180000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x32ceb000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x396c5000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3a180000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x3888d000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x36df5000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x39f79000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x2d7a9000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x34899000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3588d000 in ‘’ in macosx dynamic loader plug-in.
Process 1041 stopped

  • thread #1: tid = 0x5a67, 0x38375a58 libsystem_kernel.dylibmach_msg_trap + 20, stop reason = signal SIGSTOP frame #0: 0x38375a58 libsystem_kernel.dylibmach_msg_trap + 20
    libsystem_kernel.dylib`mach_msg_trap + 20:
    → 0x38375a58: pop {r4, r5, r6, r8}
    0x38375a5c: bx lr

libsystem_kernel.dylib`mach_msg_overwrite_trap:
0x38375a60: mov r12, sp
0x38375a64: push {r4, r5, r6, r8}
(lldb)
已经重新弄了好多次了,输入ni 或si就直接手机重启了,怎么办…

到这里时,“c”一下,就退出了?

是的 我现在在刷机 换个手机系统 之前是7.1.2 现在刷成6.0.1试 下
我的ipad air2是可以的 已经能操作 对了 手机是iphone4 是因为硬件吗

iphone4重刷成 7.1.2还是提示如下 其中提示gdb 很怪 麻烦你看下

warning: unable to find and load segment named ‘__TEXT’ at 0x3253f000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x395da000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3a1d4000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x2cc88000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x3850c000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3a1d4000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x32d43000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x3971a000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3a1d4000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x37438000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x39fdf000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3a1d4000 in ‘’ in macosx dynamic loader plug-in.
Process 31 stopped

  • thread #1: tid = 0x01ee, 0x383c9a58, stop reason = signal SIGSTOP
    frame #0: 0x383c9a58

error: GDB server does not support reading memory

(lldb) c
Process 31 resuming
Process 31 exited with status = -1 (0xffffffff) lost connection
(lldb)

是调试所有进程都有这问题吗?

是的.哪个进程都如此.我的ipad按教程来就正常…相当奇怪…

error: GDB server does not support reading memory

提示这个是因为什么东西…我查资料也没有.

调试手机自带的计算器 附加后输入ni一相马上计算器自动退出.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3b2c2000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x3226e000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x39ed7000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3b2c2000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__TEXT’ at 0x32d45000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__DATA’ at 0x3a0bc000 in ‘’ in macosx dynamic loader plug-in.
warning: unable to find and load segment named ‘__LINKEDIT’ at 0x3b2c2000 in ‘’ in macosx dynamic loader plug-in.
Process 350 stopped

  • thread #1: tid = 0x07a4, 0x394b7a58 libsystem_kernel.dylibmach_msg_trap + 20, stop reason = signal SIGSTOP frame #0: 0x394b7a58 libsystem_kernel.dylibmach_msg_trap + 20
    libsystem_kernel.dylib`mach_msg_trap + 20:
    → 0x394b7a58: pop {r4, r5, r6, r8}
    0x394b7a5c: bx lr

libsystem_kernel.dylib`mach_msg_overwrite_trap:
0x394b7a60: mov r12, sp
0x394b7a64: push {r4, r5, r6, r8}
(lldb) ni
Process 350 exited with status = -1 (0xffffffff) lost connection
(lldb)

你看看这个帖子,他说可能是网速的问题,你通过USB连过去试试看

好的 我试试 我多尝试一下 谢谢

看了你发过来的链接…上面没有写具体怎么用usb链接…是在第2版里面有吗?IOS应用逆向工程 第1版本我没找到…第2版京东还没到货.已经拍了…求给个用usb链接的方法…

第二版写了,论坛里也有,直接搜“USB”

OK.我已经找到方法了.确定用usb可以了.非常感谢.

还有个问题 第一版 和第二版有什么主要区别.看完第一版再看第二版吗…可以同时看吗? 第一版我看了大半了…

第二版的改进微博上写了,我个人建议第一版读到哪是哪,换到第二版从头开始读,已经读过的内容重点关注那些改变了的地方。第二版比第一版的难度更大,但因为逻辑更强,所以读起来反而更容易了

OK .我明白了…非常感谢…