[Bug 36242] New: valgrind shows several warnings/leaks in d3dx9_36/tests/core.c

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 2 23:29:36 CDT 2014


https://bugs.winehq.org/show_bug.cgi?id=36242

            Bug ID: 36242
           Summary: valgrind shows several warnings/leaks in
                    d3dx9_36/tests/core.c
           Product: Wine
           Version: 1.7.18
          Hardware: x86
                OS: Linux
            Status: NEW
          Keywords: download, source, testcase
          Severity: normal
          Priority: P2
         Component: directx-d3dx9
          Assignee: wine-bugs at winehq.org
          Reporter: austinenglish at gmail.com

==26485== Use of uninitialised value of size 4
==26485==    at 0x4E8A84FB: _itoa_word (in /usr/lib/libc-2.18.so)
==26485==    by 0x4E8ABB3E: vfprintf (in /usr/lib/libc-2.18.so)
==26485==    by 0x4E8D2452: vsnprintf (in /usr/lib/libc-2.18.so)
==26485==    by 0x4016DF9: wine_dbg_sprintf (debug.c:238)
==26485==    by 0x49A55BD: wine_dbgstr_point (debug.h:199)
==26485==    by 0x49A5ED2: ID3DXFontImpl_GetGlyphData (font.c:150)
==26485==    by 0x4C5AB29: test_ID3DXFont (core.c:506)
==26485==    by 0x4C5E997: func_core (core.c:1254)
==26485==    by 0x4CE82A0: run_test (test.h:584)
==26485==    by 0x4CE868F: main (test.h:654)
==26485==  Uninitialised value was created by a stack allocation
==26485==    at 0x4C58FDF: test_ID3DXFont (core.c:307)
==26485== 

also

==26485== 148 bytes in 1 blocks are possibly lost in loss record 589 of 925
==26485==    at 0x40087BA: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==26485==    by 0x7ABF6AF: ??? (in /usr/lib/libdrm_intel.so.1.0.0)
==26485==    by 0x7ABA294: drm_intel_bo_alloc (in
/usr/lib/libdrm_intel.so.1.0.0)
==26485==    by 0x75CB078: ??? (in /usr/lib/dri/i965_dri.so)
==26485==    by 0x75CB21C: ??? (in /usr/lib/dri/i965_dri.so)
==26485==    by 0x7349438: ??? (in /usr/lib/dri/i965_dri.so)
==26485==    by 0x70FF5AD: shared_dispatch_stub_682 (in
/usr/lib/libglapi.so.0.0.0)
==26485==    by 0x5D21517: buffer_direct_upload (buffer.c:677)
==26485==    by 0x5D222D2: buffer_internal_preload (buffer.c:871)
==26485==    by 0x5D228BC: wined3d_buffer_preload (buffer.c:934)
==26485==    by 0x5D2391D: wined3d_buffer_unmap (buffer.c:1120)
==26485==    by 0x5CB01D3: d3d9_device_DrawPrimitiveUP (device.c:2198)
==26485==    by 0x49DA863: d3dx9_sprite_Flush (sprite.c:462)
==26485==    by 0x4C58A3E: test_ID3DXSprite (core.c:261)
==26485==    by 0x4C5E98C: func_core (core.c:1253)
==26485==    by 0x4CE82A0: run_test (test.h:584)
==26485==    by 0x4CE868F: main (test.h:654)
==26485== 

and

==26591== 5,242,880 bytes in 1 blocks are definitely lost in loss record 925 of
925
==26591==    at 0x7AA86F1: ??? (in /usr/lib/libdrm_intel.so.1.0.0)
==26591==    by 0x7AA4378: drm_intel_bo_map (in /usr/lib/libdrm_intel.so.1.0.0)
==26591==    by 0x75B5114: ??? (in /usr/lib/dri/i965_dri.so)
==26591==    by 0x7331D3E: ??? (in /usr/lib/dri/i965_dri.so)
==26591==    by 0x70E3FAD: shared_dispatch_stub_477 (in
/usr/lib/libglapi.so.0.0.0)
==26591==    by 0x5DCA57F: wined3d_surface_map (surface.c:3086)
==26591==    by 0x5CAAB15: d3d9_surface_LockRect (surface.c:269)
==26591==    by 0x4FA909E: D3DXLoadSurfaceFromMemory (surface.c:1814)
==26591==    by 0x4FA94DA: D3DXLoadSurfaceFromSurface (surface.c:1905)
==26591==    by 0x4F96A12: D3DXRenderToSurface_EndScene (render.c:319)
==26591==    by 0x4C1C620: check_ID3DXRenderToSurface (core.c:762)
==26591==    by 0x4C1D90B: test_ID3DXRenderToSurface (core.c:1029)
==26591==    by 0x4C1E9AD: func_core (core.c:1256)
==26591==    by 0x4CA82A0: run_test (test.h:584)
==26591==    by 0x4CA868F: main (test.h:654)
==26591== 

and one possible leak:

==26831== 148 bytes in 1 blocks are possibly lost in loss record 591 of 919
==26831==    at 0x40087BA: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==26831==    by 0x7AAB6AF: ??? (in /usr/lib/libdrm_intel.so.1.0.0)
==26831==    by 0x7AA6294: drm_intel_bo_alloc (in
/usr/lib/libdrm_intel.so.1.0.0)
==26831==    by 0x75B7078: ??? (in /usr/lib/dri/i965_dri.so)
==26831==    by 0x75B74E1: ??? (in /usr/lib/dri/i965_dri.so)
==26831==    by 0x73332FA: ??? (in /usr/lib/dri/i965_dri.so)
==26831==    by 0x70E3BFD: shared_dispatch_stub_462 (in
/usr/lib/libglapi.so.0.0.0)
==26831==    by 0x5DC1265: surface_prepare_buffer (surface.c:563)
==26831==    by 0x5DC1759: surface_prepare_map_memory (surface.c:608)
==26831==    by 0x5DCA3A9: wined3d_surface_map (surface.c:3049)
==26831==    by 0x5CAAB15: d3d9_surface_LockRect (surface.c:269)
==26831==    by 0x4FA909E: D3DXLoadSurfaceFromMemory (surface.c:1814)
==26831==    by 0x4FA94DA: D3DXLoadSurfaceFromSurface (surface.c:1905)
==26831==    by 0x4F96A12: D3DXRenderToSurface_EndScene (render.c:319)
==26831==    by 0x4C1C620: check_ID3DXRenderToSurface (core.c:762)
==26831==    by 0x4C1D90B: test_ID3DXRenderToSurface (core.c:1029)
==26831==    by 0x4C1E9AD: func_core (core.c:1256)
==26831==    by 0x4CA82A0: run_test (test.h:584)
==26831==    by 0x4CA868F: main (test.h:654)
==26831==

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list