<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - dri2_lookup_egl_image crash dure to __DRIimageLookupExtension *loader is NULL"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100882">100882</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>dri2_lookup_egl_image crash dure to    __DRIimageLookupExtension *loader  is NULL
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>17.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>comicfans44@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 (
<a href="https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/mesa">https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/mesa</a>)

while running application anbox</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>