https://bugs.winehq.org/show_bug.cgi?id=36096
Bug ID: 36096 Summary: valgrind shows leaks in d3d9/visual tests on i965 Product: Wine Version: 1.7.17 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com CC: stefan@codeweavers.com
Created attachment 48284 --> https://bugs.winehq.org/attachment.cgi?id=48284 valgrind log
==11646== 67 bytes in 4 blocks are definitely lost in loss record 412 of 1,049 ==11646== at 0x4006B11: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==11646== by 0x4E8E2B27: strdup (in /usr/lib/libc-2.18.so) ==11646== by 0x65D6C36: ??? (in /usr/lib/dri/i965_dri.so) ==11646== by 0x65DFCD0: ??? (in /usr/lib/dri/i965_dri.so) ==11646== by 0x65E932F: ??? (in /usr/lib/dri/i965_dri.so) ==11646== by 0x6476729: ??? (in /usr/lib/dri/i965_dri.so) ==11646== by 0x61EAC15: shared_dispatch_stub_482 (in /usr/lib/libglapi.so.0.0.0) ==11646== by 0x4EB2AD5: shader_glsl_compile (glsl_shader.c:330) ==11646== by 0x4EBF8F2: shader_glsl_generate_pshader (glsl_shader.c:4515) ==11646== by 0x4EC0087: find_glsl_pshader (glsl_shader.c:4694) ==11646== by 0x4EC39F4: set_glsl_shader_program (glsl_shader.c:5823) ==11646== by 0x4EC5096: shader_glsl_select (glsl_shader.c:6149) ==11646== by 0x4E85F12: context_apply_draw_state (context.c:2997) ==11646== by 0x4EAF1D6: draw_primitive (drawprim.c:664) ==11646== by 0x4E86685: wined3d_cs_exec_draw (cs.c:291) ==11646== by 0x4E87A33: wined3d_cs_st_submit (cs.c:893) ==11646== by 0x4E866F2: wined3d_cs_emit_draw (cs.c:308) ==11646== by 0x4E95FC3: wined3d_device_draw_primitive (device.c:3265) ==11646== by 0x4E1BB32: d3d8_device_DrawPrimitiveUP (device.c:2021) ==11646== by 0x4984BB2: cnd_test (visual.c:1482) ==11646==
among plenty of others.
I had to rebuild my libdrm with valgrind support for this to work, see https://bugs.freedesktop.org/show_bug.cgi?id=77863. After that, I can run glxgears with no valgrind issues in mesa itself (though glxgears leaks..).
https://bugs.winehq.org/show_bug.cgi?id=36096
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |36097
https://bugs.winehq.org/show_bug.cgi?id=36096
--- Comment #1 from Austin English austinenglish@gmail.com --- Looking more closely, I think this and bug 36113 are both in our glsl compiler.
https://bugs.winehq.org/show_bug.cgi?id=36096
--- Comment #2 from Austin English austinenglish@gmail.com --- There's also: ==16434== 4,096 bytes in 1 blocks are definitely lost in loss record 1,182 of 1,212 ==16434== at 0x6B9A6F1: ??? (in /usr/lib/libdrm_intel.so.1.0.0) ==16434== by 0x6B96378: drm_intel_bo_map (in /usr/lib/libdrm_intel.so.1.0.0) ==16434== by 0x683BF46: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x683C506: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x67C9D38: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x6886AFB: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x67B72B9: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x67CA70B: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x67CAC71: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x67CB661: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x67A9823: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x6520FED: ??? (in /usr/lib/dri/i965_dri.so) ==16434== by 0x62EB03D: shared_dispatch_stub_662 (in /usr/lib/libglapi.so.0.0.0) ==16434== by 0x4E45E5A: wined3d_surface_blt (surface.c:947) ==16434== by 0x4DC1961: wined3d_device_set_render_state (device.c:1895) ==16434== by 0x4D4C0AB: d3d9_device_SetRenderState (device.c:1671) ==16434== by 0x4BDAF76: func_visual (visual.c:15179) ==16434== by 0x4BDCD4C: run_test (test.h:584) ==16434== by 0x4BDD13B: main (test.h:654) ==16434==
https://bugs.winehq.org/show_bug.cgi?id=36096
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |valgrind
https://bugs.winehq.org/show_bug.cgi?id=36096
Stefan Dösinger stefandoesinger@gmx.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|stefan@codeweavers.com |stefandoesinger@gmx.at
https://bugs.winehq.org/show_bug.cgi?id=36096
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #3 from joaopa jeremielapuree@yahoo.fr --- What about this bug with current wine(3.20)?
https://bugs.winehq.org/show_bug.cgi?id=36096
--- Comment #4 from Austin English austinenglish@gmail.com --- ==25577== 1,704 bytes in 1 blocks are possibly lost in loss record 1,960 of 2,073 ==25577== at 0x40323A8: calloc (vg_replace_malloc.c:752) ==25577== by 0x68EF16A: _mesa_new_vao (arrayobj.c:295) ==25577== by 0x68EF232: gen_vertex_arrays (arrayobj.c:1089) ==25577== by 0x4E57EC8: wined3d_adapter_init_gl_caps (adapter_gl.c:3816) ==25577== by 0x4E59135: wined3d_adapter_gl_init (adapter_gl.c:4273) ==25577== by 0x4E9254F: wined3d_adapter_init (directx.c:2542) ==25577== by 0x4E959A1: wined3d_init (directx.c:2559) ==25577== by 0x4F0603F: wined3d_create (wined3d_main.c:109) ==25577== by 0x4E10AC2: d3d9_init (directx.c:601) ==25577== by 0x4E04935: Direct3DCreate9 (d3d9_main.c:45) ==25577== by 0x4CB7A07: func_visual (visual.c:24206) ==25577== by 0x4CB8183: run_test (test.h:617) ==25577== by 0x4CB8BC1: main (test.h:701) ==25577==
in 3.20
https://bugs.winehq.org/show_bug.cgi?id=36096
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |ABANDONED Status|NEW |RESOLVED
--- Comment #5 from Austin English austinenglish@gmail.com --- I no longer have this hardware.
https://bugs.winehq.org/show_bug.cgi?id=36096
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv@dawncrow.de
--- Comment #6 from André H. nerv@dawncrow.de --- closing abandoned