Skip to content

Instantly share code, notes, and snippets.

@mdouze
Created April 28, 2021 07:24
Show Gist options
  • Save mdouze/d4f3bf7e2edec4ff207d4c869eacfd0c to your computer and use it in GitHub Desktop.
Save mdouze/d4f3bf7e2edec4ff207d4c869eacfd0c to your computer and use it in GitHub Desktop.
backtrace
bash-3.2$ 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 2640 launched: '/usr/local/bin/python3' (x86_64)
Process 2640 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 2640 resuming
OMP: Error #13: Assertion failure at kmp_runtime.cpp(3689).
OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/.
OMP: Error #131: Thread identifier invalid.
Process 2640 stopped
* thread #13, stop reason = signal SIGABRT
frame #0: 0x00007fff6fdbe33a libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
-> 0x7fff6fdbe33a <+10>: jae 0x7fff6fdbe344 ; <+20>
0x7fff6fdbe33c <+12>: movq %rax, %rdi
0x7fff6fdbe33f <+15>: jmp 0x7fff6fdb8629 ; cerror_nocancel
0x7fff6fdbe344 <+20>: retq
Target 0: (Python) stopped.
(lldb) bt
* thread #13, stop reason = signal SIGABRT
* frame #0: 0x00007fff6fdbe33a libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff6fe7ee60 libsystem_pthread.dylib`pthread_kill + 430
frame #2: 0x00007fff6fd45808 libsystem_c.dylib`abort + 120
frame #3: 0x00000001105b5923 libomp.dylib`__kmp_abort_process + 48
frame #4: 0x00000001105b4370 libomp.dylib`__kmp_fatal + 141
frame #5: 0x00000001105b2369 libomp.dylib`__kmp_debug_assert + 169
frame #6: 0x00000001105b4e4a libomp.dylib`__kmp_register_root + 303
frame #7: 0x00000001105b496f libomp.dylib`__kmp_get_global_thread_id_reg + 81
frame #8: 0x00000001105ad1d6 libomp.dylib`__kmpc_fork_call + 118
frame #9: 0x000000011039986d _swigfaiss.so`faiss::hammings_knn_hc(faiss::HeapArray<faiss::CMax<int, long long> >*, unsigned char const*, unsigned char const*, unsigned long, unsigned long, int) + 93
e #10: 0x00000001101ae0dc _swigfaiss.so`faiss::IndexBinaryFlat::search(long long, unsigned char const*, long long, int*, long long*) const + 268
frame #11: 0x000000011025605e _swigfaiss.so`std::__1::__function::__func<faiss::IndexReplicasTemplate<faiss::IndexBinary>::search(long long, unsigned char const*, long long, int*, long long*) const::'lambda'(int, faiss::IndexBinary const*), std::__1::allocator<faiss::IndexReplicasTemplate<faiss::IndexBinary>::search(long long, unsigned char const*, long long, int*, long long*) const::'lambda'(int, faiss::IndexBinary const*)>, void (int, faiss::IndexBinary const*)>::operator()(int&&, faiss::IndexBinary const*&&) + 142
frame #12: 0x0000000110198f0b _swigfaiss.so`std::__1::__function::__func<faiss::ThreadedIndex<faiss::IndexBinary>::runOnIndex(std::__1::function<void (int, faiss::IndexBinary const*)>) const::'lambda'(int, faiss::IndexBinary*), std::__1::allocator<faiss::ThreadedIndex<faiss::IndexBinary>::runOnIndex(std::__1::function<void (int, faiss::IndexBinary const*)>) const::'lambda'(int, faiss::IndexBinary*)>, void (int, faiss::IndexBinary*)>::operator()(int&&, faiss::IndexBinary*&&) + 43
frame #13: 0x0000000110198a7d _swigfaiss.so`std::__1::__function::__func<faiss::ThreadedIndex<faiss::IndexBinary>::runOnIndex(std::__1::function<void (int, faiss::IndexBinary*)>)::'lambda'(), std::__1::allocator<faiss::ThreadedIndex<faiss::IndexBinary>::runOnIndex(std::__1::function<void (int, faiss::IndexBinary*)>)::'lambda'()>, void ()>::operator()() + 45
e #14: 0x000000011038294d _swigfaiss.so`faiss::(anonymous namespace)::runCallback(std::__1::function<void ()>&, std::__1::promise<bool>&) + 29
frame #15: 0x0000000110382735 _swigfaiss.so`faiss::WorkerThread::threadLoop() + 389
frame #16: 0x0000000110382513 _swigfaiss.so`faiss::WorkerThread::threadMain() + 19
frame #17: 0x0000000110382dcd _swigfaiss.so`void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, faiss::WorkerThread::startThread()::$_1> >(void*) + 45
frame #18: 0x00007fff6fe7f109 libsystem_pthread.dylib`_pthread_start + 148
frame #19: 0x00007fff6fe7ab8b libsystem_pthread.dylib`thread_start + 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment