spirit-linux icon indicating copy to clipboard operation
spirit-linux copied to clipboard

Segmentation fault

Open eandrade opened this issue 15 years ago • 3 comments

i get Segmentation fault when runing spirit

eandrade avatar Jul 09 '10 23:07 eandrade

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

HerrKaiser avatar Aug 05 '10 08:08 HerrKaiser

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");

h4ck3rm1k3 avatar Nov 27 '11 11:11 h4ck3rm1k3

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)

4Z4T4R avatar Jun 14 '22 19:06 4Z4T4R