From mboxrd@z Thu Jan 1 00:00:00 1970 From: Knut Petersen Subject: Re: glxinfo / glxgears segfault again Date: Sat, 17 Sep 2011 16:09:51 +0200 Message-ID: <4E74AA2F.9040805@t-online.de> References: <4E748F2F.9040006@t-online.de> <20110917123121.GB2856@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailout07.t-online.de (mailout07.t-online.de [194.25.134.83]) by gabe.freedesktop.org (Postfix) with ESMTP id AE65F9E7B5 for ; Sat, 17 Sep 2011 07:09:56 -0700 (PDT) In-Reply-To: <20110917123121.GB2856@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: intel-gfx List-Id: intel-gfx@lists.freedesktop.org Am 17.09.2011 14:31, schrieb Daniel Vetter: > Yeah, the i915g drivers has probably a few memory corruption issues left. > Can you recompile with debug support (--enable-debug) and run glxgears in > valgrind and then post the output? Maybe also file a bug against the i915 > gallium driver on freedesktop.org. > > Thanks, Daniel > I recompiled mesa/mesa using =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D util/modular/build.sh $PREFIX -o mesa/mesa --confflags "--enable-debug --e= nable-kdrive --with-dri-drivers=3Di915 --with-gallium-drivers=3Di915,swras= t --localstatedir=3D/var" and ran glxinfo: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D name of display: :0 couldn't open libtxc_dxtn.so, software DXTn compression/decompression unava= ilable i915_drm_buffer.c:86:i915_drm_buffer_create_tiled: Assertion `0' failed. Trace/Breakpoint ausgel=F6st knut@golem:~> valgrind glxinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D3995=3D=3D Memcheck, a memory error detector =3D=3D3995=3D=3D Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward e= t al. =3D=3D3995=3D=3D Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyrig= ht info =3D=3D3995=3D=3D Command: glxinfo =3D=3D3995=3D=3D name of display: :0 =3D=3D3995=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D3995=3D=3D at 0x4B662B0: i915_screen_create (i915_screen.c:406) =3D=3D3995=3D=3D by 0x4B199B7: create_screen (target.c:18) =3D=3D3995=3D=3D by 0x4B1F61A: dri2_init_screen (dri2.c:648) =3D=3D3995=3D=3D by 0x4B1B6BB: dri2CreateNewScreen (dri_util.c:906) =3D=3D3995=3D=3D by 0x410E87B: dri2CreateScreen (dri2_glx.c:891) =3D=3D3995=3D=3D by 0x40E8BC9: __glXInitialize (glxext.c:780) =3D=3D3995=3D=3D by 0x40E4A9D: glXChooseVisual (glxcmds.c:176) =3D=3D3995=3D=3D by 0x8049186: mesa_hack (glxinfo.c:658) =3D=3D3995=3D=3D by 0x428EC2D: (below main) (in /lib/libc-2.11.3.so) =3D=3D3995=3D=3D =3D=3D3995=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D3995=3D=3D at 0x4B662B2: i915_screen_create (i915_screen.c:406) =3D=3D3995=3D=3D by 0x4B199B7: create_screen (target.c:18) =3D=3D3995=3D=3D by 0x4B1F61A: dri2_init_screen (dri2.c:648) =3D=3D3995=3D=3D by 0x4B1B6BB: dri2CreateNewScreen (dri_util.c:906) =3D=3D3995=3D=3D by 0x410E87B: dri2CreateScreen (dri2_glx.c:891) =3D=3D3995=3D=3D by 0x40E8BC9: __glXInitialize (glxext.c:780) =3D=3D3995=3D=3D by 0x40E4A9D: glXChooseVisual (glxcmds.c:176) =3D=3D3995=3D=3D by 0x8049186: mesa_hack (glxinfo.c:658) =3D=3D3995=3D=3D by 0x428EC2D: (below main) (in /lib/libc-2.11.3.so) =3D=3D3995=3D=3D =3D=3D3995=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D3995=3D=3D at 0x4B6630D: i915_screen_create (i915_screen.c:406) =3D=3D3995=3D=3D by 0x4B199B7: create_screen (target.c:18) =3D=3D3995=3D=3D by 0x4B1F61A: dri2_init_screen (dri2.c:648) =3D=3D3995=3D=3D by 0x4B1B6BB: dri2CreateNewScreen (dri_util.c:906) =3D=3D3995=3D=3D by 0x410E87B: dri2CreateScreen (dri2_glx.c:891) =3D=3D3995=3D=3D by 0x40E8BC9: __glXInitialize (glxext.c:780) =3D=3D3995=3D=3D by 0x40E4A9D: glXChooseVisual (glxcmds.c:176) =3D=3D3995=3D=3D by 0x8049186: mesa_hack (glxinfo.c:658) =3D=3D3995=3D=3D by 0x428EC2D: (below main) (in /lib/libc-2.11.3.so) =3D=3D3995=3D=3D couldn't open libtxc_dxtn.so, software DXTn compression/decompression unava= ilable i915_drm_buffer.c:86:i915_drm_buffer_create_tiled: Assertion `0' failed. =3D=3D3995=3D=3D =3D=3D3995=3D=3D Process terminating with default action of signal 5 (SIGTR= AP) =3D=3D3995=3D=3D at 0x4E41977: _debug_assert_fail (u_debug.c:285) =3D=3D3995=3D=3D by 0x4B22F76: i915_drm_buffer_create_tiled (i915_drm_bu= ffer.c:86) =3D=3D3995=3D=3D by 0x4B680D0: i915_texture_create (i915_resource_textur= e.c:984) =3D=3D3995=3D=3D by 0x4B66472: i915_resource_create (i915_resource.c:15) =3D=3D3995=3D=3D by 0x4DF2838: draw_install_aaline_stage (draw_pipe_aali= ne.c:419) =3D=3D3995=3D=3D by 0x4B6ADD2: i915_create_context (i915_context.c:174) =3D=3D3995=3D=3D by 0x4BD176C: st_api_create_context (st_manager.c:684) =3D=3D3995=3D=3D by 0x4B20853: dri_create_context (dri_context.c:92) =3D=3D3995=3D=3D by 0x4B1BB28: dri2CreateNewContext (dri_util.c:687) =3D=3D3995=3D=3D by 0x410ECC5: dri2_create_context (dri2_glx.c:203) =3D=3D3995=3D=3D by 0x40E4FDD: CreateContext (glxcmds.c:276) =3D=3D3995=3D=3D by 0x40E5345: glXCreateContext (glxcmds.c:380) =3D=3D3995=3D=3D =3D=3D3995=3D=3D HEAP SUMMARY: =3D=3D3995=3D=3D in use at exit: 693,093 bytes in 1,006 blocks =3D=3D3995=3D=3D total heap usage: 1,681 allocs, 675 frees, 860,301 bytes= allocated =3D=3D3995=3D=3D =3D=3D3995=3D=3D LEAK SUMMARY: =3D=3D3995=3D=3D definitely lost: 24 bytes in 1 blocks =3D=3D3995=3D=3D indirectly lost: 0 bytes in 0 blocks =3D=3D3995=3D=3D possibly lost: 4,437 bytes in 127 blocks =3D=3D3995=3D=3D still reachable: 688,632 bytes in 878 blocks =3D=3D3995=3D=3D suppressed: 0 bytes in 0 blocks =3D=3D3995=3D=3D Rerun with --leak-check=3Dfull to see details of leaked me= mory =3D=3D3995=3D=3D =3D=3D3995=3D=3D For counts of detected and suppressed errors, rerun with: = -v =3D=3D3995=3D=3D Use --track-origins=3Dyes to see where uninitialised value= s come from =3D=3D3995=3D=3D ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 23 fr= om 8) Trace/Breakpoint ausgel=F6st Never heard about libtxc_dxtn but found it at freedesktop.org. After cloning, building and installing libtxc_dxtn: golem:/home/knut/git/libtxc_dxtn # valgrind glxinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D12510=3D=3D Memcheck, a memory error detector =3D=3D12510=3D=3D Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward = et al. =3D=3D12510=3D=3D Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyri= ght info =3D=3D12510=3D=3D Command: glxinfo =3D=3D12510=3D=3D name of display: :0 =3D=3D12510=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D12510=3D=3D at 0x4B652B0: i915_screen_create (i915_screen.c:406) =3D=3D12510=3D=3D by 0x4B189B7: create_screen (target.c:18) =3D=3D12510=3D=3D by 0x4B1E61A: dri2_init_screen (dri2.c:648) =3D=3D12510=3D=3D by 0x4B1A6BB: dri2CreateNewScreen (dri_util.c:906) =3D=3D12510=3D=3D by 0x40E787B: dri2CreateScreen (dri2_glx.c:891) =3D=3D12510=3D=3D by 0x40C1BC9: __glXInitialize (glxext.c:780) =3D=3D12510=3D=3D by 0x40BDA9D: glXChooseVisual (glxcmds.c:176) =3D=3D12510=3D=3D by 0x8049186: mesa_hack (glxinfo.c:658) =3D=3D12510=3D=3D by 0x428EC2D: (below main) (in /lib/libc-2.11.3.so) =3D=3D12510=3D=3D =3D=3D12510=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D12510=3D=3D at 0x4B652B2: i915_screen_create (i915_screen.c:406) =3D=3D12510=3D=3D by 0x4B189B7: create_screen (target.c:18) =3D=3D12510=3D=3D by 0x4B1E61A: dri2_init_screen (dri2.c:648) =3D=3D12510=3D=3D by 0x4B1A6BB: dri2CreateNewScreen (dri_util.c:906) =3D=3D12510=3D=3D by 0x40E787B: dri2CreateScreen (dri2_glx.c:891) =3D=3D12510=3D=3D by 0x40C1BC9: __glXInitialize (glxext.c:780) =3D=3D12510=3D=3D by 0x40BDA9D: glXChooseVisual (glxcmds.c:176) =3D=3D12510=3D=3D by 0x8049186: mesa_hack (glxinfo.c:658) =3D=3D12510=3D=3D by 0x428EC2D: (below main) (in /lib/libc-2.11.3.so) =3D=3D12510=3D=3D =3D=3D12510=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D12510=3D=3D at 0x4B6530D: i915_screen_create (i915_screen.c:406) =3D=3D12510=3D=3D by 0x4B189B7: create_screen (target.c:18) =3D=3D12510=3D=3D by 0x4B1E61A: dri2_init_screen (dri2.c:648) =3D=3D12510=3D=3D by 0x4B1A6BB: dri2CreateNewScreen (dri_util.c:906) =3D=3D12510=3D=3D by 0x40E787B: dri2CreateScreen (dri2_glx.c:891) =3D=3D12510=3D=3D by 0x40C1BC9: __glXInitialize (glxext.c:780) =3D=3D12510=3D=3D by 0x40BDA9D: glXChooseVisual (glxcmds.c:176) =3D=3D12510=3D=3D by 0x8049186: mesa_hack (glxinfo.c:658) =3D=3D12510=3D=3D by 0x428EC2D: (below main) (in /lib/libc-2.11.3.so) =3D=3D12510=3D=3D i915_drm_buffer.c:86:i915_drm_buffer_create_tiled: Assertion `0' failed. =3D=3D12510=3D=3D =3D=3D12510=3D=3D Process terminating with default action of signal 5 (SIGT= RAP) =3D=3D12510=3D=3D at 0x4E40977: _debug_assert_fail (u_debug.c:285) =3D=3D12510=3D=3D by 0x4B21F76: i915_drm_buffer_create_tiled (i915_drm_b= uffer.c:86) =3D=3D12510=3D=3D by 0x4B670D0: i915_texture_create (i915_resource_textu= re.c:984) =3D=3D12510=3D=3D by 0x4B65472: i915_resource_create (i915_resource.c:15) =3D=3D12510=3D=3D by 0x4DF1838: draw_install_aaline_stage (draw_pipe_aal= ine.c:419) =3D=3D12510=3D=3D by 0x4B69DD2: i915_create_context (i915_context.c:174) =3D=3D12510=3D=3D by 0x4BD076C: st_api_create_context (st_manager.c:684) =3D=3D12510=3D=3D by 0x4B1F853: dri_create_context (dri_context.c:92) =3D=3D12510=3D=3D by 0x4B1AB28: dri2CreateNewContext (dri_util.c:687) =3D=3D12510=3D=3D by 0x40E7CC5: dri2_create_context (dri2_glx.c:203) =3D=3D12510=3D=3D by 0x40BDFDD: CreateContext (glxcmds.c:276) =3D=3D12510=3D=3D by 0x40BE345: glXCreateContext (glxcmds.c:380) =3D=3D12510=3D=3D =3D=3D12510=3D=3D HEAP SUMMARY: =3D=3D12510=3D=3D in use at exit: 693,841 bytes in 1,010 blocks =3D=3D12510=3D=3D total heap usage: 1,438 allocs, 428 frees, 857,456 byte= s allocated =3D=3D12510=3D=3D =3D=3D12510=3D=3D LEAK SUMMARY: =3D=3D12510=3D=3D definitely lost: 24 bytes in 1 blocks =3D=3D12510=3D=3D indirectly lost: 0 bytes in 0 blocks =3D=3D12510=3D=3D possibly lost: 4,437 bytes in 127 blocks =3D=3D12510=3D=3D still reachable: 689,380 bytes in 882 blocks =3D=3D12510=3D=3D suppressed: 0 bytes in 0 blocks =3D=3D12510=3D=3D Rerun with --leak-check=3Dfull to see details of leaked m= emory =3D=3D12510=3D=3D =3D=3D12510=3D=3D For counts of detected and suppressed errors, rerun with:= -v =3D=3D12510=3D=3D Use --track-origins=3Dyes to see where uninitialised valu= es come from =3D=3D12510=3D=3D ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 24 f= rom 9) cu, knut