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

program sometimes deadlocks at startup #3521

Closed
DorpsGek opened this issue Jan 12, 2010 · 2 comments
Closed

program sometimes deadlocks at startup #3521

DorpsGek opened this issue Jan 12, 2010 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

SmatZ opened the ticket and wrote:

r18780

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)

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3521
@DorpsGek
Copy link
Member Author

SmatZ wrote:

Safely reproducible by pressing Ctrl+Q before the game starts


This comment was imported from FlySpray: https://bugs.openttd.org/task/3521#comment7344

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r18796


This comment was imported from FlySpray: https://bugs.openttd.org/task/3521

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant