lldb+debugserver远程调试APP出现APP死掉的现象


#1

我的设备环境:ios9.3.2(jailbreak)
1、ssh自己的设备:
The authenticity of host '169.254.18.59 (169.254.18.59)' can't be established.
RSA key fingerprint is SHA256:PJvBK8gNlNkoqNdus/Lk71YBWhDTYQ2/CmTUX6d6PZ4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '169.254.18.59' (RSA) to the list of known hosts.
root@169.254.18.59's password:
molinde-iPhone:~ root# debugserver *:5788 -a WeChat
debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.124
for arm64.
Attaching to process WeChat...
Listening to port 5788 for a connection from *...
Waiting for debugger instructions for process 0.

2、回到Mac,重新打开终端,启动lldb:
(lldb) process connect connect://169.254.230.143:5788
Process 2547 stopped
* thread #1: tid = 0x24947, 0x0000000182be0fd8 libsystem_kernel.dylibmach_msg_trap + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x0000000182be0fd8 libsystem_kernel.dylib
mach_msg_trap + 8
libsystem_kernel.dylib`mach_msg_trap:
-> 0x182be0fd8 <+8>: ret

libsystem_kernel.dylib`mach_msg_overwrite_trap:
0x182be0fdc <+0>: movn x16, #0x1f
0x182be0fe0 <+4>: svc #0x80
0x182be0fe4 <+8>: ret

3、再回去看看手机,被调试的APP就跟挂了一样, 不能在APP界面操作了。
4、我下好断点,再次回到App界面,发现还是无法在界面上操作。
指教下~~~


#2

(lldb) help c
     Continue execution of all threads in the current process.

Syntax: process continue

Command Options Usage:
  process continue [-i <unsigned-integer>]

       -i <unsigned-integer> ( --ignore-count <unsigned-integer> )
            Ignore <N> crossings of the breakpoint (if it exists) for the currently selected thread.

'c' is an abbreviation for 'process continue'
(lldb)

#3

let me try~


#4

3QU~,the problem has resolved~~:slight_smile:


#5

如何解决的?


#6

Continue 就可以了


#8

nice job


#9

peterde-iPhone:~ root# debugserver *:1234 -a 664
debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
for arm64.
Attaching to process 664…
Segmentation fault: 11

您好,我在调试一个APP ,报这个错误,请问这是什么原因呀,我可以调成功其它的APP,是不是可以说明debugserver是没有问题的,只是和程序有关呢