Skip to content

debugserver failed to create socket #5

@liuxuan30

Description

@liuxuan30

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] : __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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions