http://bugs.winehq.org/show_bug.cgi?id=26133
--- Comment #3 from Austin English austinenglish@gmail.com 2011-02-22 00:19:44 CST --- After that patch, I get: ==7162== 400 bytes in 1 blocks are definitely lost in loss record 676 of 823 ==7162== at 0x4024210: malloc (vg_replace_malloc.c:236) ==7162== by 0x51BD44D: XGetVisualInfo (in /usr/lib/libX11.so.6.3.0) ==7162== by 0x578A723: get_visual (fakeglx.c:544) ==7162== by 0x578BAC3: choose_visual (fakeglx.c:642) ==7162== by 0x578BD06: Fake_glXChooseVisual (fakeglx.c:1241) ==7162== by 0x578F9E8: glXChooseVisual (glxapi.c:197) ==7162== by 0x50DE7CE: X11DRV_WineGL_InitOpenglInfo (opengl.c:318) ==7162== by 0x50E08B8: has_opengl (opengl.c:519) ==7162== by 0x50E57E1: X11DRV_wglGetProcAddress (opengl.c:1848) ==7162== by 0x4CE600D: wglGetProcAddress (opengl.c:378) ==7162== by 0x4E6B49A: InitAdapters (in /home/austin/wine-git/dlls/wined3d/wined3d.dll.so) ==7162== by 0x4E6E66A: wined3d_init (directx.c:5289) ==7162== by 0x4F12F4E: wined3d_create (wined3d_main.c:93) ==7162== by 0x4DC8635: Direct3DCreate9 (d3d9_main.c:43) ==7162== by 0x48FAA67: func_surface (surface.c:521) ==7162== by 0x49022DA: run_test (test.h:556) ==7162== by 0x49026CC: main (test.h:624) ==7162==
==7162== 2,800 bytes in 1 blocks are definitely lost in loss record 786 of 823 ==7162== at 0x4024306: realloc (vg_replace_malloc.c:525) ==7162== by 0x51BD631: XGetVisualInfo (in /usr/lib/libX11.so.6.3.0) ==7162== by 0x578C5DA: Fake_glXGetFBConfigs (fakeglx.c:1971) ==7162== by 0x578E889: glXGetFBConfigs (glxapi.c:552) ==7162== by 0x50E2998: get_formats (opengl.c:939) ==7162== by 0x50E38A3: X11DRV_ChoosePixelFormat (opengl.c:1222) ==7162== by 0x4CE6D77: ChoosePixelFormat (painting.c:345) ==7162== by 0x4E539C8: WineD3D_CreateFakeGLContext (directx.c:283) ==7162== by 0x4E6D8D4: InitAdapters (directx.c:5067) ==7162== by 0x4E6E66A: wined3d_init (directx.c:5289) ==7162== by 0x4F12F4E: wined3d_create (wined3d_main.c:93) ==7162== by 0x4DC8635: Direct3DCreate9 (d3d9_main.c:43) ==7162== by 0x48FAA67: func_surface (surface.c:521) ==7162== by 0x49022DA: run_test (test.h:556) ==7162== by 0x49026CC: main (test.h:624) ==7162==
but those were there before, looks like a mesa problem. The invalid reads are fixed for me.