Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

出现了死锁,希望解决一下 #10

Open
NicolasKim opened this issue Dec 4, 2019 · 3 comments
Open

出现了死锁,希望解决一下 #10

NicolasKim opened this issue Dec 4, 2019 · 3 comments

Comments

@NicolasKim
Copy link

CoreTelephony`-[CTCellularData restrictedState]:
    0x1132fef20 <+0>:   pushq  %rbp
    0x1132fef21 <+1>:   movq   %rsp, %rbp
    0x1132fef24 <+4>:   pushq  %r14
    0x1132fef26 <+6>:   pushq  %rbx
    0x1132fef27 <+7>:   subq   $0x50, %rsp
    0x1132fef2b <+11>:  xorl   %eax, %eax
    0x1132fef2d <+13>:  leaq   -0x30(%rbp), %rbx
    0x1132fef31 <+17>:  movq   %rax, (%rbx)
    0x1132fef34 <+20>:  movq   %rbx, 0x8(%rbx)
    0x1132fef38 <+24>:  movabsq $0x2020000000, %rcx       ; imm = 0x2020000000 
    0x1132fef42 <+34>:  movq   %rcx, 0x10(%rbx)
    0x1132fef46 <+38>:  movq   %rax, 0x18(%rbx)
    0x1132fef4a <+42>:  movq   0x64d4f(%rip), %rax       ; CTCellularData._cuPolicyClientQueue
    0x1132fef51 <+49>:  movq   (%rdi,%rax), %rax
    0x1132fef55 <+53>:  movq   0x390cc(%rip), %rcx       ; (void *)0x000000011c50c070: _NSConcreteStackBlock
    0x1132fef5c <+60>:  leaq   -0x60(%rbp), %rsi
    0x1132fef60 <+64>:  movq   %rcx, (%rsi)
    0x1132fef63 <+67>:  movl   $0xc2000000, %ecx         ; imm = 0xC2000000 
    0x1132fef68 <+72>:  movq   %rcx, 0x8(%rsi)
    0x1132fef6c <+76>:  leaq   0x40(%rip), %rcx          ; __33-[CTCellularData restrictedState]_block_invoke
    0x1132fef73 <+83>:  movq   %rcx, 0x10(%rsi)
    0x1132fef77 <+87>:  leaq   0x4035a(%rip), %rcx       ; __block_descriptor_48_e8_32o40r_e5_v8@?0l
    0x1132fef7e <+94>:  movq   %rcx, 0x18(%rsi)
    0x1132fef82 <+98>:  movq   %rbx, 0x28(%rsi)
    0x1132fef86 <+102>: movq   %rdi, 0x20(%rsi)
    0x1132fef8a <+106>: movq   %rax, %rdi
    0x1132fef8d <+109>: callq  0x11330abca               ; symbol stub for: dispatch_sync
->  0x1132fef92 <+114>: movq   0x8(%rbx), %rax
    0x1132fef96 <+118>: movq   0x18(%rax), %r14
    0x1132fef9a <+122>: movl   $0x8, %esi
    0x1132fef9f <+127>: movq   %rbx, %rdi
    0x1132fefa2 <+130>: callq  0x11330a918               ; symbol stub for: _Block_object_dispose
    0x1132fefa7 <+135>: movq   %r14, %rax
    0x1132fefaa <+138>: addq   $0x50, %rsp
    0x1132fefae <+142>: popq   %rbx
    0x1132fefaf <+143>: popq   %r14
    0x1132fefb1 <+145>: popq   %rbp
    0x1132fefb2 <+146>: retq   

frame #0: 0x000000011c7a7bf6 libsystem_kernel.dylib`__psynch_rw_wrlock + 10
    frame #1: 0x000000011c8059be libsystem_pthread.dylib`_pthread_rwlock_lock_wait + 75
    frame #2: 0x000000011c803cb0 libsystem_pthread.dylib`_pthread_rwlock_lock_slow + 547
    frame #3: 0x000000011124f98f libBacktraceRecording.dylib`remove_stack_from_backtrace_uniquing_table + 32
    frame #4: 0x000000011124ca11 libBacktraceRecording.dylib`decrement_work_item_refcount + 80
    frame #5: 0x000000011124c316 libBacktraceRecording.dylib`gcd_queue_item_complete_hook + 166
    frame #6: 0x000000011c41fd46 libdispatch.dylib`_dispatch_lane_barrier_sync_invoke_and_complete + 194
  * frame #7: 0x00000001132fef92 CoreTelephony`-[CTCellularData restrictedState] + 114
    frame #8: 0x000000010da68491 FYDriverNew`-[ZYNetworkAccessibity startCheck](self=0x0000600003afe580, _cmd="startCheck") at ZYNetworkAccessibity.m:303:57
    frame #9: 0x000000010da68717 FYDriverNew`__34-[ZYNetworkAccessibity startCheck]_block_invoke.97(.block_descriptor=0x000060000177d080) at ZYNetworkAccessibity.m:326:17
    frame #10: 0x000000011c411db5 libdispatch.dylib`_dispatch_client_callout + 8
    frame #11: 0x000000011c414c95 libdispatch.dylib`_dispatch_continuation_pop + 552
    frame #12: 0x000000011c426e93 libdispatch.dylib`_dispatch_source_invoke + 2249
    frame #13: 0x000000011c41eead libdispatch.dylib`_dispatch_main_queue_callback_4CF + 1073
    frame #14: 0x000000011b381a79 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    frame #15: 0x000000011b37c126 CoreFoundation`__CFRunLoopRun + 2310
    frame #16: 0x000000011b37b4d2 CoreFoundation`CFRunLoopRunSpecific + 626
    frame #17: 0x000000011d9b02fe GraphicsServices`GSEventRunModal + 65
    frame #18: 0x0000000123289fc2 UIKitCore`UIApplicationMain + 140
    frame #19: 0x000000010de7ec5b FYDriverNew`main at AppDelegate.swift:14:7
    frame #20: 0x000000011c486541 libdyld.dylib`start + 1
@NicolasKim
Copy link
Author

上面是汇编堆栈,下面是代码调用堆栈

@NicolasKim NicolasKim reopened this Dec 4, 2019
@ziecho
Copy link
Owner

ziecho commented Jan 16, 2020

请问如何复现?iOS 版本多少

@longlongago
Copy link

猜测跟libBacktraceRecording库有关系,这个是debug下做调试用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants