[Mesa-dev] [Bug 106753] [Firefox/Wayland] multithread deadlock at eglSwapBuffers() / wl_display_dispatch_queue()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 31 08:48:19 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106753

            Bug ID: 106753
           Summary: [Firefox/Wayland] multithread deadlock at
                    eglSwapBuffers() / wl_display_dispatch_queue()
           Product: Mesa
           Version: 18.0
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: EGL/Wayland
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: stransky at redhat.com
        QA Contact: mesa-dev at lists.freedesktop.org

When eglSwapBuffers() is called from non-main thread but on the same display as
it's operated Gtk+/main loop the eglSwapBuffers() freezes at
wl_display_poll()/poll() on the display fd.

Mozilla bugzilla bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1464823

backtrace of the lock (Compositor thread):
#0  0x00007ffff6da6589 in poll () at /lib64/libc.so.6
#1  0x00007ffff28776a9 in poll (__timeout=-1, __nfds=1, __fds=0x7fffc6f65ce0)
at /usr/include/bits/poll2.h:46
#2  0x00007ffff28776a9 in wl_display_poll
(display=display at entry=0x7ffff6a61440, events=events at entry=1)
    at src/wayland-client.c:1717
#3  0x00007ffff287913c in wl_display_dispatch_queue (display=0x7ffff6a61440,
queue=0x7fffb49ec380)
    at src/wayland-client.c:1790
#4  0x00007fffc19650bb in  () at /lib64/libEGL_mesa.so.0
#5  0x00007fffc19560ea in eglSwapBuffers () at /lib64/libEGL_mesa.so.0
#6  0x00007fffe18010bd in mozilla::gl::GLLibraryEGL::fSwapBuffers(void*, void*)
const (this=0x7fffeb8c5780 <mozilla::gl::sEGLLibrary>, dpy=0x7fffc2db2800,
surface=0x7fffade57000) at
/home/komat/tmp676-trunk-gtk3/src2/gfx/gl/GLLibraryEGL.h:229
#7  0x00007fffe1811ad8 in mozilla::gl::GLContextEGL::SwapBuffers()
(this=0x7fffacc87000)
    at /home/komat/tmp676-trunk-gtk3/src2/gfx/gl/GLContextProviderEGL.cpp:501
#8  0x00007fffe18e4dc2 in mozilla::layers::CompositorOGL::EndFrame()
(this=0x7fffade6d400)
    at
/home/komat/tmp676-trunk-gtk3/src2/gfx/layers/opengl/CompositorOGL.cpp:1771
[...]

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180531/8dd964dc/attachment.html>


More information about the mesa-dev mailing list