root@VM-0-17-ubuntu ~/gpma_bfs# /usr/local/cuda-10.2/bin/cuda-gdb ./gpma_bfs_demo
NVIDIA (R) CUDA Debugger
10.2 release
Portions Copyright (C) 2007-2019 NVIDIA Corporation
GNU gdb (GDB) 7.12
Copyright (C) 2016 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 ./gpma_bfs_demo...done.
(cuda-gdb) run ~/999999999.pokec.txt 0
Starting program: /root/gpma_bfs/gpma_bfs_demo ~/999999999.pokec.txt 0
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef662700 (LWP 8974)]
[New Thread 0x7fffeee61700 (LWP 8975)]
node_num: 1632803, edge_num: 30622564
Graph file is loaded.
T+706222461 - before init_csr_gpma
DBG: tree_height=1, update_size=1632803
[New Thread 0x7fffed44c700 (LWP 8988)]
[New Thread 0x7fffecc4b700 (LWP 8989)]
[New Thread 0x7fffe5fff700 (LWP 8990)]
[New Thread 0x7fffe57fe700 (LWP 8991)]
[New Thread 0x7fffe4ffd700 (LWP 8992)]
[New Thread 0x7fffaab2e700 (LWP 8993)]
[New Thread 0x7fff6a18c700 (LWP 8994)]
resize gpma: FROM keys.size=(BUFSIZE=4)(COMPACTED=2), tree_height=1, seg_length=2
TO keys.size=2097152, tree_height=17, seg_length=16
DBG: (LEAVE UPDATE) =====================================================================================
DBG: tree_height=1, update_size=1632803
resize gpma: FROM keys.size=(BUFSIZE=4)(COMPACTED=2), tree_height=1, seg_length=2
TO keys.size=2097152, tree_height=17, seg_length=16
DBG: (LEAVE UPDATE) =====================================================================================
DBG: tree_height=1, update_size=1632803
resize gpma: FROM keys.size=(BUFSIZE=4)(COMPACTED=2), tree_height=1, seg_length=2
TO keys.size=2097152, tree_height=17, seg_length=16
DBG: (LEAVE UPDATE) =====================================================================================
DBG: tree_height=1, update_size=1632803
resize gpma: FROM keys.size=(BUFSIZE=4)(COMPACTED=2), tree_height=1, seg_length=2
TO keys.size=2097152, tree_height=17, seg_length=16
DBG: (LEAVE UPDATE) =====================================================================================
DBG: tree_height=1, update_size=1632803
resize gpma: FROM keys.size=(BUFSIZE=4)(COMPACTED=2), tree_height=1, seg_length=2
TO keys.size=2097152, tree_height=17, seg_length=16
DBG: (LEAVE UPDATE) =====================================================================================
DBG: tree_height=1, update_size=1632803
resize gpma: FROM keys.size=(BUFSIZE=4)(COMPACTED=2), tree_height=1, seg_length=2
TO keys.size=2097152, tree_height=17, seg_length=16
DBG: (LEAVE UPDATE) =====================================================================================
DBG: tree_height=1, update_size=1632803
resize gpma: FROM keys.size=(BUFSIZE=4)(COMPACTED=2), tree_height=1, seg_length=2
TO keys.size=2097152, tree_height=17, seg_length=16
DBG: (LEAVE UPDATE) =====================================================================================
DBG: tree_height=1, update_size=1632803
resize gpma: FROM keys.size=(BUFSIZE=4)(COMPACTED=2), tree_height=1, seg_length=2
TO keys.size=2097152, tree_height=17, seg_length=16
DBG: (LEAVE UPDATE) =====================================================================================
T+1713946 - before update_gpma 1
Thread 1 "gpma_bfs_demo" received signal SIGSEGV, Segmentation fault.
0x000055555558578a in gpma_impl::thread_safe_kv_buf<19981223ul, 8ul>::push_back (v=@0x7fffed44d010: 1 '\001', k=<optimized out>, dev_id=<synthetic pointer>: <optimized out>,
this=0x7fffffffddf0) at multidev.cuh:69
warning: Source file is more recent than executable.
69 v_buffers[dev_id][pos] = v;
(cuda-gdb) bt
#0 0x000055555558578a in gpma_impl::thread_safe_kv_buf<19981223ul, 8ul>::push_back (v=@0x7fffed44d010: 1 '\001', k=<optimized out>, dev_id=<synthetic pointer>: <optimized out>,
this=0x7fffffffddf0) at multidev.cuh:69
#1 GPMA_multidev<7ul, 1ul>::update_batch (update_values=..., update_keys=..., this=<optimized out>) at multidev.cuh:115
#2 GPMA_multidev<7ul, 1ul>::update_batch(runtime_info::native_vector<19981223ul, unsigned long>&, runtime_info::native_vector<19981223ul, char>&) () at gpma_bfs_demo.cu:96
(cuda-gdb) p dev_id
$1 = (const size_t &) <synthetic pointer>: <optimized out>
(cuda-gdb) p pos
$2 = <optimized out>
(cuda-gdb) quit
A debugging session is active.