{"action":"created","issue":{"url":"https://api.github.com/repos/kstenerud/KSCrash/issues/155","repository_url":"https://api.github.com/repos/kstenerud/KSCrash","labels_url":"https://api.github.com/repos/kstenerud/KSCrash/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/kstenerud/KSCrash/issues/155/comments","events_url":"https://api.github.com/repos/kstenerud/KSCrash/issues/155/events","html_url":"https://github.com/kstenerud/KSCrash/issues/155","id":156085933,"number":155,"title":"random crash when set zombieCacheSize","user":{"login":"zhangweike","id":12657670,"avatar_url":"https://avatars.githubusercontent.com/u/12657670?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangweike","html_url":"https://github.com/zhangweike","followers_url":"https://api.github.com/users/zhangweike/followers","following_url":"https://api.github.com/users/zhangweike/following{/other_user}","gists_url":"https://api.github.com/users/zhangweike/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangweike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangweike/subscriptions","organizations_url":"https://api.github.com/users/zhangweike/orgs","repos_url":"https://api.github.com/users/zhangweike/repos","events_url":"https://api.github.com/users/zhangweike/events{/privacy}","received_events_url":"https://api.github.com/users/zhangweike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-21T05:50:18Z","updated_at":"2016-06-02T08:04:36Z","closed_at":null,"body":"Hi.I got some random crash when set zombieCacheSize,1.5.6 version.It's not happened every time,most of time it works perfectlly.Here is my code:\r\n```\r\n -(BOOL) application:(__unused UIApplication *) application\r\ndidFinishLaunchingWithOptions:(__unused NSDictionary *) launchOptions {\r\n  //some other code:add obersver of notifications\r\n  //setStatusBarStyle\r\n  //setStatusBarOrientatiion\r\n  //registerUserNotificationSettings\r\n   [DYCrashReportManager setDefaultKSCrashHander];\r\n......\r\n}\r\n -(void) setDefaultKSCrashHander {\r\n    [[KSCrash sharedInstance] install];\r\n    [self configureAdvancedSettings];\r\n}\r\n -(void) configureAdvancedSettings {\r\n    KSCrash *hander = [KSCrash sharedInstance];\r\n    hander.zombieCacheSize = 16384;\r\n    hander.searchThreadNames = YES;\r\n    hander.searchQueueNames = YES;\r\n    hander.introspectMemory = YES;\r\n}\r\n```\r\nAnd here is the crash report,it seems like KSCrash caused a crash in `[[KSCrash sharedInstance] install]` or `hander.zombieCacheSize = 16384`.I checked kszombie_install in KSZombie.m,but I can't figure it out.\r\nI got SIGBUS evry time,and the crashed thread always showed \"libxpc.dylib\".One of my crash report got the crashed thread name: \"Dispatch queue: com.apple.NSXPCConnection.m-user.com.apple.usernotification.notificationregistrar\"\r\n```\r\nHardware Model:      iPhone8,1\r\nVersion:         2.4.3 (2.4.3)\r\nCode Type:       ARM-64\r\nParent Process:  ? [1]\r\n\r\nDate/Time:       2016-05-16 09:39:31.000 +0800\r\nOS Version:      iPhone OS 9.2.1 (13D15)\r\nReport Version:  104\r\n\r\nException Type:  EXC_BAD_ACCESS (SIGBUS)\r\nException Codes: 0x00000000 at 0x0000000000000000\r\nCrashed Thread:  4\r\n\r\nThread 0:\r\n0   libsystem_kernel.dylib          0x00000001818ac020 0x181890000 + 114720 (__psynch_rw_unlock + 8)\r\n1   libsystem_pthread.dylib         0x0000000181971b1c 0x181970000 + 6940 (pthread_rwlock_unlock + 380)\r\n2   libobjc.A.dylib                 0x0000000181383754 0x181370000 + 79700 (<redacted> + 20)\r\n3   libobjc.A.dylib                 0x000000018137d4e0 0x181370000 + 54496 (method_setImplementation + 64)\r\n4   MyApp                         0x0000000100908824 0x1000b8000 + 8718372 (kszombie_install + 204)\r\n5   MyApp                         0x000000010044c248 0x1000b8000 + 3752520 (-[DYCrashReportManager configureAdvancedSettings] + 60)\r\n6   MyApp                         0x000000010044b56c 0x1000b8000 + 3749228 (+[DYCrashReportManager setDefaultKSCrashHander] + 100)\r\n7   MyApp                         0x00000001000e55b4 0x1000b8000 + 185780 (-[AppDelegate application:didFinishLaunchingWithOptions:] + 700)\r\n8   UIKit                           0x0000000186a71704 0x1869e8000 + 562948 (<redacted> + 400)\r\n9   UIKit                           0x0000000186ca0130 0x1869e8000 + 2851120 (<redacted> + 2904)\r\n10  UIKit                           0x0000000186ca44b8 0x1869e8000 + 2868408 (<redacted> + 1672)\r\n11  UIKit                           0x0000000186ca15c0 0x1869e8000 + 2856384 (<redacted> + 168)\r\n12  FrontBoardServices              0x00000001832bf790 0x183298000 + 161680 (<redacted> + 184)\r\n13  FrontBoardServices              0x00000001832bfb10 0x183298000 + 162576 (<redacted> + 56)\r\n14  CoreFoundation                  0x0000000181cc0efc 0x181be4000 + 904956 (<redacted> + 24)\r\n15  CoreFoundation                  0x0000000181cc0990 0x181be4000 + 903568 (<redacted> + 540)\r\n16  CoreFoundation                  0x0000000181cbe690 0x181be4000 + 894608 (<redacted> + 724)\r\n17  CoreFoundation                  0x0000000181bed680 0x181be4000 + 38528 (CFRunLoopRunSpecific + 384)\r\n18  UIKit                           0x0000000186a6a580 0x1869e8000 + 533888 (<redacted> + 460)\r\n19  UIKit                           0x0000000186a64d90 0x1869e8000 + 511376 (UIApplicationMain + 204)\r\n20  DuoYiIM                         0x00000001000c8300 0x1000b8000 + 66304 (main + 132)\r\n21  libdyld.dylib                   0x000000018178e8b8 0x18178c000 + 10424 (<redacted> + 4)\r\n\r\nThread 1:\r\n0   libsystem_kernel.dylib          0x00000001818ad4fc 0x181890000 + 120060 (kevent_qos + 8)\r\n1   libdispatch.dylib               0x000000018177094c 0x18175c000 + 84300 (<redacted> + 232)\r\n2   libdispatch.dylib               0x000000018175f7bc 0x18175c000 + 14268 (<redacted> + 52)\r\n\r\nThread 2:\r\n0   libsystem_kernel.dylib          0x00000001818914f8 0x181890000 + 5368 (semaphore_wait_trap + 8)\r\n1   libsystem_platform.dylib        0x000000018196a97c 0x181968000 + 10620 (_os_semaphore_wait + 24)\r\n2   libdispatch.dylib               0x00000001817684ec 0x18175c000 + 50412 (<redacted> + 560)\r\n3   AccessibilityUtilities          0x000000018ae3e1b0 0x18ae18000 + 156080 (<redacted> + 128)\r\n4   libdispatch.dylib               0x000000018175d630 0x18175c000 + 5680 (<redacted> + 24)\r\n5   libdispatch.dylib               0x000000018175d5f0 0x18175c000 + 5616 (<redacted> + 16)\r\n6   libdispatch.dylib               0x0000000181769634 0x18175c000 + 54836 (<redacted> + 864)\r\n7   libdispatch.dylib               0x00000001817610f4 0x18175c000 + 20724 (<redacted> + 464)\r\n8   libdispatch.dylib               0x000000018175d5f0 0x18175c000 + 5616 (<redacted> + 16)\r\n9   libdispatch.dylib               0x000000018176ba88 0x18175c000 + 64136 (<redacted> + 2140)\r\n10  libdispatch.dylib               0x000000018176b224 0x18175c000 + 61988 (<redacted> + 112)\r\n11  libsystem_pthread.dylib         0x0000000181971470 0x181970000 + 5232 (_pthread_wqthread + 1092)\r\n\r\nThread 3:\r\n0   libsystem_kernel.dylib          0x00000001818acb6c 0x181890000 + 117612 (__workq_kernreturn + 8)\r\n1   libsystem_pthread.dylib         0x0000000181971530 0x181970000 + 5424 (_pthread_wqthread + 1284)\r\n\r\nThread 4 Crashed:\r\n0   (null) 0x0000000000000000 0x0 + 0\r\n1   CoreFoundation                  0x0000000181bf5450 0x181be4000 + 70736 (<redacted> + 264)\r\n2   CoreFoundation                  0x0000000181c123c0 0x181be4000 + 189376 (<redacted> + 88)\r\n3   libobjc.A.dylib                 0x0000000181391ae8 0x181370000 + 137960 (<redacted> + 508)\r\n4   libxpc.dylib                    0x00000001819a5358 0x1819a0000 + 21336 (<redacted> + 68)\r\n5   libxpc.dylib                    0x00000001819a3100 0x1819a0000 + 12544 (<redacted> + 2132)\r\n6   libdispatch.dylib               0x000000018175d6ec 0x18175c000 + 5868 (<redacted> + 16)\r\n7   libdispatch.dylib               0x00000001817619d8 0x18175c000 + 23000 (<redacted> + 656)\r\n8   libdispatch.dylib               0x0000000181769808 0x18175c000 + 55304 (<redacted> + 1332)\r\n9   libdispatch.dylib               0x0000000181760aec 0x18175c000 + 19180 (<redacted> + 600)\r\n10  libdispatch.dylib               0x0000000181769808 0x18175c000 + 55304 (<redacted> + 1332)\r\n11  libdispatch.dylib               0x00000001817610f4 0x18175c000 + 20724 (<redacted> + 464)\r\n12  libdispatch.dylib               0x000000018175d5f0 0x18175c000 + 5616 (<redacted> + 16)\r\n13  libdispatch.dylib               0x000000018176ba88 0x18175c000 + 64136 (<redacted> + 2140)\r\n14  libdispatch.dylib               0x000000018176b224 0x18175c000 + 61988 (<redacted> + 112)\r\n15  libsystem_pthread.dylib         0x0000000181971470 0x181970000 + 5232 (_pthread_wqthread + 1092)\r\n\r\nThread 5:\r\n0   libsystem_kernel.dylib          0x00000001818acb6c 0x181890000 + 117612 (__workq_kernreturn + 8)\r\n1   libsystem_pthread.dylib         0x0000000181971530 0x181970000 + 5424 (_pthread_wqthread + 1284)\r\n\r\nThread 6:\r\n0   libsystem_kernel.dylib          0x00000001818914bc 0x181890000 + 5308 (mach_msg_trap + 8)\r\n1   libsystem_kernel.dylib          0x0000000181891338 0x181890000 + 4920 (mach_msg + 72)\r\n2   libsystem_kernel.dylib          0x000000018189566c 0x181890000 + 22124 (thread_suspend + 80)\r\n3   DuoYiIM                         0x0000000100908184 0x1000b8000 + 8716676 (ksmachexc_i_handleExceptions + 112)\r\n4   libsystem_pthread.dylib         0x0000000181973b28 0x181970000 + 15144 (<redacted> + 156)\r\n5   libsystem_pthread.dylib         0x0000000181973a8c 0x181970000 + 14988 (_pthread_start + 156)\r\n\r\nThread 7:\r\n\r\nThread 4 crashed with ARM-64 Thread State:\r\n  cpsr: 0x0000000080000000     fp: 0x000000016e1ba670     lr: 0x0000000181bf5450     pc: 0x0000000000000000 \r\n    sp: 0x000000016e1ba630     x0: 0x0000000145d5e990     x1: 0x00000001873d8d00    x10: 0x0000000000000d77 \r\n   x11: 0x00000001a228b659    x12: 0x00000001a228b659    x13: 0x0000000000000001    x14: 0x000000008000001f \r\n   x15: 0x0000000080000023    x16: 0x0000000181377108    x17: 0x0000000100ad0c38    x18: 0x0000000000000000 \r\n   x19: 0x0000000145d5e990     x2: 0x0000000000000000    x20: 0x0000000145d5e9c0    x21: 0x0000000000000000 \r\n   x22: 0x000000019ee29000    x23: 0x000000019ee29000    x24: 0x0000000000000000    x25: 0x00000000a1a1a1a1 \r\n   x26: 0x3b0094f615f71df1    x27: 0x000000016e1bb0e0    x28: 0xa3a3a3a3a3a3a3a3    x29: 0x000000016e1ba670 \r\n    x3: 0x000000000000000b     x4: 0x000000000000005f     x5: 0x0000000000000054     x6: 0x0000000145d1dd20 \r\n    x7: 0x0000000000000000     x8: 0x0000000100d7b000     x9: 0x0000000100c5a000 \r\n\r\nNotable Addresses:\r\n{\r\n    \"stack@0x16e1ba618\": {\r\n        \"address\": 5466614160,\r\n        \"class\": \"__NSArrayM\",\r\n        \"last_deallocated_obj\": \"__NSArrayM\",\r\n        \"type\": \"objc_object\"\r\n    },\r\n    \"stack@0x16e1ba630\": {\r\n        \"address\": 5466614160,\r\n        \"class\": \"__NSArrayM\",\r\n        \"last_deallocated_obj\": \"__NSArrayM\",\r\n        \"type\": \"objc_object\"\r\n    },\r\n    \"stack@0x16e1ba638\": {\r\n        \"address\": 6977154968,\r\n        \"class\": \"__NSArrayM\",\r\n        \"type\": \"objc_class\"\r\n    },\r\n    \"stack@0x16e1ba660\": {\r\n        \"address\": 6563930377,\r\n        \"type\": \"string\",\r\n        \"value\": \"release\"\r\n    },\r\n    \"stack@0x16e1ba668\": {\r\n        \"address\": 5466639200,\r\n        \"class\": \"NSInvocation\",\r\n        \"ivars\": {\r\n            \"_container\": {\r\n                \"address\": 5466614160,\r\n                \"class\": \"__NSArrayM\",\r\n                \"last_deallocated_obj\": \"__NSArrayM\",\r\n                \"type\": \"objc_object\"\r\n            },\r\n            \"_retainedArgs\": 0,\r\n            \"_signature\": {\r\n                \"address\": 5466482432,\r\n                \"class\": \"NSMethodSignature\",\r\n                \"ivars\": {},\r\n                \"type\": \"objc_object\"\r\n            }\r\n        },\r\n        \"type\": \"objc_object\"\r\n    },\r\n    \"x0\": {\r\n        \"address\": 5466614160,\r\n        \"class\": \"__NSArrayM\",\r\n        \"last_deallocated_obj\": \"__NSArrayM\",\r\n        \"type\": \"objc_object\"\r\n    },\r\n    \"x1\": {\r\n        \"address\": 6563925248,\r\n        \"type\": \"string\",\r\n        \"value\": \"dealloc\"\r\n    },\r\n    \"x19\": {\r\n        \"address\": 5466614160,\r\n        \"class\": \"__NSArrayM\",\r\n        \"last_deallocated_obj\": \"__NSArrayM\",\r\n        \"type\": \"objc_object\"\r\n    },\r\n    \"x28\": {\r\n        \"address\": -6655295901103053917,\r\n        \"class\": \"NSString\",\r\n        \"type\": \"objc_object\",\r\n        \"value\": \":::\"\r\n    }\r\n}\r\n\r\nApplication Stats:\r\n{\r\n    \"active_time_since_last_crash\": 2073.84,\r\n    \"active_time_since_launch\": 0,\r\n    \"application_active\": false,\r\n    \"application_in_foreground\": true,\r\n    \"background_time_since_last_crash\": 1304.63,\r\n    \"background_time_since_launch\": 0,\r\n    \"launches_since_last_crash\": 36,\r\n    \"sessions_since_last_crash\": 49,\r\n    \"sessions_since_launch\": 1\r\n}\r\n\r\nCrashDoctor Diagnosis: Attempted to dereference null pointer.\r\n```"},"comment":{"url":"https://api.github.com/repos/kstenerud/KSCrash/issues/comments/223223169","html_url":"https://github.com/kstenerud/KSCrash/issues/155#issuecomment-223223169","issue_url":"https://api.github.com/repos/kstenerud/KSCrash/issues/155","id":223223169,"user":{"login":"zhangweike","id":12657670,"avatar_url":"https://avatars.githubusercontent.com/u/12657670?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangweike","html_url":"https://github.com/zhangweike","followers_url":"https://api.github.com/users/zhangweike/followers","following_url":"https://api.github.com/users/zhangweike/following{/other_user}","gists_url":"https://api.github.com/users/zhangweike/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangweike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangweike/subscriptions","organizations_url":"https://api.github.com/users/zhangweike/orgs","repos_url":"https://api.github.com/users/zhangweike/repos","events_url":"https://api.github.com/users/zhangweike/events{/privacy}","received_events_url":"https://api.github.com/users/zhangweike/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T08:04:36Z","updated_at":"2016-06-02T08:04:36Z","body":"Congratulations!I've run the latest commit version with my test code for over 200 times,it never crash.I think the problem has been fixed."}}
{"actor":{"display_login":"zhangweike"}}