https://bugs.winehq.org/show_bug.cgi?id=36340
Bug ID: 36340 Summary: valgrind shows several warnings in ddraw/tests/ddraw2.c Product: Wine Version: 1.7.18 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
==20452== Conditional jump or move depends on uninitialised value(s) ==20452== at 0x5842378: GetRegionData (region.c:889) ==20452== by 0x4E726BE: ddraw_clipper_GetClipList (clipper.c:213) ==20452== by 0x4EA05EE: ddraw_surface7_Blt (surface.c:1429) ==20452== by 0x4EA1FE6: ddraw_surface1_Blt (surface.c:1597) ==20452== by 0x4D9776E: test_clipper_blt (ddraw2.c:647) ==20452== by 0x4DA7C8E: func_ddraw2 (ddraw2.c:6398) ==20452== by 0x4E1C6DC: run_test (test.h:584) ==20452== by 0x4E1CACB: main (test.h:654) ==20452== Uninitialised value was created by a stack allocation ==20452== at 0x4EA0411: ddraw_surface7_Blt (surface.c:1503) ==20452==
and several leaks, e.g.,: ==20664== 20 bytes in 1 blocks are definitely lost in loss record 208 of 1,043 ==20664== at 0x7BC50A9B: RtlAllocateHeap (heap.c:255) ==20664== by 0x4E8EA7E: DirectDrawCreateClipper (ddraw.c:3274) ==20664== by 0x4E8EC42: ddraw7_CreateClipper (ddraw.c:3309) ==20664== by 0x4E8ED9F: ddraw2_CreateClipper (ddraw.c:3331) ==20664== by 0x4DA6CBC: test_clipper_blt (ddraw2.c:565) ==20664== by 0x4DB7C8E: func_ddraw2 (ddraw2.c:6398) ==20664== by 0x4E2C6DC: run_test (test.h:584) ==20664== by 0x4E2CACB: main (test.h:654) ==20664==
https://bugs.winehq.org/show_bug.cgi?id=36340
--- Comment #1 from Austin English austinenglish@gmail.com --- ==21703== 148 bytes in 1 blocks are possibly lost in loss record 708 of 1,035 ==21703== at 0x40087BA: calloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21703== by 0x74556AF: ??? (in /usr/lib/libdrm_intel.so.1.0.0) ==21703== by 0x7450294: drm_intel_bo_alloc (in /usr/lib/libdrm_intel.so.1.0.0) ==21703== by 0x707065F: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x70708A0: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x7099C03: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x709A629: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x709A8DE: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x70F8A3C: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x7098F1C: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6ED235D: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6EB9373: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6ECED2E: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6E8C6E0: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6A4C16D: glBindTexture (in /usr/lib/libGL.so.1.2.0) ==21703== by 0x5193576: context_bind_texture (context.c:2149) ==21703== by 0x52169D4: draw_textured_quad (surface.c:369) ==21703== by 0x521A2F6: surface_blt_to_drawable (surface.c:4306) ==21703== by 0x521BD7C: surface_load_location (surface.c:4888) ==21703== by 0x52221C6: surface_unmap (surface.c:851) ==21703==
==21703== 4,096 bytes in 1 blocks are definitely lost in loss record 995 of 1,035 ==21703== at 0x74546F1: ??? (in /usr/lib/libdrm_intel.so.1.0.0) ==21703== by 0x7450378: drm_intel_bo_map (in /usr/lib/libdrm_intel.so.1.0.0) ==21703== by 0x7065342: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x7066B14: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x706D23D: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6E9C781: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x706FE0E: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6E85789: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6E89DE9: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6A4CBD5: glTexSubImage2D (in /usr/lib/libGL.so.1.2.0) ==21703== by 0x52154E9: surface_upload_data (surface.c:1680) ==21703== by 0x5221447: surface_load_texture (surface.c:5062) ==21703== by 0x521BD1C: surface_load_location (surface.c:5155) ==21703== by 0x521DCCE: surface_load (surface.c:2192) ==21703== by 0x522B1F1: wined3d_texture_load (texture.c:539) ==21703== by 0x5183092: arbfp_blit_surface (arb_program_shader.c:7652) ==21703== by 0x52237B6: wined3d_surface_blt (surface.c:6260) ==21703== by 0x4EB0A52: ddraw_surface7_Blt (surface.c:1381) ==21703== by 0x4EB1FE6: ddraw_surface1_Blt (surface.c:1597) ==21703== by 0x4DA9393: test_p8_rgb_blit (ddraw2.c:5920) ==21703==
==21703== 4,096 bytes in 1 blocks are definitely lost in loss record 996 of 1,035 ==21703== at 0x74546F1: ??? (in /usr/lib/libdrm_intel.so.1.0.0) ==21703== by 0x7450378: drm_intel_bo_map (in /usr/lib/libdrm_intel.so.1.0.0) ==21703== by 0x7065342: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x7066B14: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x706D23D: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6E9C781: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x706FE0E: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6E85789: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6E89DE9: ??? (in /usr/lib/dri/i965_dri.so) ==21703== by 0x6A4CBD5: glTexSubImage2D (in /usr/lib/libGL.so.1.2.0) ==21703== by 0x52154E9: surface_upload_data (surface.c:1680) ==21703== by 0x5221447: surface_load_texture (surface.c:5062) ==21703== by 0x521BD1C: surface_load_location (surface.c:5155) ==21703== by 0x521DCCE: surface_load (surface.c:2192) ==21703== by 0x522B1F1: wined3d_texture_load (texture.c:539) ==21703== by 0x5194EC5: context_apply_blit_state (context.c:2246) ==21703== by 0x51830A1: arbfp_blit_surface (arb_program_shader.c:7654) ==21703== by 0x52237B6: wined3d_surface_blt (surface.c:6260) ==21703== by 0x4EB0A52: ddraw_surface7_Blt (surface.c:1381) ==21703== by 0x4EB1FE6: ddraw_surface1_Blt (surface.c:1597) ==21703==
https://bugs.winehq.org/show_bug.cgi?id=36340
--- Comment #2 from Austin English austinenglish@gmail.com --- ==24782== Invalid read of size 4 ==24782== at 0x4ECE803: update_heap_entry (glsl_shader.c:905) ==24782== by 0x4ECE93C: shader_glsl_update_float_vertex_constants (glsl_shader.c:939) ==24782== by 0x4EAAF2A: wined3d_device_set_vs_consts_f (device.c:2297) ==24782== by 0x4F372E0: wined3d_stateblock_apply (stateblock.c:962) ==24782== by 0x4B8A1ED: ddraw_set_cooperative_level (ddraw.c:951) ==24782== by 0x4B8A75C: ddraw2_SetCooperativeLevel (ddraw.c:1028) ==24782== by 0x4A88F26: test_coop_level_create_device_window (ddraw2.c:457) ==24782== by 0x4AAA2F2: func_ddraw2 (ddraw2.c:6562) ==24782== by 0x4B24F84: run_test (test.h:584) ==24782== by 0x4B25373: main (test.h:654) ==24782== Address 0xa128000 is 48,344 bytes inside a block of size 65,544 alloc'd ==24782== at 0x7BC4C75D: notify_alloc (heap.c:255) ==24782== by 0x7BC50FA1: RtlAllocateHeap (heap.c:1716) ==24782== by 0x4EDF5F4: constant_heap_init (glsl_shader.c:6412) ==24782== by 0x4EDF9BB: shader_glsl_alloc (glsl_shader.c:6481) ==24782== by 0x4EA56CD: wined3d_device_init_3d (device.c:882) ==24782== by 0x4B89381: ddraw_attach_d3d_device (ddraw.c:591) ==24782== by 0x4B895B9: ddraw_create_swapchain (ddraw.c:634) ==24782== by 0x4B8A124: ddraw_set_cooperative_level (ddraw.c:934) ==24782== by 0x4B8A75C: ddraw2_SetCooperativeLevel (ddraw.c:1028) ==24782== by 0x4A88F26: test_coop_level_create_device_window (ddraw2.c:457) ==24782== by 0x4AAA2F2: func_ddraw2 (ddraw2.c:6562) ==24782== by 0x4B24F84: run_test (test.h:584) ==24782== by 0x4B25373: main (test.h:654) ==24782==
https://bugs.winehq.org/show_bug.cgi?id=36340
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |valgrind
https://bugs.winehq.org/show_bug.cgi?id=36340
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=36340
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #4 from Austin English austinenglish@gmail.com --- Not seeing this in wine-4.0-407-gf7b3120991
https://bugs.winehq.org/show_bug.cgi?id=36340
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.2.