So the issue started again after updating graphics card drivers, so I managed to get the backtrace of all the threads.
(gdb) thread apply all backtrace
Thread 15 (Thread 0x7ffff7f17700 (LWP 971)):
#0 0x00007ffff50d991d in nanosleep () from /usr/lib/libc.so.6
#1 0x00007ffff51035e4 in usleep () from /usr/lib/libc.so.6
#2 0x00007ffff66f99ef in ?? () from /home/xpansive/games/SOMA/game/lib64/libfmodex.so
#3 0x00007ffff66f4ccb in ?? () from /home/xpansive/games/SOMA/game/lib64/libfmodex.so
#4 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#5 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 14 (Thread 0x7fffeaf90700 (LWP 970)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff66f9ea3 in ?? () from /home/xpansive/games/SOMA/game/lib64/libfmodex.so
#3 0x00007ffff66f4c9c in ?? () from /home/xpansive/games/SOMA/game/lib64/libfmodex.so
#4 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#5 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 13 (Thread 0x7ffff7fc3700 (LWP 969)):
#0 0x00007ffff50d991d in nanosleep () from /usr/lib/libc.so.6
#1 0x00007ffff51035e4 in usleep () from /usr/lib/libc.so.6
#2 0x00007ffff66f99ef in ?? () from /home/xpansive/games/SOMA/game/lib64/libfmodex.so
#3 0x00007ffff66f4ccb in ?? () from /home/xpansive/games/SOMA/game/lib64/libfmodex.so
#4 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#5 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 12 (Thread 0x7ffff7fcf700 (LWP 968)):
#0 0x00007ffff510118d in poll () from /usr/lib/libc.so.6
#1 0x00007fffdcd0f5e6 in ?? () from /usr/lib/libasound.so
#2 0x00007fffdcd13d8e in ?? () from /usr/lib/libasound.so
#3 0x00007fffdcd21dcb in ?? () from /usr/lib/libasound.so
#4 0x00007ffff66fa931 in ?? () from /home/xpansive/games/SOMA/game/lib64/libfmodex.so
#5 0x00007ffff66f4cbc in ?? () from /home/xpansive/games/SOMA/game/lib64/libfmodex.so
#6 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#7 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 11 (Thread 0x7fffed4d6700 (LWP 965)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000cf3444 in hpl::cAnimationManager::Run(hpl::iThread*) ()
#5 0x0000000000cf353a in non-virtual thunk to hpl::cAnimationManager::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 10 (Thread 0x7fffedcd7700 (LWP 964)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000d30604 in hpl::cMeshManager::Run(hpl::iThread*) ()
#5 0x0000000000d306fa in non-virtual thunk to hpl::cMeshManager::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 9 (Thread 0x7fffee4d8700 (LWP 963)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000d43fa0 in hpl::cTextureManager::Run(hpl::iThread*) ()
#5 0x0000000000d4469a in non-virtual thunk to hpl::cTextureManager::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 8 (Thread 0x7fffeecd9700 (LWP 962)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000e4de03 in hpl::cJobManager::GetJob(hpl::iJob**, bool) ()
#5 0x0000000000e4dd15 in hpl::cWorkerThread::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 7 (Thread 0x7fffef4da700 (LWP 961)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000e4de03 in hpl::cJobManager::GetJob(hpl::iJob**, bool) ()
#5 0x0000000000e4dd15 in hpl::cWorkerThread::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 6 (Thread 0x7fffefcdb700 (LWP 960)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000e4de03 in hpl::cJobManager::GetJob(hpl::iJob**, bool) ()
#5 0x0000000000e4dd15 in hpl::cWorkerThread::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 5 (Thread 0x7ffff04dc700 (LWP 959)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000e4de03 in hpl::cJobManager::GetJob(hpl::iJob**, bool) ()
#5 0x0000000000e4dd15 in hpl::cWorkerThread::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 4 (Thread 0x7ffff0cdd700 (LWP 958)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000e4de03 in hpl::cJobManager::GetJob(hpl::iJob**, bool) ()
#5 0x0000000000e4dd15 in hpl::cWorkerThread::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 3 (Thread 0x7ffff14de700 (LWP 957)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000e4de03 in hpl::cJobManager::GetJob(hpl::iJob**, bool) ()
#5 0x0000000000e4dd15 in hpl::cWorkerThread::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 2 (Thread 0x7ffff1cdf700 (LWP 956)):
#0 0x00007ffff5e6e2d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
#1 0x00007ffff5e6e384 in __new_sem_wait_slow.constprop.0 () from /usr/lib/libpthread.so.0
#2 0x00007ffff6161a9e in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#3 0x0000000001257b7a in hpl::cThreadSleepConditionSDL::Sleep() ()
#4 0x0000000000e4de03 in hpl::cJobManager::GetJob(hpl::iJob**, bool) ()
#5 0x0000000000e4dd15 in hpl::cWorkerThread::Run(hpl::iThread*) ()
#6 0x000000000125af9d in hpl::iThread::MainThreadFunc(void*) ()
#7 0x00007ffff60ffa7b in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#8 0x00007ffff6161a09 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#9 0x00007ffff5e664a4 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff510a13d in clone () from /usr/lib/libc.so.6
Thread 1 (Thread 0x7ffff7f9d7c0 (LWP 952)):
#0 0x00007ffff5e6f65d in nanosleep () from /usr/lib/libpthread.so.0
#1 0x00007ffff6165954 in ?? () from /home/xpansive/games/SOMA/game/lib64/libSDL2-2.0.so.0
#2 0x0000000000b5c6ea in hpl::cEngine::Run() ()
#3 0x00000000008e6c7e in hplMain(std::string const&) ()
#4 0x0000000000e8024a in main ()