Skip to content

Instantly share code, notes, and snippets.

@ixaxaar
Created December 19, 2017 17:44
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 ixaxaar/ccd13dd29a8b08ca0727f03bb9818a0d to your computer and use it in GitHub Desktop.
Save ixaxaar/ccd13dd29a8b08ca0727f03bb9818a0d to your computer and use it in GitHub Desktop.
gdb python
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...done.
(gdb) run ./lol.py
Starting program: /home/ixaxaar/.conda/envs/faiss/bin/python ./lol.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffac0b3700 (LWP 18319)]
[New Thread 0x7fffab8b2700 (LWP 18320)]
[New Thread 0x7fffaaf2e700 (LWP 18321)]
[New Thread 0x7fffa9adb700 (LWP 18324)]
[New Thread 0x7fffa92da700 (LWP 18325)]
[New Thread 0x7fffa8ad9700 (LWP 18326)]
WARNING clustering 100 points to 32 centroids: please provide at least 1248 training points
adding
torch.Size([3, 20])
Thread 1 "python" received signal SIGSEGV, Segmentation fault.
faiss::gpu::GpuResources::getDefaultStreamCurrentDevice (this=0x55555683a390) at GpuResources.cpp:26
26 GpuResources.cpp: No such file or directory.
(gdb) bt
#0 faiss::gpu::GpuResources::getDefaultStreamCurrentDevice (this=0x55555683a390) at GpuResources.cpp:26
#1 0x00007fffb4d5a1e9 in faiss::gpu::GpuIndexIVFFlat::addImpl_ (this=0x555559201c70, n=3, x=0x1030ba00000, xids=0x555556837850) at GpuIndexIVFFlat.cu:214
#2 0x00007fffb4da9082 in faiss::gpu::GpuIndex::addInternal_ (this=0x555559201c70, n=3, x=0x1030ba00000, ids=0x555556837850) at GpuIndex.cu:102
#3 0x00007fffb4d58a1b in faiss::gpu::GpuIndexIVF::add (this=0x555559201c70, n=3, x=0x1030ba00000) at GpuIndexIVF.cu:222
#4 0x00007fffb4ced702 in _wrap_GpuIndexIVF_add () from /home/ixaxaar/.conda/envs/faiss/lib/python3.6/site-packages/faiss/_swigfaiss_gpu.so
#5 0x00005555556627d1 in _PyCFunction_FastCallDict ()
#6 0x00005555556f217c in call_function ()
#7 0x0000555555714bba in _PyEval_EvalFrameDefault ()
#8 0x00005555556ec00b in fast_function ()
#9 0x00005555556f2255 in call_function ()
#10 0x0000555555714bba in _PyEval_EvalFrameDefault ()
#11 0x00005555556eb354 in _PyEval_EvalCodeWithName ()
#12 0x00005555556ec24f in fast_function ()
#13 0x00005555556f2255 in call_function ()
#14 0x0000555555714bba in _PyEval_EvalFrameDefault ()
#15 0x00005555556ec00b in fast_function ()
#16 0x00005555556f2255 in call_function ()
#17 0x0000555555714bba in _PyEval_EvalFrameDefault ()
#18 0x00005555556ecd39 in PyEval_EvalCodeEx ()
#19 0x00005555556edadc in PyEval_EvalCode ()
#20 0x0000555555768be4 in run_mod ()
#21 0x0000555555768fe1 in PyRun_FileExFlags ()
#22 0x00005555557691e4 in PyRun_SimpleFileExFlags ()
#23 0x000055555576ccbf in Py_Main ()
#24 0x0000555555633dbe in main ()
(gdb) quit
A debugging session is active.
Inferior 1 [process 18297] will be killed.
Quit anyway? (y or n) y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment