Skip to content

Instantly share code, notes, and snippets.

@mdouze
Created April 28, 2021 07:36
Show Gist options
  • Save mdouze/3af918414f8cf6e90d996e0f3306008d to your computer and use it in GitHub Desktop.
Save mdouze/3af918414f8cf6e90d996e0f3306008d to your computer and use it in GitHub Desktop.
bash-3.2$ OMP_NUM_THREADS=1 PYTHONPATH=../build/faiss/python/build/lib/ lldb $( which python3 ) # -m unittest test_index_binary.TestReplicasAndShards.test_replicas
(lldb) target create "/usr/local/bin/python3"
Current executable set to '/usr/local/bin/python3' (x86_64).
(lldb) r -m unittest test_index_binary.TestReplicasAndShards.test_replicas
Process 2676 launched: '/usr/local/bin/python3' (x86_64)
Process 2676 stopped
* thread #2, stop reason = exec
frame #0: 0x000000010000e000 dyld`_dyld_start
dyld`_dyld_start:
-> 0x10000e000 <+0>: popq %rdi
0x10000e001 <+1>: pushq $0x0
0x10000e003 <+3>: movq %rsp, %rbp
0x10000e006 <+6>: andq $-0x10, %rsp
Target 0: (Python) stopped.
(lldb) c
Process 2676 resuming
.
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
Process 2676 exited with status = 0 (0x00000000)
(lldb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment