记录Bug,引出问题《一》

直接现象:某个函数崩溃了。

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>>>>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值