pmusolino / Wormholy

iOS network debugging, like a wizard 🧙‍♂️
MIT License
2.31k stars 184 forks source link

Crash at startup #98

Closed 39otrebla closed 2 years ago

39otrebla commented 3 years ago

Hi! Since there's no integration code required, I'll just leave the trace here:

CFNetwork`___lldb_unnamed_symbol9217$$CFNetwork:
    0x7fff236cb3da <+0>:    pushq  %rbp
    0x7fff236cb3db <+1>:    movq   %rsp, %rbp
    0x7fff236cb3de <+4>:    pushq  %r15
    0x7fff236cb3e0 <+6>:    pushq  %r14
    0x7fff236cb3e2 <+8>:    pushq  %r13
    0x7fff236cb3e4 <+10>:   pushq  %r12
    0x7fff236cb3e6 <+12>:   pushq  %rbx
    0x7fff236cb3e7 <+13>:   subq   $0xc8, %rsp
    0x7fff236cb3ee <+20>:   movq   %rdi, %r12
    0x7fff236cb3f1 <+23>:   movq   0x5ce8add8(%rip), %rax    ; (void *)0x00007fff86ca60e0: __stack_chk_guard
    0x7fff236cb3f8 <+30>:   movq   (%rax), %rax
    0x7fff236cb3fb <+33>:   movq   %rax, -0x30(%rbp)
    0x7fff236cb3ff <+37>:   movq   %rsi, %rdi
    0x7fff236cb402 <+40>:   callq  *0x5ce8b348(%rip)         ; (void *)0x00007fff2018fa40: objc_retain
    0x7fff236cb408 <+46>:   movq   %rax, %r15
    0x7fff236cb40b <+49>:   testq  %r12, %r12
    0x7fff236cb40e <+52>:   je     0x7fff236cb66d            ; <+659>
    0x7fff236cb414 <+58>:   movq   0x636f23fd(%rip), %rsi    ; "workQueue"
    0x7fff236cb41b <+65>:   movq   %r12, %rdi
    0x7fff236cb41e <+68>:   callq  *0x5ce8b31c(%rip)         ; (void *)0x00007fff20173880: objc_msgSend
    0x7fff236cb424 <+74>:   movq   %rax, %rdi
    0x7fff236cb427 <+77>:   callq  0x7fff2374ec9c            ; symbol stub for: objc_retainAutoreleasedReturnValue
    0x7fff236cb42c <+82>:   movq   %rax, %rbx
    0x7fff236cb42f <+85>:   movq   %rax, %rdi
    0x7fff236cb432 <+88>:   callq  0x7fff2374e2b2            ; symbol stub for: dispatch_assert_queue$V2
    0x7fff236cb437 <+93>:   movq   %rbx, %rdi
    0x7fff236cb43a <+96>:   callq  *0x5ce8b308(%rip)         ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb440 <+102>:  movq   0x636f2319(%rip), %r14    ; "session"
    0x7fff236cb447 <+109>:  movq   %r12, %rdi
    0x7fff236cb44a <+112>:  movq   %r14, %rsi
    0x7fff236cb44d <+115>:  callq  *0x5ce8b2ed(%rip)         ; (void *)0x00007fff20173880: objc_msgSend
    0x7fff236cb453 <+121>:  movq   %rax, %rdi
    0x7fff236cb456 <+124>:  callq  0x7fff2374ec9c            ; symbol stub for: objc_retainAutoreleasedReturnValue
    0x7fff236cb45b <+129>:  movq   %rax, %rbx
    0x7fff236cb45e <+132>:  movq   0x636f422b(%rip), %rsi    ; "delegate"
    0x7fff236cb465 <+139>:  movq   %rax, %rdi
    0x7fff236cb468 <+142>:  callq  *0x5ce8b2d2(%rip)         ; (void *)0x00007fff20173880: objc_msgSend
    0x7fff236cb46e <+148>:  movq   %rax, %rdi
    0x7fff236cb471 <+151>:  callq  0x7fff2374ec9c            ; symbol stub for: objc_retainAutoreleasedReturnValue
    0x7fff236cb476 <+156>:  movq   %rax, %r13
    0x7fff236cb479 <+159>:  movq   %rbx, %rdi
    0x7fff236cb47c <+162>:  callq  *0x5ce8b2c6(%rip)         ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb482 <+168>:  movq   0x636f4907(%rip), %rsi    ; "URLSession:webSocketTask:didOpenWithProtocol:"
    0x7fff236cb489 <+175>:  movq   %r13, %rdi
    0x7fff236cb48c <+178>:  callq  0x7fff2374ec84            ; symbol stub for: objc_opt_respondsToSelector
    0x7fff236cb491 <+183>:  testb  $0x1, %al
    0x7fff236cb493 <+185>:  je     0x7fff236cb594            ; <+442>
    0x7fff236cb499 <+191>:  movq   %r12, %rdi
    0x7fff236cb49c <+194>:  movq   %r14, %rsi
    0x7fff236cb49f <+197>:  movq   %r15, -0x58(%rbp)
    0x7fff236cb4a3 <+201>:  movq   %r13, -0x60(%rbp)
    0x7fff236cb4a7 <+205>:  callq  *0x5ce8b293(%rip)         ; (void *)0x00007fff20173880: objc_msgSend
    0x7fff236cb4ad <+211>:  movq   %rax, %rdi
    0x7fff236cb4b0 <+214>:  callq  0x7fff2374ec9c            ; symbol stub for: objc_retainAutoreleasedReturnValue
    0x7fff236cb4b5 <+219>:  movq   %rax, -0x70(%rbp)
    0x7fff236cb4b9 <+223>:  movq   %r12, %rdi
    0x7fff236cb4bc <+226>:  callq  *0x5ce8b28e(%rip)         ; (void *)0x00007fff2018fa40: objc_retain
    0x7fff236cb4c2 <+232>:  movq   %rax, -0x68(%rbp)
    0x7fff236cb4c6 <+236>:  movq   %r12, %rdi
    0x7fff236cb4c9 <+239>:  movq   %r14, %rsi
    0x7fff236cb4cc <+242>:  callq  *0x5ce8b26e(%rip)         ; (void *)0x00007fff20173880: objc_msgSend
    0x7fff236cb4d2 <+248>:  movq   %rax, %rdi
    0x7fff236cb4d5 <+251>:  callq  0x7fff2374ec9c            ; symbol stub for: objc_retainAutoreleasedReturnValue
    0x7fff236cb4da <+256>:  movq   %rax, %rbx
    0x7fff236cb4dd <+259>:  movq   0x5ce8ac3c(%rip), %rax    ; (void *)0x00007fff86ca2448: __NSStackBlock__
    0x7fff236cb4e4 <+266>:  leaq   -0xb8(%rbp), %r15
    0x7fff236cb4eb <+273>:  movq   %rax, (%r15)
    0x7fff236cb4ee <+276>:  movl   $0xc2000000, %eax         ; imm = 0xC2000000 
    0x7fff236cb4f3 <+281>:  movq   %rax, 0x8(%r15)
    0x7fff236cb4f7 <+285>:  leaq   0x2cd(%rip), %rax         ; ___lldb_unnamed_symbol9218$$CFNetwork
    0x7fff236cb4fe <+292>:  movq   %rax, 0x10(%r15)
    0x7fff236cb502 <+296>:  leaq   0x5cea7927(%rip), %rax    ; NSURLSessionSourceApplicationBundleIdentifierIsExternal + 9448
    0x7fff236cb509 <+303>:  movq   %rax, 0x18(%r15)
    0x7fff236cb50d <+307>:  movq   0x5ce8b23c(%rip), %r14    ; (void *)0x00007fff2018fa40: objc_retain
    0x7fff236cb514 <+314>:  movq   %r13, %rdi
    0x7fff236cb517 <+317>:  callq  *%r14
    0x7fff236cb51a <+320>:  movq   %rax, 0x20(%r15)
    0x7fff236cb51e <+324>:  movq   -0x70(%rbp), %rdi
    0x7fff236cb522 <+328>:  callq  *%r14
    0x7fff236cb525 <+331>:  movq   %rax, -0x78(%rbp)
    0x7fff236cb529 <+335>:  movq   %rax, 0x28(%r15)
    0x7fff236cb52d <+339>:  movq   -0x68(%rbp), %rdi
    0x7fff236cb531 <+343>:  callq  *%r14
    0x7fff236cb534 <+346>:  movq   %rax, %r13
    0x7fff236cb537 <+349>:  movq   %rax, 0x30(%r15)
    0x7fff236cb53b <+353>:  movq   -0x58(%rbp), %rdi
    0x7fff236cb53f <+357>:  callq  *%r14
    0x7fff236cb542 <+360>:  movq   %rbx, %r14
    0x7fff236cb545 <+363>:  movq   %rax, 0x38(%r15)
    0x7fff236cb549 <+367>:  movq   %rbx, %rdi
    0x7fff236cb54c <+370>:  movq   %r15, %rsi
    0x7fff236cb54f <+373>:  callq  0x7fff236aa843            ; ___lldb_unnamed_symbol8253$$CFNetwork
    0x7fff236cb554 <+378>:  movq   0x5ce8b1ed(%rip), %rbx    ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb55b <+385>:  movq   %r14, %rdi
    0x7fff236cb55e <+388>:  callq  *%rbx
    0x7fff236cb560 <+390>:  movq   -0x80(%rbp), %rdi
    0x7fff236cb564 <+394>:  callq  *%rbx
    0x7fff236cb566 <+396>:  movq   -0x88(%rbp), %rdi
    0x7fff236cb56d <+403>:  callq  *%rbx
    0x7fff236cb56f <+405>:  movq   -0x90(%rbp), %rdi
    0x7fff236cb576 <+412>:  callq  *%rbx
    0x7fff236cb578 <+414>:  movq   -0x98(%rbp), %rdi
    0x7fff236cb57f <+421>:  callq  *%rbx
    0x7fff236cb581 <+423>:  movq   %r13, %rdi
    0x7fff236cb584 <+426>:  callq  *%rbx
    0x7fff236cb586 <+428>:  movq   -0x78(%rbp), %rdi
    0x7fff236cb58a <+432>:  callq  *%rbx
    0x7fff236cb58c <+434>:  movq   -0x58(%rbp), %r15
    0x7fff236cb590 <+438>:  movq   -0x60(%rbp), %r13
    0x7fff236cb594 <+442>:  callq  0x7fff236cb276            ; ___lldb_unnamed_symbol9211$$CFNetwork
    0x7fff236cb599 <+447>:  movq   %rax, %rdi
    0x7fff236cb59c <+450>:  callq  0x7fff2374ec9c            ; symbol stub for: objc_retainAutoreleasedReturnValue
    0x7fff236cb5a1 <+455>:  movq   %rax, %rbx
    0x7fff236cb5a4 <+458>:  movq   %rax, %rdi
    0x7fff236cb5a7 <+461>:  movl   $0x2, %esi
    0x7fff236cb5ac <+466>:  callq  0x7fff2374ecf0            ; symbol stub for: os_log_type_enabled
    0x7fff236cb5b1 <+471>:  testb  %al, %al
    0x7fff236cb5b3 <+473>:  jne    0x7fff236cb698            ; <+702>
    0x7fff236cb5b9 <+479>:  movq   %rbx, %rdi
    0x7fff236cb5bc <+482>:  callq  *0x5ce8b186(%rip)         ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb5c2 <+488>:  movq   0x636f62d7(%rip), %rax
    0x7fff236cb5c9 <+495>:  movq   (%r12,%rax), %rdi
#########################################################
#########################################################
######################################### HERE IS EXCEPTION
->  0x7fff236cb5cd <+499>:  movq   (%rdi), %rax          
#########################################################
#########################################################
    0x7fff236cb5d0 <+502>:  callq  *0x190(%rax)
    0x7fff236cb5d6 <+508>:  movq   %rax, %r14
    0x7fff236cb5d9 <+511>:  leaq   -0x50(%rbp), %rax
    0x7fff236cb5dd <+515>:  movq   $0x0, (%rax)
    0x7fff236cb5e4 <+522>:  movq   %rax, 0x8(%rax)
    0x7fff236cb5e8 <+526>:  movabsq $0x2020000000, %rcx       ; imm = 0x2020000000 
    0x7fff236cb5f2 <+536>:  movq   %rcx, 0x10(%rax)
    0x7fff236cb5f6 <+540>:  movb   $0x0, 0x18(%rax)
    0x7fff236cb5fa <+544>:  movq   0x5ce8ab1f(%rip), %rcx    ; (void *)0x00007fff86ca2448: __NSStackBlock__
    0x7fff236cb601 <+551>:  leaq   -0xe8(%rbp), %rsi
    0x7fff236cb608 <+558>:  movq   %rcx, (%rsi)
    0x7fff236cb60b <+561>:  movl   $0xc2000000, %ecx         ; imm = 0xC2000000 
    0x7fff236cb610 <+566>:  movq   %rcx, 0x8(%rsi)
    0x7fff236cb614 <+570>:  leaq   0x1d5(%rip), %rcx         ; ___lldb_unnamed_symbol9219$$CFNetwork
    0x7fff236cb61b <+577>:  movq   %rcx, 0x10(%rsi)
    0x7fff236cb61f <+581>:  leaq   0x5cea783a(%rip), %rcx    ; NSURLSessionSourceApplicationBundleIdentifierIsExternal + 9496
    0x7fff236cb626 <+588>:  movq   %rcx, 0x18(%rsi)
    0x7fff236cb62a <+592>:  movq   %rax, 0x28(%rsi)
    0x7fff236cb62e <+596>:  movq   %r12, 0x20(%rsi)
    0x7fff236cb632 <+600>:  movq   %r14, %rdi
    0x7fff236cb635 <+603>:  callq  0x7fff2374e77a            ; symbol stub for: nw_connection_modify_connected_protocol_stack
    0x7fff236cb63a <+608>:  movq   0x636f75f7(%rip), %rax
    0x7fff236cb641 <+615>:  movb   $0x1, (%r12,%rax)
    0x7fff236cb646 <+620>:  movq   %r12, %rdi
    0x7fff236cb649 <+623>:  callq  0x7fff236ca9f8            ; ___lldb_unnamed_symbol9210$$CFNetwork
    0x7fff236cb64e <+628>:  leaq   -0x50(%rbp), %rdi
    0x7fff236cb652 <+632>:  movl   $0x8, %esi
    0x7fff236cb657 <+637>:  callq  0x7fff2374e000            ; symbol stub for: _Block_object_dispose
    0x7fff236cb65c <+642>:  movq   0x5ce8b0e5(%rip), %rbx    ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb663 <+649>:  movq   %r14, %rdi
    0x7fff236cb666 <+652>:  callq  *%rbx
    0x7fff236cb668 <+654>:  movq   %r13, %rdi
    0x7fff236cb66b <+657>:  callq  *%rbx
    0x7fff236cb66d <+659>:  movq   %r15, %rdi
    0x7fff236cb670 <+662>:  callq  *0x5ce8b0d2(%rip)         ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb676 <+668>:  movq   0x5ce8ab53(%rip), %rax    ; (void *)0x00007fff86ca60e0: __stack_chk_guard
    0x7fff236cb67d <+675>:  movq   (%rax), %rax
    0x7fff236cb680 <+678>:  cmpq   -0x30(%rbp), %rax
    0x7fff236cb684 <+682>:  jne    0x7fff236cb6f1            ; <+791>
    0x7fff236cb686 <+684>:  addq   $0xc8, %rsp
    0x7fff236cb68d <+691>:  popq   %rbx
    0x7fff236cb68e <+692>:  popq   %r12
    0x7fff236cb690 <+694>:  popq   %r13
    0x7fff236cb692 <+696>:  popq   %r14
    0x7fff236cb694 <+698>:  popq   %r15
    0x7fff236cb696 <+700>:  popq   %rbp
    0x7fff236cb697 <+701>:  retq   
    0x7fff236cb698 <+702>:  movq   0x636f2769(%rip), %rsi    ; "_loggableDescription"
    0x7fff236cb69f <+709>:  movq   %r12, %rdi
    0x7fff236cb6a2 <+712>:  callq  *0x5ce8b098(%rip)         ; (void *)0x00007fff20173880: objc_msgSend
    0x7fff236cb6a8 <+718>:  movq   %rax, %rdi
    0x7fff236cb6ab <+721>:  callq  0x7fff2374ec9c            ; symbol stub for: objc_retainAutoreleasedReturnValue
    0x7fff236cb6b0 <+726>:  movq   %rax, %r14
    0x7fff236cb6b3 <+729>:  leaq   -0x50(%rbp), %r8
    0x7fff236cb6b7 <+733>:  movl   $0x8420102, (%r8)         ; imm = 0x8420102 
    0x7fff236cb6be <+740>:  movq   %rax, 0x4(%r8)
    0x7fff236cb6c2 <+744>:  leaq   -0x1db6c9(%rip), %rdi
    0x7fff236cb6c9 <+751>:  leaq   0x28b5b0(%rip), %rcx      ; "%{public}@ handshake successful"
    0x7fff236cb6d0 <+758>:  movq   %rbx, %rsi
    0x7fff236cb6d3 <+761>:  movl   $0x2, %edx
    0x7fff236cb6d8 <+766>:  movl   $0xc, %r9d
    0x7fff236cb6de <+772>:  callq  0x7fff2374e204            ; symbol stub for: _os_log_debug_impl
    0x7fff236cb6e3 <+777>:  movq   %r14, %rdi
    0x7fff236cb6e6 <+780>:  callq  *0x5ce8b05c(%rip)         ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb6ec <+786>:  jmp    0x7fff236cb5b9            ; <+479>
    0x7fff236cb6f1 <+791>:  callq  0x7fff2374e1e0            ; symbol stub for: __stack_chk_fail
    0x7fff236cb6f6 <+796>:  movq   %r13, -0x60(%rbp)
    0x7fff236cb6fa <+800>:  movq   %r15, -0x58(%rbp)
    0x7fff236cb6fe <+804>:  movq   %rax, %r12
    0x7fff236cb701 <+807>:  movq   %rbx, %rdi
    0x7fff236cb704 <+810>:  jmp    0x7fff236cb7a7            ; <+973>
    0x7fff236cb709 <+815>:  movq   -0x68(%rbp), %r15
    0x7fff236cb70d <+819>:  movq   %r14, %rdi
    0x7fff236cb710 <+822>:  movq   -0x70(%rbp), %r14
    0x7fff236cb714 <+826>:  movq   %rax, %r12
    0x7fff236cb717 <+829>:  movq   0x5ce8b02a(%rip), %rbx    ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb71e <+836>:  callq  *%rbx
    0x7fff236cb720 <+838>:  movq   -0x80(%rbp), %rdi
    0x7fff236cb724 <+842>:  callq  *%rbx
    0x7fff236cb726 <+844>:  movq   -0x88(%rbp), %rdi
    0x7fff236cb72d <+851>:  callq  *%rbx
    0x7fff236cb72f <+853>:  movq   -0x90(%rbp), %rdi
    0x7fff236cb736 <+860>:  callq  *%rbx
    0x7fff236cb738 <+862>:  movq   -0x98(%rbp), %rdi
    0x7fff236cb73f <+869>:  callq  *%rbx
    0x7fff236cb741 <+871>:  jmp    0x7fff236cb74e            ; <+884>
    0x7fff236cb743 <+873>:  movq   -0x68(%rbp), %r15
    0x7fff236cb747 <+877>:  movq   -0x70(%rbp), %r14
    0x7fff236cb74b <+881>:  movq   %rax, %r12
    0x7fff236cb74e <+884>:  movq   0x5ce8aff3(%rip), %rbx    ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb755 <+891>:  movq   %r15, %rdi
    0x7fff236cb758 <+894>:  callq  *%rbx
    0x7fff236cb75a <+896>:  movq   %r14, %rdi
    0x7fff236cb75d <+899>:  callq  *%rbx
    0x7fff236cb75f <+901>:  jmp    0x7fff236cb7ad            ; <+979>
    0x7fff236cb761 <+903>:  jmp    0x7fff236cb76d            ; <+915>
    0x7fff236cb763 <+905>:  jmp    0x7fff236cb765            ; <+907>
    0x7fff236cb765 <+907>:  movq   %r13, -0x60(%rbp)
    0x7fff236cb769 <+911>:  movq   %r15, -0x58(%rbp)
    0x7fff236cb76d <+915>:  movq   %rax, %r12
    0x7fff236cb770 <+918>:  jmp    0x7fff236cb7ad            ; <+979>
    0x7fff236cb772 <+920>:  jmp    0x7fff236cb776            ; <+924>
    0x7fff236cb774 <+922>:  jmp    0x7fff236cb782            ; <+936>
    0x7fff236cb776 <+924>:  movq   %r15, -0x58(%rbp)
    0x7fff236cb77a <+928>:  movq   %rax, %r12
    0x7fff236cb77d <+931>:  movq   %rbx, %rdi
    0x7fff236cb780 <+934>:  jmp    0x7fff236cb7b1            ; <+983>
    0x7fff236cb782 <+936>:  movq   %r15, -0x58(%rbp)
    0x7fff236cb786 <+940>:  movq   %rax, %r12
    0x7fff236cb789 <+943>:  jmp    0x7fff236cb7b7            ; <+989>
    0x7fff236cb78b <+945>:  movq   %r13, -0x60(%rbp)
    0x7fff236cb78f <+949>:  movq   %r15, -0x58(%rbp)
    0x7fff236cb793 <+953>:  movq   %rax, %r12
    0x7fff236cb796 <+956>:  leaq   -0x50(%rbp), %rdi
    0x7fff236cb79a <+960>:  movl   $0x8, %esi
    0x7fff236cb79f <+965>:  callq  0x7fff2374e000            ; symbol stub for: _Block_object_dispose
    0x7fff236cb7a4 <+970>:  movq   %r14, %rdi
    0x7fff236cb7a7 <+973>:  callq  *0x5ce8af9b(%rip)         ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb7ad <+979>:  movq   -0x60(%rbp), %rdi
    0x7fff236cb7b1 <+983>:  callq  *0x5ce8af91(%rip)         ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb7b7 <+989>:  movq   -0x58(%rbp), %rdi
    0x7fff236cb7bb <+993>:  callq  *0x5ce8af87(%rip)         ; (void *)0x00007fff2018f720: objc_release
    0x7fff236cb7c1 <+999>:  movq   %r12, %rdi
    0x7fff236cb7c4 <+1002>: callq  0x7fff2374e09c            ; symbol stub for: _Unwind_Resume
    0x7fff236cb7c9 <+1007>: ud2    

Xcode 12.0 Wormholy 1.6.4 (happens with 1.6.3 as well) iPhone Simulator w/ iOS 14.0