Bug #2751

Lock while throbber is spinning (long stayng)

Added by Leonid Protasov over 5 years ago. Updated over 5 years ago.

Status:FixedStart date:07/05/2015
Priority:HighDue date:
Assignee:Andreas Smas% Done:

100%

Category:General
Target version:4.10
Found in version:4.10.21 Platform:Linux

Description

You play movie and throbber freezes after some time. Movian is in freezed state. Debug output follows:

12:05:25.381: navigator       [INFO ]: Opening filmezz.eu:play:VidToMe:http%3A//adf.ly/376429/http%3A//filmezz.eu/link_to.php%3Fid%3D219986:Ex%20Machina%20%282015%29
^C[New Thread 0x7fff8dffb700 (LWP 10791)]
[New Thread 0x7fff8d0cb700 (LWP 10725)]
[New Thread 0x7fff8c8ca700 (LWP 10724)]
[New Thread 0x7fff8ffff700 (LWP 10679)]
[New Thread 0x7fff9481a700 (LWP 10678)]
[New Thread 0x7fff9501b700 (LWP 10677)]
[New Thread 0x7fff9581c700 (LWP 10676)]
[New Thread 0x7fff9601d700 (LWP 10675)]
[New Thread 0x7fffaca0a700 (LWP 10674)]
[New Thread 0x7fffaf7fd700 (LWP 10673)]
[New Thread 0x7fffafffe700 (LWP 10663)]
[New Thread 0x7fffbcff9700 (LWP 10661)]
[New Thread 0x7fffbd7fa700 (LWP 10660)]
[New Thread 0x7fffbdffb700 (LWP 10658)]
[New Thread 0x7fffbe7fc700 (LWP 10657)]
[New Thread 0x7fffbeffd700 (LWP 10656)]
[New Thread 0x7fffbffff700 (LWP 10654)]
[New Thread 0x7fffd8ff9700 (LWP 10653)]
[New Thread 0x7fffd97fa700 (LWP 10652)]
[New Thread 0x7fffd9ffb700 (LWP 10651)]
[New Thread 0x7fffda7fc700 (LWP 10650)]
[New Thread 0x7fffdaffd700 (LWP 10649)]
[New Thread 0x7fffdbfff700 (LWP 10647)]
[New Thread 0x7fffe08b7700 (LWP 10646)]
[New Thread 0x7fffe10b8700 (LWP 10645)]
[New Thread 0x7fffe18b9700 (LWP 10644)]
[New Thread 0x7fffe20ba700 (LWP 10643)]

Program received signal SIGINT, Interrupt.
0x00007ffff171f8dd in poll () at ../sysdeps/unix/syscall-template.S:81
81    ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) set height 0
(gdb) thread apply all bt

Thread 29 (Thread 0x7fffe20ba700 (LWP 10643)):
#0  0x00007ffff171f8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff5bbbebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff5bbbfcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffe20c227d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff5be2955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff23246aa in start_thread (arg=0x7fffe20ba700) at pthread_create.c:333
#6  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 28 (Thread 0x7fffe18b9700 (LWP 10644)):
#0  0x00007ffff171f8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff5bbbebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff5bbc242 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffee691af6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff5be2955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff23246aa in start_thread (arg=0x7fffe18b9700) at pthread_create.c:333
#6  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 27 (Thread 0x7fffe10b8700 (LWP 10645)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff2326cfd in __GI___pthread_mutex_lock ([email protected]=0x14e7640 <prop_mutex>) at ../nptl/pthread_mutex_lock.c:80
#2  0x0000000000555221 in prop_set_float_ex (p=0x7fffe0013690, [email protected]=0x0, v=0.244897962, [email protected]=0)
    at /home/lprot/showtime/src/prop/prop_core.c:3551
#3  0x00000000004c22d0 in cpu_monitor_do () at /home/lprot/showtime/src/arch/linux/linux_process_monitor.c:108
#4  0x00000000004c26db in timercb (c=<optimized out>, aux=<optimized out>)
    at /home/lprot/showtime/src/arch/linux/linux_process_monitor.c:168
#5  0x0000000000536677 in callout_loop (aux=0x14e7640 <prop_mutex>) at /home/lprot/showtime/src/misc/callout.c:132
#6  0x00000000004c4a20 in thread_trampoline (aux=0x163fae0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#7  0x00007ffff23246aa in start_thread (arg=0x7fffe10b8700) at pthread_create.c:333
#8  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 26 (Thread 0x7fffe08b7700 (LWP 10646)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff2326d82 in __GI___pthread_mutex_lock (mutex=0x7fffcc06b8c8) at ../nptl/pthread_mutex_lock.c:115
#2  0x00000000004ec569 in es_prop_lockmgr (ptr=<optimized out>, op=<optimized out>)
    at /home/lprot/showtime/src/ecmascript/es_prop.c:600
#3  0x0000000000550b2b in prop_dispatch_one ([email protected]=0x7ffff7f4c500, [email protected]=1)
    at /home/lprot/showtime/src/prop/prop_core.c:869
#4  0x0000000000550d9c in prop_global_dispatch_thread (aux=<optimized out>) at /home/lprot/showtime/src/prop/prop_core.c:1061
#5  0x00000000004c4a20 in thread_trampoline (aux=0x1640b00) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#6  0x00007ffff23246aa in start_thread (arg=0x7fffe08b7700) at pthread_create.c:333
#7  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 25 (Thread 0x7fffdbfff700 (LWP 10647)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000550d58 in prop_global_dispatch_thread (aux=<optimized out>) at /home/lprot/showtime/src/prop/prop_core.c:1015
#2  0x00000000004c4a20 in thread_trampoline (aux=0x1641090) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#3  0x00007ffff23246aa in start_thread (arg=0x7fffdbfff700) at pthread_create.c:333
#4  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 24 (Thread 0x7fffdaffd700 (LWP 10649)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00000000004e292f in flushthread (aux=<optimized out>) at /home/lprot/showtime/src/blobcache_file.c:879
#2  0x00000000004c4a20 in thread_trampoline (aux=0x16454d0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#3  0x00007ffff23246aa in start_thread (arg=0x7fffdaffd700) at pthread_create.c:333
#4  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 23 (Thread 0x7fffda7fc700 (LWP 10650)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000055641a in prop_courier_wait (pc=0x165ed30, q=0x7fffda7fb720, timeout=0)
    at /home/lprot/showtime/src/prop/prop_core.c:4839
#2  0x0000000000529cf0 in deco_thread (aux=0x165ed84) at /home/lprot/showtime/src/metadata/decoration.c:1249
#3  0x00000000004c4a20 in thread_trampoline (aux=0x165d0d0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fffda7fc700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 22 (Thread 0x7fffd9ffb700 (LWP 10651)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000055ec0f in service_probe_loop (aux=<optimized out>) at /home/lprot/showtime/src/service.c:479
#2  0x00000000004c4a20 in thread_trampoline (aux=0x1691110) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#3  0x00007ffff23246aa in start_thread (arg=0x7fffd9ffb700) at pthread_create.c:333
#4  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 21 (Thread 0x7fffd97fa700 (LWP 10652)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000523cbb in mp_dequeue_event (mp=0x16964d0) at /home/lprot/showtime/src/media/media.c:440
#2  0x0000000000549914 in player_thread (aux=<optimized out>) at /home/lprot/showtime/src/playqueue.c:1077
#3  0x00000000004c4a20 in thread_trampoline (aux=0x1696bb0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fffd97fa700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 20 (Thread 0x7fffd8ff9700 (LWP 10653)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00000000004fd5fb in indexer_thread (aux=<optimized out>) at /home/lprot/showtime/src/fileaccess/fa_indexer.c:298
#2  0x00000000004c4a20 in thread_trampoline (aux=0x1697370) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#3  0x00007ffff23246aa in start_thread (arg=0x7fffd8ff9700) at pthread_create.c:333
#4  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 19 (Thread 0x7fffbffff700 (LWP 10654)):
#0  0x00007ffff171f8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff6c28601 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007ffff6c19b41 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007ffff6c1a1de in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007ffff6c1a290 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007ffff6c28596 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007fffef5146c8 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-6.0.so
#7  0x00007ffff23246aa in start_thread (arg=0x7fffbffff700) at pthread_create.c:333
#8  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 18 (Thread 0x7fffbeffd700 (LWP 10656)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00000000004c4b81 in hts_cond_wait_timeout ([email protected]=0x14e78e0 <gconf+416>, [email protected]=0x14e78b8 <gconf+376>, 
    [email protected]=43200000) at /home/lprot/showtime/src/arch/posix/posix_threads.c:72
#2  0x00000000005628d4 in swthread (aux=<optimized out>) at /home/lprot/showtime/src/showtime.c:227
#3  0x00000000004c4a20 in thread_trampoline (aux=0x16a5c40) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fffbeffd700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 17 (Thread 0x7fffbe7fc700 (LWP 10657)):
#0  0x00007ffff171f8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff2f9c513 in avahi_simple_poll_run () from /usr/lib/x86_64-linux-gnu/libavahi-common.so.3
#2  0x00007ffff2f9c6e8 in avahi_simple_poll_iterate () from /usr/lib/x86_64-linux-gnu/libavahi-common.so.3
#3  0x000000000055e131 in avahi_thread (aux=<optimized out>) at /home/lprot/showtime/src/sd/avahi.c:416
#4  0x00000000004c4a20 in thread_trampoline (aux=0x170f0c0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#5  0x00007ffff23246aa in start_thread (arg=0x7fffbe7fc700) at pthread_create.c:333
#6  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 16 (Thread 0x7fffbdffb700 (LWP 10658)):
#0  0x00007ffff171f8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x000000000053fbf9 in poll (__timeout=<optimized out>, __nfds=4, __fds=0x7fffbdffa6f0)
    at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  asyncio_dopoll () at /home/lprot/showtime/src/networking/asyncio_posix.c:353
#3  0x00000000005405c5 in asyncio_thread (aux=<optimized out>) at /home/lprot/showtime/src/networking/asyncio_posix.c:564
#4  0x00000000004c4a20 in thread_trampoline (aux=0x1711d30) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#5  0x00007ffff23246aa in start_thread (arg=0x7fffbdffb700) at pthread_create.c:333
#6  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 15 (Thread 0x7fffbd7fa700 (LWP 10660)):
#0  0x00007ffff171f8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000000000546d95 in poll (__timeout=<optimized out>, __nfds=2, __fds=0x7fffbd7f9730)
    at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  ssdp_loop (log_fail=<optimized out>) at /home/lprot/showtime/src/networking/ssdp.c:486
#3  ssdp_thread (aux=<optimized out>) at /home/lprot/showtime/src/networking/ssdp.c:504
#4  0x00000000004c4a20 in thread_trampoline (aux=0x7fff98001490) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#5  0x00007ffff23246aa in start_thread (arg=0x7fffbd7fa700) at pthread_create.c:333
#6  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 14 (Thread 0x7fffbcff9700 (LWP 10661)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000056aee9 in task_thread (aux=<optimized out>) at /home/lprot/showtime/src/task.c:61
#2  0x00000000004c4a20 in thread_trampoline (aux=0x7fff980045e0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#3  0x00007ffff23246aa in start_thread (arg=0x7fffbcff9700) at pthread_create.c:333
#4  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 13 (Thread 0x7fffafffe700 (LWP 10663)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000056aee9 in task_thread (aux=<optimized out>) at /home/lprot/showtime/src/task.c:61
#2  0x00000000004c4a20 in thread_trampoline (aux=0x7fff98004940) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#3  0x00007ffff23246aa in start_thread (arg=0x7fffafffe700) at pthread_create.c:333
#4  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 12 (Thread 0x7fffaf7fd700 (LWP 10673)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000571262 in glw_cond_wait (gr=<optimized out>, c=<optimized out>) at /home/lprot/showtime/src/ui/glw/glw.c:67
#2  0x0000000000591b2b in font_render_thread (aux=0x171fc30) at /home/lprot/showtime/src/ui/glw/glw_text_bitmap.c:1269
#3  0x00000000004c4a20 in thread_trampoline (aux=0x1be2e30) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fffaf7fd700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7fffaca0a700 (LWP 10674)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000059324b in loader_get_work (la=<optimized out>, la=<optimized out>)
    at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:190
#2  loader_thread (aux=0x1c9e360) at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:231
#3  0x00000000004c4a20 in thread_trampoline (aux=0x1c7dd80) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fffaca0a700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7fff9601d700 (LWP 10675)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000059324b in loader_get_work (la=<optimized out>, la=<optimized out>)
    at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:190
#2  loader_thread (aux=0x1c5c590) at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:231
#3  0x00000000004c4a20 in thread_trampoline (aux=0x1c00fe0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fff9601d700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7fff9581c700 (LWP 10676)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000059324b in loader_get_work (la=<optimized out>, la=<optimized out>)
    at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:190
#2  loader_thread (aux=0x1c82d40) at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:231
#3  0x00000000004c4a20 in thread_trampoline (aux=0x1c884e0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fff9581c700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7fff9501b700 (LWP 10677)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000059324b in loader_get_work (la=<optimized out>, la=<optimized out>)
    at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:190
#2  loader_thread (aux=0x1c93100) at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:231
#3  0x00000000004c4a20 in thread_trampoline (aux=0x1c1baf0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fff9501b700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7fff9481a700 (LWP 10678)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000059324b in loader_get_work (la=<optimized out>, la=<optimized out>)
    at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:190
#2  loader_thread (aux=0x1c9b120) at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:231
#3  0x00000000004c4a20 in thread_trampoline (aux=0x1ba52f0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fff9481a700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7fff8ffff700 (LWP 10679)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000059324b in loader_get_work (la=<optimized out>, la=<optimized out>)
    at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:190
#2  loader_thread (aux=0x1c92c70) at /home/lprot/showtime/src/ui/glw/glw_texture_loader.c:231
#3  0x00000000004c4a20 in thread_trampoline (aux=0x1c41e70) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#4  0x00007ffff23246aa in start_thread (arg=0x7fff8ffff700) at pthread_create.c:333
#5  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7fff8c8ca700 (LWP 10724)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000550d58 in prop_global_dispatch_thread (aux=<optimized out>) at /home/lprot/showtime/src/prop/prop_core.c:1015
#2  0x00000000004c4a20 in thread_trampoline (aux=0x7fffc892ded0) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#3  0x00007ffff23246aa in start_thread (arg=0x7fff8c8ca700) at pthread_create.c:333
#4  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7fff8d0cb700 (LWP 10725)):
#0  [email protected]@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000550d58 in prop_global_dispatch_thread (aux=<optimized out>) at /home/lprot/showtime/src/prop/prop_core.c:1015
#2  0x00000000004c4a20 in thread_trampoline (aux=0x7fffc892cd10) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#3  0x00007ffff23246aa in start_thread (arg=0x7fff8d0cb700) at pthread_create.c:333
#4  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fff8dffb700 (LWP 10791)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff2326cfd in __GI___pthread_mutex_lock (mutex=0x14e7640 <prop_mutex>) at ../nptl/pthread_mutex_lock.c:80
#2  0x000000000054f453 in prop_ref_dec_traced (p=0x14e7640 <prop_mutex>, file=0x80 <error: Cannot access memory at address 0x80>, 
    line=0) at /home/lprot/showtime/src/prop/prop_core.c:253
#3  0x00000000004eb69c in call_finalizer (ptr=0x7ffff7fe4da0, type=4) at /home/lprot/showtime/src/ecmascript/es_native_obj.c:117
#4  es_native_finalizer (ctx=0x7fffcc0093f0) at /home/lprot/showtime/src/ecmascript/es_native_obj.c:134
#5  0x0000000000453ba8 in duk_handle_call (thr=0x7fffcc0093f0, num_stack_args=1, call_flags=0) at duk_js_call.c:1329
#6  0x000000000046f79e in duk__finalize_helper ([email protected]=0x7fffcc0093f0) at duk_hobject_finalizer.c:41
#7  0x000000000045477e in duk_handle_safe_call (thr=0x7fffcc0093f0, func=0x46f760 <duk__finalize_helper>, 
    num_stack_args=<optimized out>, num_stack_rets=1) at duk_js_call.c:1837
#8  0x000000000045801d in duk_hobject_run_finalizer (thr=0x7fffcc0093f0, obj=<optimized out>) at duk_hobject_finalizer.c:78
#9  0x0000000000454f1b in duk__run_object_finalizers (heap=0x7fffcc075170) at duk_heap_markandsweep.c:880
#10 duk_heap_mark_and_sweep ([email protected]=0x7fffcc075170, [email protected]=0) at duk_heap_markandsweep.c:1255
#11 0x0000000000455194 in duk__run_voluntary_gc (heap=0x7fffcc075170) at duk_heap_memory.c:32
#12 duk_heap_mem_alloc (heap=0x7fffcc075170, size=64) at duk_heap_memory.c:57
#13 0x00000000004553c5 in duk_hobject_alloc (heap=0x7fffcc075170, [email protected]=1342177344)
    at duk_hobject_alloc.c:58
#14 0x000000000045ccf0 in duk_push_object_helper ([email protected]=0x7fffcc0093f0, 
    [email protected]=1342177344, [email protected]=3) at duk_api_stack.c:3356
#15 0x000000000045cddf in duk_push_object ([email protected]=0x7fffcc0093f0) at duk_api_stack.c:3399
#16 0x00000000004eb8d8 in es_push_native_obj ([email protected]=0x7fffcc0093f0, [email protected]=0xffbea0 <es_native_prop>, 
    ptr=0x7fffbc13b6d0) at /home/lprot/showtime/src/ecmascript/es_native_obj.c:148
#17 0x00000000004ec274 in es_prop_get_child_duk (ctx=0x7fffcc0093f0) at /home/lprot/showtime/src/ecmascript/es_prop.c:243
#18 0x0000000000453ba8 in duk_handle_call ([email protected]=0x7fffcc0093f0, num_stack_args=2, call_flags=0) at duk_js_call.c:1329
#19 0x0000000000451fdc in duk_js_execute_bytecode ([email protected]=0x7fffcc0093f0) at duk_js_executor.c:3339
#20 0x0000000000453e84 in duk_handle_call (thr=0x7fffcc0093f0, num_stack_args=3, call_flags=0) at duk_js_call.c:1436
#21 0x0000000000456a5c in duk_hobject_getprop ([email protected]=0x7fffcc0093f0, tv_obj=0x7fff8dff8eb0, tv_key=0x7fff8dff8ec0)
    at duk_hobject_props.c:2172
#22 0x00000000004526d9 in duk_js_execute_bytecode ([email protected]=0x7fffcc0093f0) at duk_js_executor.c:2831
#23 0x0000000000453e84 in duk_handle_call (thr=0x7fffcc0093f0, num_stack_args=1, call_flags=0) at duk_js_call.c:1436
#24 0x00000000004565ca in duk_hobject_getprop ([email protected]=0x7fffcc0093f0, tv_obj=0x7fff8dff9390, tv_key=0x7fff8dff93a0)
    at duk_hobject_props.c:2387
#25 0x00000000004526d9 in duk_js_execute_bytecode ([email protected]=0x7fffcc0093f0) at duk_js_executor.c:2831
#26 0x0000000000453e84 in duk_handle_call (thr=0x7fffcc0093f0, num_stack_args=4, call_flags=0) at duk_js_call.c:1436
#27 0x000000000047312f in duk_bi_function_prototype_apply (ctx=0x7fffcc0093f0) at duk_bi_function.c:205
#28 0x0000000000453ba8 in duk_handle_call ([email protected]=0x7fffcc0093f0, num_stack_args=2, call_flags=0) at duk_js_call.c:1329
#29 0x0000000000451fdc in duk_js_execute_bytecode ([email protected]=0x7fffcc0093f0) at duk_js_executor.c:3339
#30 0x0000000000453e84 in duk_handle_call (thr=0x7fffcc0093f0, num_stack_args=3, call_flags=1) at duk_js_call.c:1436
#31 0x00000000004ed6a2 in ecmascript_openuri (page=0x14e7640 <prop_mutex>, url=0x19 <error: Cannot access memory at address 0x19>, 
    sync=-1073643651) at /home/lprot/showtime/src/ecmascript/es_route.c:220
#32 0x00000000004c7d0a in backend_open (page=0x7ffff7fe4b60, 
    url=0x7fffc0017f20 "filmezz.eu:play:VidToMe:http%3A//adf.ly/376429/http%3A//filmezz.eu/link_to.php%3Fid%3D219986:Ex%20Machina%20%282015%29", [email protected]=0) at /home/lprot/showtime/src/backend/backend.c:480
#33 0x000000000053f222 in nav_open_thread (aux=0x7fffc0037050) at /home/lprot/showtime/src/navigator.c:654
#34 0x00000000004c4a20 in thread_trampoline (aux=0x7fffc0030210) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#35 0x00007ffff23246aa in start_thread (arg=0x7fff8dffb700) at pthread_create.c:333
#36 0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fffaeffc700 (LWP 10671)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff2326cfd in __GI___pthread_mutex_lock ([email protected]=0x14e7640 <prop_mutex>) at ../nptl/pthread_mutex_lock.c:80
#2  0x00000000005553bc in prop_set_int_ex (p=0x7ffff7e787b0, skipme=0x0, v=0) at /home/lprot/showtime/src/prop/prop_core.c:3659
#3  0x00000000005755c3 in glw_prepare_frame (gr=0x171fc30, flags=0) at /home/lprot/showtime/src/ui/glw/glw.c:541
#4  0x00000000005aeaf8 in glw_x11_mainloop (gx11=0x171fc30) at /home/lprot/showtime/src/ui/glw/glw_x11.c:1186
#5  0x00000000005afa8a in glw_x11_thread (aux=0x171fc30) at /home/lprot/showtime/src/ui/glw/glw_x11.c:1335
#6  0x00000000004c4a20 in thread_trampoline (aux=0x1722800) at /home/lprot/showtime/src/arch/posix/posix_threads.c:178
#7  0x00007ffff23246aa in start_thread (arg=0x7fffaeffc700) at pthread_create.c:333
#8  0x00007ffff172aeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7ffff7fa9ec0 (LWP 10637)):
#0  0x00007ffff171f8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff5bbbebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff5bbbfcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff66dba71 in gtk_main_iteration () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4  0x00000000004487a0 in mainloop () at /home/lprot/showtime/src/arch/linux/linux_main.c:117
#5  main (argc=6, argv=0x7fffffffdef8) at /home/lprot/showtime/src/arch/linux/linux_main.c:178
(gdb) 

History

#1 Updated by Andreas Smas over 5 years ago

  • Status changed from New to Accepted

Thanks for debug output.

I know what's wrong but it's a bit of a scary fix.

#2 Updated by Andreas Smas over 5 years ago

  • Status changed from Accepted to Need feedback

I've a fix but i don't wanna commit it straight to stable.

Can you please checkout the prop-duktape-deadlock branch and test?

Just do

git fetch origin
git checkout prop-duktape-deadlock

and then the usual

make
build.linux/showtime ....

and just test that it doesn't break anything. I've tested around a bit and it seems ok. I'm pretty confident that it fixes the bug at hand although i've not been able to reproduce it myself.

#3 Updated by Leonid Protasov over 5 years ago

Will do.

#4 Updated by Leonid Protasov over 5 years ago

Leonid Protasov wrote:

Will do.

So far so good. IMHO can be released as testing.

#5 Updated by Leonid Protasov over 5 years ago

  • Status changed from Need feedback to Fixed
  • % Done changed from 0 to 100

Fixed in 4.10.22.

Also available in: Atom PDF