You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OTTD sometimes deadlocks at startup, probably related to threaded SDL
(gdb) info threads
4 Thread 0x7fffee864710 (LWP 8144) 0x00007ffff78c1aec in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
2 Thread 0x7fffefb35710 (LWP 7990) 0x00007ffff3c99c36 in poll () from /lib/libc.so.6
* 1 Thread 0x7ffff7fbc720 (LWP 7933) 0x00007ffff78be2e5 in pthread_join () from /lib/libpthread.so.0
(gdb) thread 1
[Switching to thread 1 (Thread 0x7ffff7fbc720 (LWP 7933))]# 0 0x00007ffff78be2e5 in pthread_join () from /lib/libpthread.so.0
(gdb) bt
# 0 0x00007ffff78be2e5 in pthread_join () from /lib/libpthread.so.0
# 1 0x00000000007c774b in ThreadObject_pthread::Join (this=0xe7cdf0) at /home/smatz/openttd-rev/src/thread/thread_pthread.cpp:51
# 2 0x0000000000818179 in VideoDriver_SDL::MainLoop (this=0xd70ca0) at /home/smatz/openttd-rev/src/video/sdl_v.cpp:605
# 3 0x00000000006e168b in ttd_main (argc=1, argv=0x7fffffffdc38) at /home/smatz/openttd-rev/src/openttd.cpp:752
# 4 0x00000000006f0ec2 in main (argc=1, argv=0x7fffffffdc38) at /home/smatz/openttd-rev/src/os/unix/unix.cpp:256
(gdb) thread 2
[Switching to thread 2 (Thread 0x7fffefb35710 (LWP 7990))]# 0 0x00007ffff3c99c36 in poll () from /lib/libc.so.6
(gdb) bt
# 0 0x00007ffff3c99c36 in poll () from /lib/libc.so.6
# 1 0x00007ffff03c3e10 in ?? () from /usr/lib/libasound.so.2
# 2 0x00007ffff03c40b3 in ?? () from /usr/lib/libasound.so.2
# 3 0x00007ffff03d00cb in snd_pcm_mmap_writei () from /usr/lib/libasound.so.2
# 4 0x00007ffff65e4eb8 in ?? () from /usr/lib/libSDL-1.2.so.0
# 5 0x00007ffff65b3cba in ?? () from /usr/lib/libSDL-1.2.so.0
# 6 0x00007ffff65bd127 in ?? () from /usr/lib/libSDL-1.2.so.0
# 7 0x00007ffff65ff689 in ?? () from /usr/lib/libSDL-1.2.so.0
# 8 0x00007ffff78bcb5c in start_thread () from /lib/libpthread.so.0
# 9 0x00007ffff3ca3cfd in clone () from /lib/libc.so.6
# 10 0x0000000000000000 in ?? ()
(gdb) thread 4
[Switching to thread 4 (Thread 0x7fffee864710 (LWP 8144))]# 0 0x00007ffff78c1aec in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
(gdb) bt
# 0 0x00007ffff78c1aec in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
# 1 0x00000000007c73bb in ThreadMutex_pthread::WaitForSignal (this=0xf58920) at /home/smatz/openttd-rev/src/thread/thread_pthread.cpp:128
# 2 0x000000000081748a in DrawSurfaceToScreenThread () at /home/smatz/openttd-rev/src/video/sdl_v.cpp:117
# 3 0x00000000007c77cf in ThreadObject_pthread::ThreadProc (this=0xe7cdf0) at /home/smatz/openttd-rev/src/thread/thread_pthread.cpp:73
# 4 0x00000000007c7889 in ThreadObject_pthread::stThreadProc (thr=0xe7cdf0) at /home/smatz/openttd-rev/src/thread/thread_pthread.cpp:61
# 5 0x00007ffff78bcb5c in start_thread () from /lib/libpthread.so.0
# 6 0x00007ffff3ca3cfd in clone () from /lib/libc.so.6
# 7 0x0000000000000000 in ?? ()
(gdb)
SmatZ opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/3521
The text was updated successfully, but these errors were encountered: