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

substitute bug on arm? #11

Open
bitmizone opened this issue Sep 24, 2015 · 2 comments
Open

substitute bug on arm? #11

bitmizone opened this issue Sep 24, 2015 · 2 comments

Comments

@bitmizone
Copy link

app crash when i hook DNSServiceGetAddrInfo, SSLSetConnection

cpu architecture: arm 32bit
os version: ios8 ios9

@comex
Copy link
Owner

comex commented Sep 30, 2015

I'll look at this.

edit: Since you mention iOS 9 - are you jailbroken?

@bitmizone
Copy link
Author

not jailbroken on ios9.

when i hook socket connect() ,it also crash after running for some time. I do not know when it crash, but there will always crash.
cpu architecture: arm 64bit
os version: iphone5s ios8.3 jailbroken

static const struct substitute_function_hook hooks[] = {
{connect, my_connect, &orig_connect, 0},
}
substitute_hook_functions(hooks,
sizeof(hooks)/sizeof(*hooks),
NULL,
SUBSTITUTE_NO_THREAD_SAFETY);

error tips:
error: memory read failed for 0x0
lldb bt show:
frame #0: 0x0000000000000000
frame #1: 0x00000001956d3c74 libsystem_network.dylibnetcore_create_control_socket + 224 frame #2: 0x00000001956c1730 libsystem_network.dylibget_host_counts + 72
frame #3: 0x00000001956e2294 libsystem_network.dylibtcp_connection_destination_create + 324 frame #4: 0x00000001956c4e90 libsystem_network.dylibtcp_connection_destination_add + 72
frame #5: 0x00000001956ddb08 libsystem_network.dylibtcp_connection_host_resolve_result + 1392 frame #6: 0x0000000195633c2c libsystem_dnssd.dylibhandle_addrinfo_response + 420
frame #7: 0x0000000195631f20 libsystem_dnssd.dylibDNSServiceProcessResult + 660 frame #8: 0x0000000100154f94 libdispatch.dylib_dispatch_client_callout + 16
frame #9: 0x000000010016c848 libdispatch.dylib_dispatch_source_latch_and_call + 1392 frame #10: 0x00000001001571c0 libdispatch.dylib_dispatch_source_invoke + 292
frame #11: 0x0000000100160384 libdispatch.dylib_dispatch_queue_drain + 2264 frame #12: 0x00000001001582c4 libdispatch.dylib_dispatch_queue_invoke + 132
frame #13: 0x00000001001625d4 libdispatch.dylib_dispatch_root_queue_drain + 772 frame #14: 0x0000000100164248 libdispatch.dylib_dispatch_worker_thread3 + 132
frame #15: 0x000000019571522c libsystem_pthread.dylib`_pthread_wqthread + 816

(lldb) bt

sorry for my english

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

2 participants