-
Notifications
You must be signed in to change notification settings - Fork 78
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
socket_connect_addr crash #12
Comments
With the same code, I haven't found this problem on the USB device yet. at present, only WiFi devices will appear. |
if it's happens only on wifi, issue might be, that device when to sleep just in time of query ... and socket you trying connect to was released just before you called connect on it .... question is, if anything can be done in connect function to prevent this, or it's just unhandled condition inside apple implementation. |
I just call it in separate threads and functions, and there is no multithreading. It may also be in windows, but I use SEH to handle it.
This can help me deal with most exceptions. |
Looks like stack corruption. I wonder how that would happen... |
It is described above. |
I encountered the same issue, and after debugging, I found that the crash was caused by releasing a dangling pointer. Specifically, it happened at socket.c: 606 free(ifa->ifa_dstaddr);. The problem was solved by calling memset after allocating memory for the struct ifaddrs. |
This should prevent crashes like the one mentioned in #12 which are caused by releasing an invalid pointer (due to uninitialized memory).
Should be fixed with 1085e46. |
0 libsystem_kernel.dylib 0x00007fff92875d42 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff92963457 pthread_kill + 90
2 libsystem_c.dylib 0x00007fff927db4bb __abort + 140
3 libsystem_c.dylib 0x00007fff927dbd7e __stack_chk_fail + 205
4 libimobiledevice-glue-1.0.0.dylib 0x000000011cd252f7 socket_connect_addr + 1607
5 libimobiledevice-1.0.6.dylib 0x000000011ccdcc34 idevice_connect + 308 (idevice.c:517)
6 libimobiledevice-1.0.6.dylib 0x000000011ccdd6e6 service_client_new + 70 (service.c:68)
7 libimobiledevice-1.0.6.dylib 0x000000011ccddae3 property_list_service_client_new + 67 (property_list_service.c:67)
8 libimobiledevice-1.0.6.dylib 0x000000011ccdf2f5 lockdownd_client_new_with_handshake + 101 (lockdown.c:634)
When I try to start the service "com.apple.springboardservices" on the Mac, I occasionally crash.
I use this service to get screen wallpaper.
I try to search for solutions, mostly stack overflow.
It takes about dozens of times to have a crash.
The text was updated successfully, but these errors were encountered: