直接现象:某个函数崩溃了。
F8 RECV][12-09 10:50:23.3712] Parachute:11
[739F8 RECV][12-09 10:50:23.3742] Stack:
[739F8 RECV][12-09 10:50:23.3783] 0 - 0x0019941c _ZL9ParachuteiP9__siginfoPv + 96
[739F8 RECV][12-09 10:50:23.3812] 1 libsystem_platform.dylib 0x3233587b _sigtramp + 42
[739F8 RECV][12-09 10:50:23.3846] 2 ??? 0x00000000 0x0 + 0
[739F8 RECV][12-09 10:50:23.3885] 3 Foundation 0x23f80f1d <redacted> + 100
[739F8 RECV][12-09 10:50:23.3925] 4 Foundation 0x23f507e9 <redacted> + 220
[739F8 RECV][12-09 10:50:23.3964] 5 Foundation 0x23f50703 <redacted> + 78
[739F8 RECV][12-09 10:50:23.3990] 6 Foundation 0x23f506af <redacted> + 42
[739F8 RECV][12-09 10:50:23.4011] 7 Foundation 0x23f75fa3 <redacted> + 46
[739F8 RECV][12-09 10:50:23.4032] 8 - 0x001bc3b8 _Z25parse_request_from_clientPcl + 104
[739F8 RECV][12-09 10:50:23.4052] 9 - 0x00169728 _Z25thread_socket_recv_clientPv + 472
[739F8 RECV][12-09 10:50:23.4084] 10 libsystem_pthread.dylib 0x32338e23 <redacted> + 138
[739F8 RECV][12-09 10:50:23.4125] 11 libsystem_pthread.dylib 0x32338d97 _pthread_start + 118
[739F8 RECV][12-09 10:50:23.4164] 12 libsystem_pthread.dylib 0x32336b20 thread_start + 8
[739F8 RECV][12-09 10:50:23.4205] >>>>ForceQuit>>>>
再查
2015-12-09 13:42:57.219 -[2282:489285] did got statics progress
2015-12-09 13:42:57.374 -[2282:489285] did got statics progress
Failed to send: Bad file descriptor
Failed to send: Bad file descriptor
Failed to send: Bad file descriptor
Failed to send: Bad file descriptor
Failed to send: Bad file descriptor
Failed to send: Bad file descriptor
A、B程序socket通信断开了,导致解析线程多次调用,造成内存访问异常。
引出问题:
通信模型需要完善,待后续补充
F8 RECV][12-09 10:50:23.3712] Parachute:11
[739F8 RECV][12-09 10:50:23.3742] Stack:
[739F8 RECV][12-09 10:50:23.3783] 0 cdma_server 0x0019941c _ZL9ParachuteiP9__siginfoPv + 96
[739F8 RECV][12-09 10:50:23.3812] 1 libsystem_platform.dylib 0x3233587b _sigtramp + 42
[739F8 RECV][12-09 10:50:23.3846] 2 ??? 0x00000000 0x0 + 0
[739F8 RECV][12-09 10:50:23.3885] 3 Foundation 0x23f80f1d <redacted> + 100
[739F8 RECV][12-09 10:50:23.3925] 4 Foundation 0x23f507e9 <redacted> + 220
[739F8 RECV][12-09 10:50:23.3964] 5 Foundation 0x23f50703 <redacted> + 78
[739F8 RECV][12-09 10:50:23.3990] 6 Foundation 0x23f506af <redacted> + 42
[739F8 RECV][12-09 10:50:23.4011] 7 Foundation 0x23f75fa3 <redacted> + 46
[739F8 RECV][12-09 10:50:23.4032] 8 cdma_server 0x001bc3b8 _Z25parse_request_from_clientPcl + 104
[739F8 RECV][12-09 10:50:23.4052] 9 cdma_server 0x00169728 _Z25thread_socket_recv_clientPv + 472
[739F8 RECV][12-09 10:50:23.4084] 10 libsystem_pthread.dylib 0x32338e23 <redacted> + 138
[739F8 RECV][12-09 10:50:23.4125] 11 libsystem_pthread.dylib 0x32338d97 _pthread_start + 118
[739F8 RECV][12-09 10:50:23.4164] 12 libsystem_pthread.dylib 0x32336b20 thread_start + 8
[739F8 RECV][12-09 10:50:23.4205] >>>>ForceQuit>>>>