(gdb) info threads Id Target Id Frame 64 Thread 0x7feaed832700 (LWP 11313) "a2.out" 0x00007feb18bbe277 in ioctl () from /lib64/libc.so.6 63 Thread 0x7feaee033700 (LWP 10885) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 62 Thread 0x7feaee834700 (LWP 10884) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 61 Thread 0x7feaef035700 (LWP 10883) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 60 Thread 0x7feaef836700 (LWP 10882) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 59 Thread 0x7feaf0037700 (LWP 10881) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 58 Thread 0x7feaf0838700 (LWP 10880) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 57 Thread 0x7feaf1039700 (LWP 10879) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 56 Thread 0x7feaf183a700 (LWP 10878) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 55 Thread 0x7feaf203b700 (LWP 10877) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 54 Thread 0x7feaf283c700 (LWP 10876) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 53 Thread 0x7feaf303d700 (LWP 10875) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 52 Thread 0x7feaf383e700 (LWP 10874) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 51 Thread 0x7feaf403f700 (LWP 10873) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 50 Thread 0x7feaf4840700 (LWP 10872) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 49 Thread 0x7feaf5041700 (LWP 10871) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 48 Thread 0x7feaf5842700 (LWP 10870) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 47 Thread 0x7feaf6043700 (LWP 10869) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 46 Thread 0x7feaf6844700 (LWP 10868) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 45 Thread 0x7feaf7045700 (LWP 10867) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 44 Thread 0x7feaf7846700 (LWP 10866) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 43 Thread 0x7feaf8047700 (LWP 10865) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 42 Thread 0x7feaf8848700 (LWP 10864) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 41 Thread 0x7feafb2b9700 (LWP 10863) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 40 Thread 0x7feafbaba700 (LWP 10862) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 39 Thread 0x7feafc2bb700 (LWP 10861) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 38 Thread 0x7feafcabc700 (LWP 10860) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 37 Thread 0x7feafd2bd700 (LWP 10859) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 36 Thread 0x7feafdabe700 (LWP 10858) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 35 Thread 0x7feafa84c700 (LWP 10857) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 34 Thread 0x7feafa04b700 (LWP 10856) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 33 Thread 0x7feaf984a700 (LWP 10855) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 32 Thread 0x7feaf9049700 (LWP 10854) "a2.out" 0x00007feb18e817b9 in pthread_cond_timedwait () from /lib64/libpthread.so.0 15 Thread 0x7feb01099700 (LWP 10837) "si_shader_low:1" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 14 Thread 0x7feb0189a700 (LWP 10836) "si_shader_low:0" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 13 Thread 0x7feb0209b700 (LWP 10835) "si_shader:2" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 12 Thread 0x7feb0289c700 (LWP 10834) "si_shader:1" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 11 Thread 0x7feb0309d700 (LWP 10833) "si_shader:0" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 10 Thread 0x7feb0389e700 (LWP 10832) "disk_cache:0" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 9 Thread 0x7feb041e0700 (LWP 10831) "amdgpu_cs:0" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 8 Thread 0x7feb04a01700 (LWP 10830) "si_shader_low:1" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 7 Thread 0x7feb05202700 (LWP 10829) "si_shader_low:0" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 6 Thread 0x7feb05a03700 (LWP 10828) "si_shader:2" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 5 Thread 0x7feb06204700 (LWP 10827) "si_shader:1" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 4 Thread 0x7feb06a05700 (LWP 10826) "si_shader:0" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 3 Thread 0x7feb07206700 (LWP 10825) "disk_cache:0" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 2 Thread 0x7feb07c12700 (LWP 10824) "amdgpu_cs:0" 0x00007feb18e8144f in pthread_cond_wait () from /lib64/libpthread.so.0 * 1 Thread 0x7feb19494f80 (LWP 10804) "a2.out" 0x00007feb18e7c64d in pthread_join () from /lib64/libpthread.so.0 (gdb) thread 64 [Switching to thread 64 (Thread 0x7feaed832700 (LWP 11313))] #0 0x00007feb18bbe277 in ioctl () from /lib64/libc.so.6 (gdb) bt #0 0x00007feb18bbe277 in ioctl () from /lib64/libc.so.6 #1 0x00007feb181b6c88 in drmIoctl () from /usr/lib64/libdrm.so.2 #2 0x00007feb08027148 in amdgpu_cs_query_fence_status () from /usr/lib64/libdrm_amdgpu.so.1 #3 0x00007feb0851b43e in amdgpu_fence_wait (fence=fence@entry=0x7feae805d840, timeout=timeout@entry=18446744073709551615, absolute=absolute@entry=true) at amdgpu_cs.c:117 #4 0x00007feb0851c50f in amdgpu_fence_wait (fence=fence@entry=0x7feae805d840, timeout=timeout@entry=18446744073709551615, absolute=absolute@entry=true) at amdgpu_cs.c:89 #5 0x00007feb0851a4f8 in amdgpu_bo_wait (_buf=_buf@entry=0x7feae80513d0, timeout=timeout@entry=18446744073709551615, usage=usage@entry=RADEON_USAGE_WRITE) at amdgpu_bo.c:124 #6 0x00007feb0851a901 in amdgpu_bo_map (buf=0x7feae80513d0, rcs=0x0, usage=) at amdgpu_bo.c:277 #7 0x00007feb0853f00a in r600_buffer_transfer_map (ctx=0x9707e0, resource=0x7feae800eaa0, level=, usage=1, box=0x7feaed831a10, ptransfer=0x7feaed831ae8) at r600_buffer_common.c:467 #8 0x00007feb1863e335 in clover::mapping::mapping (this=0x7feaed831ae0, q=..., r=..., flags=, blocking=, origin=..., region=...) at core/resource.cpp:200 #9 0x00007feb186266da in (anonymous namespace)::_map::get (size=, offset=, flags=1, obj=, q=...) at api/transfer.cpp:209 #10 (anonymous namespace)::::operator() (__closure=0x7feae80510f0) at api/transfer.cpp:245 #11 std::_Function_handler]:: >::_M_invoke(const std::_Any_data &, clover::event &) (__functor=..., __args#0=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.0/include/g++-v7/bits/std_function.h:316 #12 0x00007feb1862ef94 in std::function::operator()(clover::event&) const (__args#0=..., this=0x7feae8050f60) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.0/include/g++-v7/bits/std_function.h:706 #13 clover::event::trigger (this=this@entry=0x7feae8050f20) at core/event.cpp:55 #14 0x00007feb1862f87e in clover::hard_event::hard_event(clover::command_queue&, unsigned int, clover::ref_vector const&, std::function) (this=0x7feae8050f20, q=..., command=, deps=..., action=...) at core/event.cpp:126 #15 0x00007feb1862cf93 in clover::create&, std::function >(clover::command_queue&, int&&, clover::ref_vector&, std::function&&) (as#0=..., as#1=as#1@entry=, as#2=..., as#3=as#3@entry=) at ./util/pointer.hpp:230 #16 0x00007feb18627549 in clEnqueueReadBuffer (d_q=0x9677e8, d_mem=0x888b40, blocking=, offset=, size=, ptr=0x6096b8, num_deps=0, d_deps=0x0, rd_ev=0x0) at api/transfer.cpp:296 #17 0x00007feb1909b1ba in clEnqueueReadBuffer () from /usr/lib64/libOpenCL.so.1 #18 0x00000000004025c0 in worker (device_obj=0x6095e8) at ./engine2.c:405 #19 0x00007feb18e7b40c in start_thread () from /lib64/libpthread.so.0 #20 0x00007feb18bc5ebf in clone () from /lib64/libc.so.6