如何调试iOS中工作线程的崩溃?

时间:2012-09-17 19:46:04

标签: ios

这通常在从后台返回时发生。我很难再现这个问题。我最初的猜测是它是一个有网络连接的竞争条件,但我可能错了。我还缺少其他线索吗?

Thread 3 name:  Dispatch queue: com.apple.networking.connection.0x5a6540
Thread 3 Crashed:
0   libsystem_kernel.dylib          0x38f422a8 __close_nocancel + 12
1   libdispatch.dylib               0x37f5083e _dispatch_source_cancel_callout + 98
2   libdispatch.dylib               0x37f4d122 _dispatch_source_invoke$VARIANT$mp + 230
3   libdispatch.dylib               0x37f4ae8e _dispatch_queue_drain$VARIANT$mp + 78
4   libdispatch.dylib               0x37f4adbc _dispatch_queue_invoke$VARIANT$mp + 36
5   libdispatch.dylib               0x37f4b91a _dispatch_root_queue_drain + 182
6   libdispatch.dylib               0x37f4babc _dispatch_worker_thread2 + 80
7   libsystem_c.dylib               0x34758a4e _pthread_wqthread + 358
8   libsystem_c.dylib               0x347588e0 start_wqthread + 4

1 个答案:

答案 0 :(得分:1)

您正在调用一些导致崩溃的连接,我认为您应该在调用此连接的代码中放置一个断点