Skip to content

Instantly share code, notes, and snippets.

@kolen
Created January 7, 2020 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kolen/bbc043cd7cf310b5dc951a253acc34bc to your computer and use it in GitHub Desktop.
Save kolen/bbc043cd7cf310b5dc951a253acc34bc to your computer and use it in GitHub Desktop.
Analysis of sampling sudo (pid 20663) every 1 millisecond
Process: sudo [20663]
Path: /usr/bin/sudo
Load Address: 0x107424000
Identifier: sudo
Version: 86.50.1
Code Type: X86-64
Parent Process: zsh [20661]
Date/Time: 2020-01-07 19:59:14.114 +0300
Launch Time: 2020-01-07 19:58:27.340 +0300
OS Version: Mac OS X 10.13.6 (17G10021)
Report Version: 7
Analysis Tool: /usr/bin/sample
Physical footprint: 1888K
Physical footprint (peak): 1928K
----
Call graph:
9260 Thread_1620811 DispatchQueue_1: com.apple.main-thread (serial)
+ 9260 start (in libdyld.dylib) + 1 [0x7fff52a32015]
+ 9260 ??? (in sudo) load address 0x107424000 + 0x66cb [0x10742a6cb]
+ 9260 ??? (in sudo) load address 0x107424000 + 0x1fae0 [0x107443ae0]
+ 9260 ??? (in sudo) load address 0x107424000 + 0x2353 [0x107426353]
+ 9260 ??? (in sudo) load address 0x107424000 + 0x13685 [0x107437685]
+ 9260 ??? (in sudo) load address 0x107424000 + 0x128fc [0x1074368fc]
+ 9260 ??? (in sudo) load address 0x107424000 + 0xd61e [0x10743161e]
+ 9260 pam_authenticate (in libpam.2.dylib) + 38 [0x7fff5220a127]
+ 9260 openpam_dispatch (in libpam.2.dylib) + 504 [0x7fff52208ecc]
+ 4722 pam_sm_authenticate (in pam_opendirectory.so.2) + 135 [0x7fff528acc9a]
+ ! 4722 pam_get_authtok (in libpam.2.dylib) + 365 [0x7fff5220a4f3]
+ ! 4722 pam_prompt (in libpam.2.dylib) + 118 [0x7fff5220a9c6]
+ ! 4722 pam_vprompt (in libpam.2.dylib) + 180 [0x7fff5220afc4]
+ ! 4722 ??? (in sudo) load address 0x107424000 + 0xe0dc [0x1074320dc]
+ ! 4722 ??? (in sudo) load address 0x107424000 + 0x12bdd [0x107436bdd]
+ ! 4722 ??? (in sudo) load address 0x107424000 + 0x14076 [0x107438076]
+ ! 4722 ??? (in sudo) load address 0x107424000 + 0x14540 [0x107438540]
+ ! 4722 ??? (in sudo) load address 0x107424000 + 0x14cee [0x107438cee]
+ ! 4722 read (in libsystem_kernel.dylib) + 10 [0x7fff52b84142]
+ 4527 pam_sm_authenticate (in pam_opendirectory.so.2) + 345 [0x7fff528acd6c]
+ ! 4526 ODRecordVerifyPassword (in CFOpenDirectory) + 258 [0x7fff3323a644]
+ ! : 4526 transaction_simple (in CFOpenDirectory) + 370 [0x7fff33230d0a]
+ ! : 4526 _dispatch_semaphore_wait_slow (in libdispatch.dylib) + 101 [0x7fff52a00979]
+ ! : 4526 _dispatch_sema4_wait (in libdispatch.dylib) + 16 [0x7fff52a08893]
+ ! : 4526 semaphore_wait_trap (in libsystem_kernel.dylib) + 10 [0x7fff52b79236]
+ ! 1 ODRecordVerifyPassword (in CFOpenDirectory) + 207 [0x7fff3323a611]
+ ! 1 _ODRecordGetNode (in CFOpenDirectory) + 130 [0x7fff3323a011]
+ ! 1 ODNodeCreateWithNameAndOptions (in CFOpenDirectory) + 157 [0x7fff332304cb]
+ ! 1 node_cache_get_and_retain (in CFOpenDirectory) + 197 [0x7fff33230759]
+ ! 1 _ODNodeExternalCreate (in CFOpenDirectory) + 182 [0x7fff33230acb]
+ ! 1 transaction_simple (in CFOpenDirectory) + 370 [0x7fff33230d0a]
+ ! 1 _dispatch_semaphore_wait_slow (in libdispatch.dylib) + 101 [0x7fff52a00979]
+ ! 1 _dispatch_sema4_wait (in libdispatch.dylib) + 16 [0x7fff52a08893]
+ ! 1 semaphore_wait_trap (in libsystem_kernel.dylib) + 10 [0x7fff52b79236]
+ 11 pam_sm_authenticate (in pam_opendirectory.so.2) + 242 [0x7fff528acd05]
+ 11 od_record_create_cstring (in pam_opendirectory.so.2) + 60 [0x7fff528abc89]
+ 4 od_record_create (in pam_opendirectory.so.2) + 269 [0x7fff528ab99b]
+ : 4 ODNodeCopyUnreachableSubnodeNames (in CFOpenDirectory) + 262 [0x7fff3323603d]
+ : 3 transaction_simple (in CFOpenDirectory) + 370 [0x7fff33230d0a]
+ : | 3 _dispatch_semaphore_wait_slow (in libdispatch.dylib) + 101 [0x7fff52a00979]
+ : | 3 _dispatch_sema4_wait (in libdispatch.dylib) + 16 [0x7fff52a08893]
+ : | 3 semaphore_wait_trap (in libsystem_kernel.dylib) + 10 [0x7fff52b79236]
+ : 1 transaction_simple (in CFOpenDirectory) + 355 [0x7fff33230cfb]
+ : 1 transaction_send (in CFOpenDirectory) + 78 [0x7fff33230de5]
+ : 1 CFPropertyListCreateData (in CoreFoundation) + 309 [0x7fff2aa32245]
+ : 1 CFPropertyListWrite (in CoreFoundation) + 200 [0x7fff2aa1f9b8]
+ : 1 __CFBinaryPlistWriteOrPresize (in CoreFoundation) + 243 [0x7fff2aa1fc73]
+ : 1 __CFBasicHashRehash (in CoreFoundation) + 281 [0x7fff2a9b59e9]
+ : 1 _platform_bzero$VARIANT$Base (in libsystem_platform.dylib) + 59 [0x7fff52d44d4b]
+ 4 od_record_create (in pam_opendirectory.so.2) + 357 [0x7fff528ab9f3]
+ : 3 ODNodeCopyRecord (in CFOpenDirectory) + 385 [0x7fff332378ff]
+ : | 3 ODQueryCopyResults (in CFOpenDirectory) + 195 [0x7fff3323488a]
+ : | 3 _dispatch_semaphore_wait_slow (in libdispatch.dylib) + 101 [0x7fff52a00979]
+ : | 3 _dispatch_sema4_wait (in libdispatch.dylib) + 16 [0x7fff52a08893]
+ : | 3 semaphore_wait_trap (in libsystem_kernel.dylib) + 10 [0x7fff52b79236]
+ : 1 ODNodeCopyRecord (in CFOpenDirectory) + 356 [0x7fff332378e2]
+ : 1 _ODQueryInit (in CFOpenDirectory) + 321 [0x7fff33232596]
+ : 1 _normalize_typeorlist (in CFOpenDirectory) + 97 [0x7fff332326e8]
+ : 1 +[__NSSingleObjectArrayI __new::] (in CoreFoundation) + 69 [0x7fff2ab78e35]
+ : 1 _objc_msgSend_uncached (in libobjc.A.dylib) + 68 [0x7fff51e0a914]
+ : 1 lookUpImpOrForward (in libobjc.A.dylib) + 512 [0x7fff51e0afa7]
+ : 1 log_and_fill_cache(objc_class*, void (*)(), objc_selector*, objc_object*, objc_class*) (in libobjc.A.dylib) + 122 [0x7fff51e0b6e6]
+ 3 od_record_create (in pam_opendirectory.so.2) + 98 [0x7fff528ab8f0]
+ 3 ODNodeCreateWithNameAndOptions (in CFOpenDirectory) + 157 [0x7fff332304cb]
+ 3 node_cache_get_and_retain (in CFOpenDirectory) + 197 [0x7fff33230759]
+ 3 _ODNodeExternalCreate (in CFOpenDirectory) + 182 [0x7fff33230acb]
+ 2 transaction_simple (in CFOpenDirectory) + 370 [0x7fff33230d0a]
+ | 2 _dispatch_semaphore_wait_slow (in libdispatch.dylib) + 101 [0x7fff52a00979]
+ | 2 _dispatch_sema4_wait (in libdispatch.dylib) + 16 [0x7fff52a08893]
+ | 2 semaphore_wait_trap (in libsystem_kernel.dylib) + 10 [0x7fff52b79236]
+ 1 transaction_simple (in CFOpenDirectory) + 355 [0x7fff33230cfb]
+ 1 transaction_send (in CFOpenDirectory) + 78 [0x7fff33230de5]
+ 1 CFPropertyListCreateData (in CoreFoundation) + 309 [0x7fff2aa32245]
+ 1 CFPropertyListWrite (in CoreFoundation) + 85 [0x7fff2aa1f945]
+ 1 __CFPropertyListIsValidAux (in CoreFoundation) + 406 [0x7fff2a9f84e6]
+ 1 _CFRelease (in CoreFoundation) + 903 [0x7fff2ab0acb7]
9259 Thread_1621209
+ 9259 start_wqthread (in libsystem_pthread.dylib) + 13 [0x7fff52d49be9]
+ 9259 _pthread_wqthread (in libsystem_pthread.dylib) + 1035 [0x7fff52d4a009]
+ 9259 __workq_kernreturn (in libsystem_kernel.dylib) + 10 [0x7fff52b8328a]
4535 Thread_1624635
+ 4535 start_wqthread (in libsystem_pthread.dylib) + 13 [0x7fff52d49be9]
+ 4534 _pthread_wqthread (in libsystem_pthread.dylib) + 1035 [0x7fff52d4a009]
+ ! 4534 __workq_kernreturn (in libsystem_kernel.dylib) + 10 [0x7fff52b8328a]
+ 1 _pthread_wqthread (in libsystem_pthread.dylib) + 980 [0x7fff52d49fd2]
+ 1 _dispatch_workloop_worker_thread (in libdispatch.dylib) + 518 [0x7fff52a11bb7]
+ 1 _dispatch_event_loop_merge (in libdispatch.dylib) + 117 [0x7fff52a1684c]
+ 1 _dispatch_mach_merge_msg (in libdispatch.dylib) + 131 [0x7fff52a12ac4]
+ 1 _voucher_create_with_mach_voucher (in libdispatch.dylib) + 458 [0x7fff52a010b9]
+ 1 _voucher_dealloc_mach_voucher (in libdispatch.dylib) + 9 [0x7fff52a01167]
+ 1 mach_port_deallocate (in libsystem_kernel.dylib) + 17 [0x7fff52b8135e]
+ 1 _kernelrpc_mach_port_deallocate_trap (in libsystem_kernel.dylib) + 10 [0x7fff52b7916a]
4527 Thread_1624636
+ 4526 start_wqthread (in libsystem_pthread.dylib) + 13 [0x7fff52d49be9]
+ ! 4526 _pthread_wqthread (in libsystem_pthread.dylib) + 1035 [0x7fff52d4a009]
+ ! 4526 __workq_kernreturn (in libsystem_kernel.dylib) + 10 [0x7fff52b8328a]
+ 1 ??? (in <unknown binary>) [0x70000d0f8a50]
+ 1 start_wqthread (in libsystem_pthread.dylib) + 0 [0x7fff52d49bdc]
1 Thread_1621209 DispatchQueue_19: com.apple.opendirectory.odxpc.xpc (serial)
1 start_wqthread (in libsystem_pthread.dylib) + 13 [0x7fff52d49be9]
1 _pthread_wqthread (in libsystem_pthread.dylib) + 980 [0x7fff52d49fd2]
1 _dispatch_workloop_worker_thread (in libdispatch.dylib) + 880 [0x7fff52a11d21]
1 _dispatch_root_queue_drain_deferred_wlh (in libdispatch.dylib) + 332 [0x7fff52a0df0d]
1 _dispatch_queue_invoke (in libdispatch.dylib) + 373 [0x7fff52a00166]
1 _dispatch_queue_serial_drain (in libdispatch.dylib) + 222 [0x7fff52a0d07a]
1 _dispatch_mach_invoke (in libdispatch.dylib) + 534 [0x7fff529fc972]
1 _dispatch_queue_serial_drain (in libdispatch.dylib) + 222 [0x7fff52a0d07a]
1 _dispatch_mach_msg_invoke (in libdispatch.dylib) + 488 [0x7fff529fe062]
1 _dispatch_client_callout4 (in libdispatch.dylib) + 9 [0x7fff529fdda9]
1 _xpc_connection_mach_event (in libxpc.dylib) + 1092 [0x7fff52d86f31]
1 _xpc_connection_call_event_handler (in libxpc.dylib) + 35 [0x7fff52d88773]
1 ___odxpc_create_connection_block_invoke (in CFOpenDirectory) + 479 [0x7fff3323160d]
1 _dispatch_event_loop_poke (in libdispatch.dylib) + 463 [0x7fff52a16224]
1 _dispatch_kq_poll (in libdispatch.dylib) + 197 [0x7fff52a16a58]
1 kevent_id (in libsystem_kernel.dylib) + 10 [0x7fff52b83c1a]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment