posixninja / spirit-linux

Linux port of the "Spirit" jailbreak using libimobiledevice
139 stars 59 forks source link

Segmentation fault #9

Open eandrade opened 14 years ago

eandrade commented 14 years ago

i get Segmentation fault when runing spirit

HerrKaiser commented 14 years ago

I get the segfault too. It happens directly after Spirit tries to retrieve the device list.

h4ck3rm1k3 commented 12 years ago

here is a patch to catch that. I have this problem as well.

@@ -384,7 +384,15 @@ int main(int argc, char** argv) {
        }

        memset(uuid, '\0', 41);
-       memcpy(uuid, list[0], 40);
+       if (list[0])
+         {
+           memcpy(uuid, list[0], 40);
+         }
+       else
+         {
+           fprintf(stderr, "ERROR: Cannot retrieve device list\n");
+           return -1;
+         }
        idevice_device_list_free(list);

        printf("INFO: Opening device\n");
4Z4T4R commented 2 years ago

Similar error. Patched the code in main unsuccessfully. Something about the lockdownd_start_service method is puking. Any help? Log below.

Ubuntu 18.04 jailbreaking iPad 4 that's in activation lockdown because it was purchased a long time ago from a friend and it needed a factory reset.

INFO: Opening device
INFO: Creating lockdown client
INFO: Starting AFC service
Segmentation fault (core dumped)