Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugserver failed to create socket #5

Open
liuxuan30 opened this issue Jul 19, 2018 · 6 comments
Open

debugserver failed to create socket #5

liuxuan30 opened this issue Jul 19, 2018 · 6 comments

Comments

@liuxuan30
Copy link

liuxuan30 commented Jul 19, 2018

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!

@KingKong5147
Copy link

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

@KingKong5147
Copy link

@liuxuan30
Copy link
Author

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

@KingKong5147
Copy link

KingKong5147 commented Jul 20, 2018 via email

@liuxuan30
Copy link
Author

liuxuan30 commented Jul 20, 2018

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.

@JyerZ
Copy link

JyerZ commented Jul 21, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants