[Mesa-dev] [Bug 100882] dri2_lookup_egl_image crash dure to __DRIimageLookupExtension *loader is NULL

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Apr 29 10:11:53 UTC 2017


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

            Bug ID: 100882
           Summary: dri2_lookup_egl_image crash dure to
                    __DRIimageLookupExtension *loader  is NULL
           Product: Mesa
           Version: 17.0
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: comicfans44 at gmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

when calling eglImageTargetTexture2DOES, mesa crash in dri2_lookup_egl_image

dri2.c:774

   const __DRIimageLookupExtension *loader = screen->sPriv->dri2.image;
   __DRIimage *img;

   if (!loader->lookupEGLImage)   ---->   loader is NULL
      return NULL;


backtrace shows as following:



#0  0x00007f49673239f8 in dri2_lookup_egl_image (screen=<optimized out>,
handle=0x5) at dri2.c:774
#1  0x00007f4967321ccb in dri_get_egl_image (smapi=<optimized out>,
egl_image=<optimized out>, stimg=0x7f49258108a0) at dri_screen.c:329
#2  0x00007f49671e0a91 in st_manager_get_egl_image_surface (st=0x7f48f84b7a20,
eglimg=<optimized out>) at state_tracker/st_manager.c:850
#3  0x00007f4967190336 in st_egl_image_target_texture_2d (ctx=0x7f48f8482f00,
target=<optimized out>, texObj=0x7f48f84c9900, 
    texImage=0x7f48f84d3e00, image_handle=<optimized out>) at
state_tracker/st_cb_eglimage.c:165
#4  0x00007f4967114ea6 in _mesa_EGLImageTargetTexture2DOES (target=3553,
image=0x5) at main/teximage.c:3194
#5  0x00000000005629d2 in ColorBuffer::bindToTexture (this=0x7f4904400a30)
    at
/home/comicfans/.cache/pacaur/anbox-git/src/anbox/src/anbox/graphics/emugl/ColorBuffer.cpp:319
#6  0x0000000000510d9d in Renderer::bindColorBufferToTexture (this=0x1365c90,
p_colorbuffer=6)
    at
/home/comicfans/.cache/pacaur/anbox-git/src/anbox/src/anbox/graphics/emugl/Renderer.cpp:592
#7  0x0000000000580021 in renderControl_decoder_context_t::decode(void*,
unsigned long, IOStream*) ()
#8  0x00000000004aa375 in RenderThread::main (this=0x7f4908001470)
    at
/home/comicfans/.cache/pacaur/anbox-git/src/anbox/src/anbox/graphics/emugl/RenderThread.cpp:80
#9  0x0000000000584291 in emugl::Thread::thread_main(void*) ()
#10 0x00007f4973b9c2e7 in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007f4972ac654f in clone () from /usr/lib/libc.so.6


mesa version 17.0.4
with archlinux's patches (
https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/mesa)

while running application anbox

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


More information about the mesa-dev mailing list