Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When r300 compiler errors out because of small ALU, dæmon fills the entire memory and get killed by OOM #380

Open
illwieckz opened this issue Oct 5, 2020 · 1 comment

Comments

@illwieckz
Copy link
Member

When investigating #344 and #355, I noticed that when the driver prints this:

r300 FP: Compiler Error:
../src/gallium/drivers/r300/compiler/r300_fragprog_emit.c::emit_alu(): Too many ALU instructions
Using a dummy shader instead.
r300 FP: Compiler Error:
build_loop_info: Cannot find condition for if
Using a dummy shader instead.

The engine only returns because OOM kills it… after it has filled entirely the memory:

[  637.629275] Out of memory: Killed process 19327 (daemon) total-vm:10518364kB, anon-rss:4617956kB, file-rss:0kB, shmem-rss:8188kB, UID:1000 pgtables:14976kB oom_score_adj:0
[  638.631831] oom_reaper: reaped process 19327 (daemon), now anon-rss:0kB, file-rss:0kB, shmem-rss:8400kB

With htop open in a terminal, we can see the memory usage growing until it's full and the OOM killer terminates the engine.

@illwieckz
Copy link
Member Author

This is what happens when I kill daemon whiles it fills memory:

…
^5Debug: CL_InitCGame: 42.01s
^5Debug: Going from CS_PRIMED to CS_ACTIVE for ^4ill^7wie^1ckz [granger]
^4ill^7wie^1ckz [granger]^* entered the game
r300 FP: Compiler Error:
../src/gallium/drivers/r300/compiler/r300_fragprog_emit.c::emit_alu(): Too many ALU instructions
Using a dummy shader instead.
r300 FP: Compiler Error:
build_loop_info: Cannot find condition for if
Using a dummy shader instead.
Thread 2 "daemon" received signal SIGTERM, Terminated.
[Switching to Thread 0x7ffff3f52700 (LWP 166692)]
0x00007ffff6edc361 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, 
    flags=flags@entry=0, req=req@entry=0x7ffff3f517c0, 
    rem=rem@entry=0x7ffff3f517c0)
    at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
48	../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory.
(gdb) thread apply all backtrace
Thread 20 (Thread 0x7fffafcd3700 (LWP 167340)):
#0  __libc_recvmsg (flags=0, msg=0x7fffafccf810, fd=33) at ../sysdeps/unix/sysv/linux/recvmsg.c:28
#1  __libc_recvmsg (fd=33, msg=0x7fffafccf810, flags=0) at ../sysdeps/unix/sysv/linux/recvmsg.c:25
#2  0x00007fffacb41d84 in NaClReceiveDatagram (handle=33, message=0x7fffafccf910, flags=0) at /home/illwieckz/dev/buildme-unvanquished/Daemon/libs/nacl/native_client/src/shared/imc/linux/nacl_imc.cc:168
#3  0x00007fffac9af795 in IPC::InternalRecvMsg (handle=33, reader=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Primitives.cpp:373
#4  0x00007fffac9afd6c in IPC::Socket::RecvMsg (this=0x7fffadf764e0 <VM::rootChannel>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Primitives.cpp:457
#5  0x00007fffac9243da in IPC::Channel::RecvMsg (this=0x7fffadf764e0 <VM::rootChannel>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:111
#6  0x00007fffac92444f in IPC::Channel::RecvReplyMsg (this=0x7fffadf764e0 <VM::rootChannel>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:121
#7  0x00007fffac938506 in IPC::detail::SendMsg<void (&)(unsigned int, Util::Reader), IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)69>, std::vector<unsigned char, std::allocator<unsigned char> >, int, int>, IPC::Reply<int>, std::vector<unsigned char, std::allocator<unsigned char> >&, int&, int&, int&> (channel=..., messageHandler=@0x7fffac804aa6: {void (unsigned int, class Util::Reader)} 0x7fffac804aa6 <VM::VMHandleSyscall(unsigned int, Util::Reader)>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:168
#8  0x00007fffac92c50d in IPC::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)69>, std::vector<unsigned char, std::allocator<unsigned char> >, int, int>, IPC::Reply<int> >, void (&)(unsigned int, Util::Reader), std::vector<unsigned char, std::allocator<unsigned char> >&, int&, int&, int&> (channel=..., messageHandler=@0x7fffac804aa6: {void (unsigned int, class Util::Reader)} 0x7fffac804aa6 <VM::VMHandleSyscall(unsigned int, Util::Reader)>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:234
#9  0x00007fffac927799 in VM::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)69>, std::vector<unsigned char, std::allocator<unsigned char> >, int, int>, IPC::Reply<int> >, std::vector<unsigned char, std::allocator<unsigned char> >&, int&, int&, int&> () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/shared/VMMain.h:49
#10 0x00007fffac922893 in trap_R_GenerateTexture (data=0x7fff8726ee30 "\377\377\377", x=128, y=256) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/shared/client/cg_api.cpp:535
#11 0x00007fffac8ced85 in DaemonRenderInterface::GenerateTexture (this=0x7fffadf6dcf0 <renderInterface>, texture_handle=@0x7fffafccfe88: 140733193388032, source=0x7fff8726ee30 "\377\377\377", source_dimensions=...) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/src/cgame/rocket/rocket.cpp:249
#12 0x00007fffacaa16ae in Rocket::Core::TextureResource::Load (this=0x7fff85835fc0, render_interface=0x7fffadf6dcf0 <renderInterface>) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/TextureResource.cpp:156
#13 0x00007fffacaa1262 in Rocket::Core::TextureResource::GetHandle (this=0x7fff85835fc0, render_interface=0x7fffadf6dcf0 <renderInterface>) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/TextureResource.cpp:61
#14 0x00007fffaca98239 in Rocket::Core::Texture::GetHandle (this=0x7fff85809690, render_interface=0x7fffadf6dcf0 <renderInterface>) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/Texture.cpp:80
#15 0x00007fffaca5d97c in Rocket::Core::Geometry::Render (this=0x7fff85c413f0, translation=...) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/Geometry.cpp:131
#16 0x00007fffacb1a968 in Rocket::Core::ElementTextDefault::OnRender (this=0x7fff8724f120) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/ElementTextDefault.cpp:135
#17 0x00007fffac9ff3d3 in Rocket::Core::Element::Render (this=0x7fff8724f120) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/Element.cpp:184
#18 0x00007fffac9ff415 in Rocket::Core::Element::Render (this=0x7fff87118330) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/Element.cpp:189
#19 0x00007fffac9ff415 in Rocket::Core::Element::Render (this=0x7fff85a19930) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/Element.cpp:189
#20 0x00007fffac9ee4ee in Rocket::Core::Context::Render (this=0x7fff85a19750) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/libs/libRocket/Source/Core/Context.cpp:161
#21 0x00007fffac8bb5c9 in Rocket_Render () at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/src/cgame/rocket/rocket.cpp:449
#22 0x00007fffac8606eb in CG_Rocket_Frame (state=...) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/src/cgame/cg_rocket.cpp:649
#23 0x00007fffac8048ee in VM::<lambda(cgClientState_t)>::operator()(cgClientState_t) const (__closure=0x7fffafcd2737, cs=...) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/src/cgame/cg_api.cpp:85
#24 0x00007fffac8074e7 in Util::apply_impl<VM::VMHandleSyscall(uint32_t, Util::Reader)::<lambda(cgClientState_t)>, std::tuple<cgClientState_t&&>, 0>(VM::<lambda(cgClientState_t)> &&, std::tuple<cgClientState_t&&> &&, Util::seq<0>) (func=..., tuple=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/Util.h:125
#25 0x00007fffac807004 in Util::apply<VM::VMHandleSyscall(uint32_t, Util::Reader)::<lambda(cgClientState_t)>, std::tuple<cgClientState_t&&> >(VM::<lambda(cgClientState_t)> &&, std::tuple<cgClientState_t&&> &&) (func=..., tuple=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/Util.h:130
#26 0x00007fffac8061c7 in IPC::detail::HandleMsg<VM::VMHandleSyscall(uint32_t, Util::Reader)::<lambda(cgClientState_t)>, IPC::Message<IPC::Id<0, 9>, cgClientState_t>, IPC::Reply<> >(IPC::Channel &, IPC::SyncMessage<IPC::Message<IPC::Id<0, 9>, cgClientState_t>, IPC::Reply<> >, Util::Reader, VM::<lambda(cgClientState_t)> &&) (channel=..., reader=..., func=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:217
#27 0x00007fffac805401 in IPC::HandleMsg<IPC::SyncMessage<IPC::Message<IPC::Id<0, 9>, cgClientState_t> >, VM::VMHandleSyscall(uint32_t, Util::Reader)::<lambda(cgClientState_t)> >(IPC::Channel &, Util::Reader, VM::<lambda(cgClientState_t)> &&) (channel=..., reader=..., func=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:241
#28 0x00007fffac804c71 in VM::VMHandleSyscall (id=9, reader=...) at /home/illwieckz/dev/buildme-unvanquished/Unvanquished/src/cgame/cg_api.cpp:84
#29 0x00007fffac98ada4 in CommonInit (rootSocket=33) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/shared/VMMain.cpp:66
#30 0x00007fffac98af26 in vmMain (rootSocket=33) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/shared/VMMain.cpp:104
#31 0x000055555593e05f in VM::<lambda()>::operator()(void) const (__closure=0x555557f75c98) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/framework/VirtualMachine.cpp:353
#32 0x000055555593f887 in std::__invoke_impl<void, VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> >(std::__invoke_other, VM::<lambda()> &&) (__f=...) at /usr/include/c++/9/bits/invoke.h:60
#33 0x000055555593f828 in std::__invoke<VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> >(VM::<lambda()> &&) (__fn=...) at /usr/include/c++/9/bits/invoke.h:95
#34 0x000055555593f7c6 in std::thread::_Invoker<std::tuple<VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> > >::_M_invoke<0>(std::_Index_tuple<0>) (this=0x555557f75c98) at /usr/include/c++/9/thread:244
#35 0x000055555593f787 in std::thread::_Invoker<std::tuple<VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> > >::operator()(void) (this=0x555557f75c98) at /usr/include/c++/9/thread:251
#36 0x000055555593f75c in std::thread::_State_impl<std::thread::_Invoker<std::tuple<VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> > > >::_M_run(void) (this=0x555557f75c90) at /usr/include/c++/9/thread:195
#37 0x00007ffff7253cb4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#38 0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#39 0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 19 (Thread 0x7fff8d135700 (LWP 167338)):
#0  __libc_recvmsg (flags=0, msg=0x7fff8d134490, fd=48) at ../sysdeps/unix/sysv/linux/recvmsg.c:28
#1  __libc_recvmsg (fd=48, msg=0x7fff8d134490, flags=0) at ../sysdeps/unix/sysv/linux/recvmsg.c:25
#2  0x00007fffb0f488aa in NaClReceiveDatagram (handle=48, message=0x7fff8d134590, flags=0) at /home/illwieckz/dev/buildme-unvanquished/Daemon/libs/nacl/native_client/src/shared/imc/linux/nacl_imc.cc:168
#3  0x00007fffb0f0a80d in IPC::InternalRecvMsg (handle=48, reader=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Primitives.cpp:373
#4  0x00007fffb0f0ade4 in IPC::Socket::RecvMsg (this=0x7fffb10a6040 <VM::rootChannel>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Primitives.cpp:457
#5  0x00007fffb0ea4fc4 in IPC::Channel::RecvMsg (this=0x7fffb10a6040 <VM::rootChannel>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:111
#6  0x00007fffb0ee57ea in CommonInit (rootSocket=48) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/shared/VMMain.cpp:61
#7  0x00007fffb0ee59c6 in vmMain (rootSocket=48) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/shared/VMMain.cpp:104
#8  0x000055555593e05f in VM::<lambda()>::operator()(void) const (__closure=0x55555958e298) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/framework/VirtualMachine.cpp:353
#9  0x000055555593f887 in std::__invoke_impl<void, VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> >(std::__invoke_other, VM::<lambda()> &&) (__f=...) at /usr/include/c++/9/bits/invoke.h:60
#10 0x000055555593f828 in std::__invoke<VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> >(VM::<lambda()> &&) (__fn=...) at /usr/include/c++/9/bits/invoke.h:95
#11 0x000055555593f7c6 in std::thread::_Invoker<std::tuple<VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> > >::_M_invoke<0>(std::_Index_tuple<0>) (this=0x55555958e298) at /usr/include/c++/9/thread:244
#12 0x000055555593f787 in std::thread::_Invoker<std::tuple<VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> > >::operator()(void) (this=0x55555958e298) at /usr/include/c++/9/thread:251
#13 0x000055555593f75c in std::thread::_State_impl<std::thread::_Invoker<std::tuple<VM::CreateInProcessNativeVM(std::pair<IPC::Socket, IPC::Socket>, Str::StringRef, VM::VMBase::InProcessInfo&)::<lambda()> > > >::_M_run(void) (this=0x55555958e290) at /usr/include/c++/9/thread:195
#14 0x00007ffff7253cb4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#15 0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#16 0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fffafed4700 (LWP 166705)):
#0  futex_abstimed_wait_cancelable (private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x555556a0a820) at ../sysdeps/nptl/futex-internal.h:320
#1  do_futex_wait (sem=sem@entry=0x555556a0a820, abstime=0x0, clockid=0) at sem_waitcommon.c:112
#2  0x00007ffff70014e8 in __new_sem_wait_slow (sem=0x555556a0a820, abstime=0x0, clockid=0) at sem_waitcommon.c:184
#3  0x00007ffff75f5fe9 in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#4  0x00007ffff75bb2dd in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#5  0x00007ffff75f5b57 in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#6  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7fffb00d5700 (LWP 166704)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffa800865c) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fffa8009c20, cond=0x7fffa8008630) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7fffa8008630, mutex=0x7fffa8009c20) at pthread_cond_wait.c:638
#3  0x00007ffff6bf787c in pa_threaded_mainloop_wait () from /lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007ffff75ef496 in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#5  0x00007ffff75f5b57 in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#6  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fffc8902700 (LWP 166703)):
#0  0x00007ffff6f1196f in __GI___poll (fds=0x7fffa8009d60, nfds=3, timeout=316) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff6bf71d6 in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007ffff6be8841 in pa_mainloop_poll () from /lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007ffff6be8ec3 in pa_mainloop_iterate () from /lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007ffff6be8f70 in pa_mainloop_run () from /lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007ffff6bf711d in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007ffff648467c in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#7  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fffc93fa700 (LWP 166699)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555556975298) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555556975248, cond=0x555556975270) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x555556975270, mutex=0x555556975248) at pthread_cond_wait.c:638
#3  0x00007fffd01ee62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#4  0x00007fffd01ee23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#5  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fffc9bfb700 (LWP 166698)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555556975298) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555556975248, cond=0x555556975270) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x555556975270, mutex=0x555556975248) at pthread_cond_wait.c:638
#3  0x00007fffd01ee62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#4  0x00007fffd01ee23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#5  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fffca3fc700 (LWP 166697)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555556975298) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555556975248, cond=0x555556975270) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x555556975270, mutex=0x555556975248) at pthread_cond_wait.c:638
#3  0x00007fffd01ee62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#4  0x00007fffd01ee23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#5  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fffcabfd700 (LWP 166696)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555556975298) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555556975248, cond=0x555556975270) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x555556975270, mutex=0x555556975248) at pthread_cond_wait.c:638
#3  0x00007fffd01ee62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#4  0x00007fffd01ee23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#5  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fffcb553700 (LWP 166695)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555556974cec) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555556974c98, cond=0x555556974cc0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x555556974cc0, mutex=0x555556974c98) at pthread_cond_wait.c:638
#3  0x00007fffd01ee62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#4  0x00007fffd01ee23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#5  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7ffff2941700 (LWP 166693)):
#0  0x00007ffff700249f in __libc_accept (fd=4, addr=..., len=0x0) at ../sysdeps/unix/sysv/linux/accept.c:26
#1  0x0000555555938aa0 in Sys::ReadSingletonSocket () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/framework/System.cpp:242
#2  0x000055555593c8d0 in std::__invoke_impl<void, void (*)()> (__f=@0x5555567b08c8: 0x555555938a6e <Sys::ReadSingletonSocket()>) at /usr/include/c++/9/bits/invoke.h:60
#3  0x000055555593c868 in std::__invoke<void (*)()> (__fn=@0x5555567b08c8: 0x555555938a6e <Sys::ReadSingletonSocket()>) at /usr/include/c++/9/bits/invoke.h:95
#4  0x000055555593c7fa in std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul> (this=0x5555567b08c8) at /usr/include/c++/9/thread:244
#5  0x000055555593c7b7 in std::thread::_Invoker<std::tuple<void (*)()> >::operator() (this=0x5555567b08c8) at /usr/include/c++/9/thread:251
#6  0x000055555593c788 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run (this=0x5555567b08c0) at /usr/include/c++/9/thread:195
#7  0x00007ffff7253cb4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7ffff3f52700 (LWP 166692)):
#0  0x00007ffff6edc361 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7ffff3f517c0, rem=rem@entry=0x7ffff3f517c0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
#1  0x00007ffff6ee1eb7 in __GI___nanosleep (requested_time=requested_time@entry=0x7ffff3f517c0, remaining=remaining@entry=0x7ffff3f517c0) at nanosleep.c:27
#2  0x00007ffff6ee1dee in __sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#3  0x00005555559392a1 in Sys::SignalThread () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/framework/System.cpp:373
#4  0x000055555593c8d0 in std::__invoke_impl<void, void (*)()> (__f=@0x5555567b17c8: 0x555555939164 <Sys::SignalThread()>) at /usr/include/c++/9/bits/invoke.h:60
#5  0x000055555593c868 in std::__invoke<void (*)()> (__fn=@0x5555567b17c8: 0x555555939164 <Sys::SignalThread()>) at /usr/include/c++/9/bits/invoke.h:95
#6  0x000055555593c7fa in std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul> (this=0x5555567b17c8) at /usr/include/c++/9/thread:244
#7  0x000055555593c7b7 in std::thread::_Invoker<std::tuple<void (*)()> >::operator() (this=0x5555567b17c8) at /usr/include/c++/9/thread:251
#8  0x000055555593c788 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run (this=0x5555567b17c0) at /usr/include/c++/9/thread:195
#9  0x00007ffff7253cb4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007ffff6ff7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007ffff6f1e103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ffff4f56c00 (LWP 166064)):
#0  0x00007fffd04e72b1 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#1  0x00007fffd04f0eab in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#2  0x00007fffd04f1629 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#3  0x00007fffd04de2e4 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#4  0x00007fffd04de395 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#5  0x00007fffd04ed6bc in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#6  0x00007fffd04eab73 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#7  0x00007fffd04eb9c5 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#8  0x00007fffd04d68aa in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#9  0x00007fffd04cfbc0 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#10 0x00007fffd03f626a in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#11 0x00007fffcfe9bbc7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#12 0x00007fffd00dc48d in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#13 0x00007fffd00dc547 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#14 0x000055555585cbf3 in Tess_DrawArrays (elementType=0) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/renderer/tr_shade.cpp:324
#15 0x00005555557e08f6 in RB_RenderPostDepth () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/renderer/tr_backend.cpp:2846
#16 0x00005555557e6729 in RB_RenderView (depthPass=true) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/renderer/tr_backend.cpp:4659
#17 0x00005555557e9df5 in DrawViewCommand::ExecuteSelf (this=0x7fffd51d3a34) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/renderer/tr_backend.cpp:5674
#18 0x00005555557ea502 in RB_ExecuteRenderCommands (data=0x7fffd51d304c) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/renderer/tr_backend.cpp:5918
#19 0x00005555558046d0 in R_IssueRenderCommands (runPerformanceCounters=false) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/renderer/tr_cmds.cpp:183
#20 0x0000555555804760 in R_SyncRenderThread () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/renderer/tr_cmds.cpp:209
#21 0x000055555581df0b in RE_GenerateTexture (pic=0x55555dc220b0 "\377\377\377", width=128, height=256) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/renderer/tr_image.cpp:2966
#22 0x00005555556e7eaa in CGameVM::<lambda(std::vector<unsigned char, std::allocator<unsigned char> >, int, int, qhandle_t&)>::operator()(std::vector<unsigned char, std::allocator<unsigned char> >, int, int, qhandle_t &) const (__closure=0x7fffffffd668, data=std::vector of length 131072, capacity 131072 = {...}, x=128, y=256, handle=@0x7fffffffd504: 0) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/client/cl_cgame.cpp:1366
#23 0x00005555556f9ec7 in Util::apply_impl<CGameVM::QVMSyscall(int, Util::Reader&, IPC::Channel&)::<lambda(std::vector<unsigned char>, int, int, qhandle_t&)>, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >&&, int&&, int&&, int&>, 0, 1, 2, 3>(CGameVM::<lambda(std::vector<unsigned char, std::allocator<unsigned char> >, int, int, qhandle_t&)> &&, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >&&, int&&, int&&, int&> &&, Util::seq<0, 1, 2, 3>) (func=..., tuple=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/Util.h:125
#24 0x00005555556f77bc in Util::apply<CGameVM::QVMSyscall(int, Util::Reader&, IPC::Channel&)::<lambda(std::vector<unsigned char>, int, int, qhandle_t&)>, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >&&, int&&, int&&, int&> >(CGameVM::<lambda(std::vector<unsigned char, std::allocator<unsigned char> >, int, int, qhandle_t&)> &&, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >&&, int&&, int&&, int&> &&) (func=..., tuple=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/Util.h:130
#25 0x00005555556f37da in IPC::detail::HandleMsg<CGameVM::QVMSyscall(int, Util::Reader&, IPC::Channel&)::<lambda(std::vector<unsigned char>, int, int, qhandle_t&)>, IPC::Message<IPC::Id<0, 69>, std::vector<unsigned char, std::allocator<unsigned char> >, int, int>, IPC::Reply<int> >(IPC::Channel &, IPC::SyncMessage<IPC::Message<IPC::Id<0, 69>, std::vector<unsigned char, std::allocator<unsigned char> >, int, int>, IPC::Reply<int> >, Util::Reader, CGameVM::<lambda(std::vector<unsigned char, std::allocator<unsigned char> >, int, int, qhandle_t&)> &&) (channel=..., reader=..., func=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:217
#26 0x00005555556ed0bb in IPC::HandleMsg<IPC::SyncMessage<IPC::Message<IPC::Id<0, 69>, std::vector<unsigned char, std::allocator<unsigned char> >, int, int>, IPC::Reply<int> >, CGameVM::QVMSyscall(int, Util::Reader&, IPC::Channel&)::<lambda(std::vector<unsigned char>, int, int, qhandle_t&)> >(IPC::Channel &, Util::Reader, CGameVM::<lambda(std::vector<unsigned char, std::allocator<unsigned char> >, int, int, qhandle_t&)> &&) (channel=..., reader=..., func=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:241
#27 0x00005555556e927a in CGameVM::QVMSyscall (this=0x555556001480 <cgvm>, index=69, reader=..., channel=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/client/cl_cgame.cpp:1365
#28 0x00005555556e7048 in CGameVM::Syscall (this=0x555556001480 <cgvm>, id=69, reader=..., channel=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/client/cl_cgame.cpp:1101
#29 0x00005555556fe413 in VM::VMBase::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<> >, cgClientState_t&>(cgClientState_t&)::{lambda(unsigned int, Util::Reader)#1}::operator()(unsigned int, Util::Reader) (this=0x555556001480 <cgvm>, id=69, reader=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/framework/VirtualMachine.h:142
#30 0x0000555555705242 in IPC::detail::SendMsg<VM::VMBase::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<> >, cgClientState_t&>(cgClientState_t&)::{lambda(unsigned int, Util::Reader)#1}&, IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<>, cgClientState_t&>(IPC::Channel&, VM::VMBase::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<> >, cgClientState_t&>(cgClientState_t&)::{lambda(unsigned int, Util::Reader)#1}&, IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<> >, cgClientState_t&) (channel=..., messageHandler=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:174
#31 0x00005555556ffff1 in IPC::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<> >, VM::VMBase::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<> >, cgClientState_t&>(cgClientState_t&)::{lambda(unsigned int, Util::Reader)#1}, cgClientState_t&>(IPC::Channel&, VM::VMBase::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<> >, cgClientState_t&>(cgClientState_t&)::{lambda(unsigned int, Util::Reader)#1}&&, cgClientState_t&) (channel=..., messageHandler=...) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/common/IPC/Channel.h:234
#32 0x00005555556fe4ed in VM::VMBase::SendMsg<IPC::SyncMessage<IPC::Message<IPC::Id<(unsigned short)0, (unsigned short)9>, cgClientState_t>, IPC::Reply<> >, cgClientState_t&>(cgClientState_t&) (this=0x555556001480 <cgvm>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/framework/VirtualMachine.h:140
#33 0x00005555556e6f9b in CGameVM::CGameRocketFrame (this=0x555556001480 <cgvm>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/client/cl_cgame.cpp:1088
#34 0x00005555557559de in SCR_DrawScreenField () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/client/cl_scrn.cpp:303
#35 0x0000555555755a69 in SCR_UpdateScreen () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/client/cl_scrn.cpp:343
#36 0x00005555557435c5 in CL_Frame (msec=200) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/client/cl_main.cpp:2556
#37 0x0000555555659c69 in Com_Frame () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/qcommon/common.cpp:1015
#38 0x000055555575a6c5 in Application::ClientApplication::Frame (this=0x5555560266c0 <Application::GetApp()::app>) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/client/ClientApplication.cpp:84
#39 0x00005555558fc4e8 in Application::Frame () at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/framework/Application.cpp:73
#40 0x000055555593a935 in main (argc=30, argv=0x7fffffffe898) at /home/illwieckz/dev/buildme-unvanquished/Daemon/src/engine/framework/System.cpp:688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant