electra1131 icon indicating copy to clipboard operation
electra1131 copied to clipboard

debugserver failed to create socket

Open liuxuan30 opened this issue 7 years ago • 6 comments

Hi there,

I followed here on iOS <11.2 and Electra 1.0.4 (old one) to launch debugserver. Steps: 1 create two proxies

$ iproxy 6666 6666 &
$ iproxy 2222 22 &

2 ssh into device, run jailbreakd_client and launch the debugserver. For example, to debug AppStore app:

$ /electra/jailbreakd_client <the appstore pid> 1
$ /Developer/usr/bin/debugserver localhost:6666 -a <the appstore pid>

3 launch LLDB and attach to it. Everything works fine.

However, on Electra 1131, with same steps, I got several error message, something like

debugserver(libsystem_network.dylib)[3028] <Error>: __nwlog_err_simulate_crash_libsystem libsystem simulate crash failed "libsystem_network.dylib: netcore_create_control_socket :: socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL) failed [1: Operation not permitted]"

Jul 23 09:29:58 iPhone debugserver(libsystem_dnssd.dylib)[1726] <Notice>: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Jul 23 09:29:59 iPhone debugserver(libsystem_dnssd.dylib)[1726] <Notice>: dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:6 Err:-1 Errno:1 Operation not permitted
Jul 23 09:29:59 iPhone debugserver(libsystem_network.dylib)[1726] <Fault>: libsystem_network.dylib: netcore_create_control_socket :: socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL) failed [1: Operation not permitted]
Jul 23 09:29:59 iPhone debugserver(libsystem_network.dylib)[1726] <Error>: __nwlog_err_simulate_crash_libsystem libsystem simulate crash failed "libsystem_network.dylib: netcore_create_control_socket :: socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL) failed [1: Operation not permitted]"
Jul 23 09:29:59 iPhone debugserver(libsystem_network.dylib)[1726] <Error>: netcore_create_control_socket socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL) failed [0: Success], dumping backtrace:
        [arm64] libnetcore-1229.60.3
    0   libsystem_network.dylib             0x0000000183012634 __nw_create_backtrace_string + 116
    1   libsystem_network.dylib             0x0000000182fc3710 netcore_create_control_socket + 264
    2   libsystem_network.dylib             0x0000000183032580 <redacted> + 68
    3   libsystem_network.dylib             0x00000001830322f4 <redacted> + 320
    4   libsystem_network.dylib             0x000000018302fae0 <redacted> + 416
    5   libsystem_network.dylib             0x000000018302f57c <redacted> + 92
    6   libsystem_network.dylib             0x000000018302efd8 sa_dst_compare_internal + 140
    7   libsystem_info.dylib                0x0000000182f08764 _gai_addr_sort + 112
    8   libsystem_c.dylib                   0x0000000182eba298 <redacted> + 132
    9   libsystem_c.dylib                   0x0000000182e56d5c <redacted> + 2188
    10  libsystem_info.dylib                0x0000000182f08cd4 <redacted> + 824

There are some more, but all are about libsystem_network and socket errors.

I'm not sure what's going on. Is this new Electra1131 issue, or what I miss? Thanks!

liuxuan30 avatar Jul 19 '18 01:07 liuxuan30

I’d love to know the solution to this :)

KingKong5147 avatar Jul 19 '18 07:07 KingKong5147

https://github.com/liuxuan30

KingKong5147 avatar Jul 19 '18 07:07 KingKong5147

what are you doing here? @KingKong5147 don't post meaningless comments.

liuxuan30 avatar Jul 20 '18 00:07 liuxuan30

Meaningless ?...... First of all I can write what I like and secondly I have an issue with Debugserver on iOS 11.3.1 which you had working on iOS 11.1.2. I asked for help . If you don’t like go Fuck yourself .

Sent from my iPhone

On 20 Jul 2018, at 10:28 am, Xuan [email protected] wrote:

what are you doing here? @KingKong5147 don't post meaningless comments.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

KingKong5147 avatar Jul 20 '18 00:07 KingKong5147

Alright, blocked and reported. You post my profile link above, which helps nothing, and you want to know the solution, fine, you have the right, but you have to follow the community rules to ask help. Your language and tone will get you no help anymore, at least from me.

liuxuan30 avatar Jul 20 '18 00:07 liuxuan30

My debugserver can't work fine on 11.3, too. I tried jailbreakd_client pid 1/2/6, nothing can help. It shows that: Attaching to process xxxx... Listening to port xxxx for a connection from localhost/xxx.xxx.x.xx... Failed to get connection from a remote gdb process. Exiting.

JyerZ avatar Jul 21 '18 02:07 JyerZ