(gdb) info threads Id Target Id Frame 1 Thread 0x7ffff7489100 (LWP 10198) "radeon_test" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38 2 Thread 0x7ffff1735700 (LWP 10202) "radeon_tes:cs0" futex_wait_cancelable (private=0, expected=0, futex_word=0x55555562516c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 3 Thread 0x7ffff0ddf700 (LWP 10203) "radeon_:disk$0" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555555af3b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 4 Thread 0x7fffebfff700 (LWP 10204) "radeon_:disk$1" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555555af3b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 5 Thread 0x7fffeb7fe700 (LWP 10205) "radeon_:disk$2" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555555af3b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 6 Thread 0x7fffeaffd700 (LWP 10206) "radeon_:disk$3" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555555af3b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 7 Thread 0x7fffea7fc700 (LWP 10207) "radeon_tes:sh0" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555556264d8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 8 Thread 0x7fffe9ffb700 (LWP 10208) "radeon_tes:sh1" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555556264d8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 9 Thread 0x7fffe97fa700 (LWP 10209) "radeon_tes:sh2" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555556264dc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 10 Thread 0x7fffe8ff9700 (LWP 10210) "radeon_tes:sh3" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555556264dc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 11 Thread 0x7fffc7fff700 (LWP 10211) "radeon_tes:sh4" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555556264dc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 12 Thread 0x7fffc77fe700 (LWP 10212) "radeon_tes:sh5" futex_wait_cancelable (private=0, expected=0, futex_word=0x5555556264dc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 13 Thread 0x7fffc6ffd700 (LWP 10213) "radeon_t:shlo0" futex_wait_cancelable (private=0, expected=0, futex_word=0x555555626be0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 14 Thread 0x7fffc67fc700 (LWP 10214) "radeon_t:shlo1" futex_wait_cancelable (private=0, expected=0, futex_word=0x555555626be0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 15 Thread 0x7fffc5ffb700 (LWP 10215) "radeon_t:shlo2" futex_wait_cancelable (private=0, expected=0, futex_word=0x555555626be0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 16 Thread 0x7fffc57fa700 (LWP 10216) "radeon_t:shlo3" futex_wait_cancelable (private=0, expected=0, futex_word=0x555555626be0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 * 17 Thread 0x7fffc4ff9700 (LWP 10217) "radeon_test" __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 (gdb) thr 1 (gdb) bt #0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38 #1 0x00007ffff5bc692b in sys_futex (val3=-1, addr2=0x0, timeout=0x0, val1=2, op=9, addr1=0x7fffac000bc0) at ../src/util/futex.h:50 #2 futex_wait (timeout=0x0, value=2, addr=0x7fffac000bc0) at ../src/util/futex.h:50 #3 do_futex_fence_wait (fence=fence@entry=0x7fffac000bc0, timeout=timeout@entry=false, abs_timeout=abs_timeout@entry=0) at ../src/util/u_queue.c:120 #4 0x00007ffff5bc7109 in _util_queue_fence_wait (fence=fence@entry=0x7fffac000bc0) at ../src/util/u_queue.c:135 #5 0x00007ffff57cb3ac in util_queue_fence_wait (fence=0x7fffac000bc0) at ../src/util/u_queue.h:161 #6 amdgpu_cs_add_fence_dependency (rws=0x5555555e93a0, pfence=0x7fffac000b80, dependency_flags=0) at ../src/gallium/winsys/amdgpu/drm/amdgpu_cs.c:1190 #7 0x00007ffff5787121 in si_add_fence_dependency (sctx=0x5555555e1c20, fence=0x7fffac000b80) at ../src/gallium/drivers/radeonsi/si_fence.c:184 #8 0x00007ffff5a810f3 in st_server_wait_sync (ctx=, obj=0x7fffac0010d0, flags=, timeout=) at ../src/mesa/state_tracker/st_cb_syncobj.c:155 #9 0x00007ffff589a53c in wait_sync (timeout=18446744073709551615, flags=0, syncObj=0x7fffac0010d0, ctx=0x555555a1b3f0) at ../src/mesa/main/syncobj.c:443 #10 _mesa_WaitSync (sync=, flags=, timeout=) at ../src/mesa/main/syncobj.c:443 #11 0x000055555555be7c in run () at radeon_mesa_shared_context_freeze.cpp:196 #12 0x000055555555bf67 in main (argc=1, argv=0x7fffffffe188) at radeon_mesa_shared_context_freeze.cpp:211 (gdb) thr 17 (gdb) bt 10 #0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 #1 0x00007ffff7f30764 in __GI___pthread_mutex_lock (mutex=0x55555556fae0 <_textureMutex>) at ../nptl/pthread_mutex_lock.c:80 #2 0x000055555555e874 in __gthread_mutex_lock (__mutex=0x55555556fae0 <_textureMutex>) at /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:749 #3 0x000055555555ebc0 in std::mutex::lock (this=0x55555556fae0 <_textureMutex>) at /usr/include/c++/9/bits/std_mutex.h:100 #4 0x0000555555560c25 in std::unique_lock::lock (this=0x7fffc4ff8960) at /usr/include/c++/9/bits/unique_lock.h:141 #5 0x000055555556024d in std::unique_lock::unique_lock (this=0x7fffc4ff8960, __m=...) at /usr/include/c++/9/bits/unique_lock.h:71 #6 0x000055555555bc96 in textureUploadRun () at radeon_mesa_shared_context_freeze.cpp:168