Bug 100882 - dri2_lookup_egl_image crash dure to __DRIimageLookupExtension *loader is NULL
Summary: dri2_lookup_egl_image crash dure to __DRIimageLookupExtension *loader is ...
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 17.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-29 10:11 UTC by comicfans44
Modified: 2019-09-18 20:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description comicfans44 2017-04-29 10:11:53 UTC
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
Comment 1 GitLab Migration User 2019-09-18 20:26:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1011.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.