[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#890846: marked as done (glClear causes memory leaks)



Your message dated Thu, 25 Jun 2020 07:49:09 +0000
with message-id <E1joMdB-000Gg7-Iq@fasolo.debian.org>
and subject line Bug#890846: fixed in mesa 20.1.2-1
has caused the Debian Bug report #890846,
regarding glClear causes memory leaks
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
890846: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890846
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---

Package: libgl1-mesa-dri:amd64

Version: 13.0.6-1+b2

Architecture: amd64

 

Debian Stretch

 

Hello,

 

during debugging a self-developed program I have noticed some memory leaks found with Valgrind, which are caused by OpenGL functions glClear and glXChooseVisual. I attach the valgrind report vg.txt and the file osal2_win_plugin_ogl_fct_scene_enter.c, in which the function glClear is called at line 25.

 

See also: https://community.amd.com/thread/168964

 

Best regards,

Christian Kuhn

 

==12332== Memcheck, a memory error detector
==12332== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==12332== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==12332== Command: ./rltest_linux -t uranus -w -v -b -f test.txt
==12332== 
==12332== Conditional jump or move depends on uninitialised value(s)
==12332==    at 0x4C32EA6: rawmemchr (vg_replace_strmem.c:1402)
==12332==    by 0x7973391: _IO_str_init_static_internal (strops.c:41)
==12332==    by 0x7966B66: vsscanf (iovsscanf.c:40)
==12332==    by 0x79612D6: sscanf (sscanf.c:32)
==12332==    by 0xA028E4A: ??? (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0)
==12332==    by 0xA029182: ??? (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0)
==12332==    by 0xA02CBF8: drmGetDevice (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0)
==12332==    by 0x5E172D6: ??? (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332==    by 0x5E16694: ??? (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332==    by 0x5DEA988: ??? (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332==    by 0x5DE6B9A: ??? (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332==    by 0x5DE6D02: glXChooseVisual (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332== 
==12332== 
==12332== Process terminating with default action of signal 27 (SIGPROF)
==12332==    at 0x79E753F: write_gmon (gmon.c:354)
==12332==    by 0x79E7CB9: _mcleanup (gmon.c:422)
==12332==    by 0x7932C7E: __cxa_finalize (cxa_finalize.c:56)
==12332==    by 0x111F52: ??? (in /home/christian/naiad/obranches/v0.1_prg/system/S3__ToolSuite/content/bin/rltest_linux)
==12332==    by 0x400FE79: _dl_fini (dl-fini.c:235)
==12332==    by 0x793290F: __run_exit_handlers (exit.c:83)
==12332==    by 0x7932969: exit (exit.c:105)
==12332==    by 0x791D2B7: (below main) (libc-start.c:325)
==12332== 
==12332== HEAP SUMMARY:
==12332==     in use at exit: 3,030,545 bytes in 907 blocks
==12332==   total heap usage: 11,528,711 allocs, 11,527,804 frees, 3,860,369,149 bytes allocated
==12332== 
==12332== 2,221 (448 direct, 1,773 indirect) bytes in 1 blocks are definitely lost in loss record 44 of 57
==12332==    at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
==12332==    by 0x10BB9021: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF2B24: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCCACC: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCD0C1: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8BBFB: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8D0D0: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8DE3D: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x1D7524: winOGLSceneEnterContext (osal2_win_plugin_ogl_fct_scene_enter.c:25)
==12332==    by 0x1ECC8D: gfxSystemDraw (graphics_system_draw.c:35)
==12332==    by 0x1DD4C7: winOGLPluginDraw (osal2_win_plugin_ogl_draw__linux.c:22)
==12332==    by 0x1DD529: winDeviceCallDrawFct (osal2_win_callfct_draw_internal__linux.c:24)
==12332== 
==12332== 2,221 (104 direct, 2,117 indirect) bytes in 1 blocks are definitely lost in loss record 45 of 57
==12332==    at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
==12332==    by 0x10BB9021: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BBC4C3: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF3209: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF3351: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF33B5: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCCAE3: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCD0C1: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8BBFB: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8D0D0: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8DE3D: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x1D7524: winOGLSceneEnterContext (osal2_win_plugin_ogl_fct_scene_enter.c:25)
==12332== 
==12332== 2,221 (200 direct, 2,021 indirect) bytes in 1 blocks are definitely lost in loss record 46 of 57
==12332==    at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
==12332==    by 0x10BB9021: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF31BF: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF335C: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF33B5: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCCAE3: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCD0C1: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8BBFB: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8D0D0: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8DE3D: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x1D7524: winOGLSceneEnterContext (osal2_win_plugin_ogl_fct_scene_enter.c:25)
==12332==    by 0x1ECC8D: gfxSystemDraw (graphics_system_draw.c:35)
==12332== 
==12332== 4,442 (256 direct, 4,186 indirect) bytes in 2 blocks are definitely lost in loss record 48 of 57
==12332==    at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
==12332==    by 0x10BB9021: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BBC501: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF3209: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF3351: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF33B5: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCCAE3: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCD0C1: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8BBFB: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8D0D0: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8DE3D: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x1D7524: winOGLSceneEnterContext (osal2_win_plugin_ogl_fct_scene_enter.c:25)
==12332== 
==12332== 5,760 bytes in 9 blocks are definitely lost in loss record 49 of 57
==12332==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==12332==    by 0x5ACC805: XGetVisualInfo (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==12332==    by 0x5DE6E62: glXChooseVisual (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332==    by 0x1D6C27: winCreateOGLPlugin (osal2_win_plugin_ogl_create__linux.c:43)
==12332==    by 0x1D68A0: winCreateDevice (osal2_win_create__linux.c:29)
==12332==    by 0x1A305E: __test_2_osal_win_ogl_handle (test_2_osal_win_ogl.c:64)
==12332==    by 0x1A3280: test_2_osal_win_ogl (test_2_osal_win_ogl.c:121)
==12332==    by 0x12C362: testall (test_all.c:65)
==12332==    by 0x126FF7: tstTestSequence (rltest_client_sequence.c:22)
==12332==    by 0x127232: tstTestThread (rltest_client_thread.c:59)
==12332==    by 0x126F84: tstTestRun (rltest_client_run.c:151)
==12332==    by 0x12750D: tstCmdClient (rltest_command_client.c:59)
==12332== 
==12332== 5,760 bytes in 9 blocks are definitely lost in loss record 50 of 57
==12332==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==12332==    by 0x5ACC805: XGetVisualInfo (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==12332==    by 0x5DE6E62: glXChooseVisual (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332==    by 0x1D6C27: winCreateOGLPlugin (osal2_win_plugin_ogl_create__linux.c:43)
==12332==    by 0x1D68A0: winCreateDevice (osal2_win_create__linux.c:29)
==12332==    by 0x15E270: test_graphics_device (test_graphics_device.c:91)
==12332==    by 0x12C495: testall (test_all.c:101)
==12332==    by 0x126FF7: tstTestSequence (rltest_client_sequence.c:22)
==12332==    by 0x127232: tstTestThread (rltest_client_thread.c:59)
==12332==    by 0x126F84: tstTestRun (rltest_client_run.c:151)
==12332==    by 0x12750D: tstCmdClient (rltest_command_client.c:59)
==12332==    by 0x129CB4: Command (rltest_main__linux.c:94)
==12332== 
==12332== 5,760 bytes in 9 blocks are definitely lost in loss record 51 of 57
==12332==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==12332==    by 0x5ACC805: XGetVisualInfo (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==12332==    by 0x5DE6E62: glXChooseVisual (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332==    by 0x1D6C27: winCreateOGLPlugin (osal2_win_plugin_ogl_create__linux.c:43)
==12332==    by 0x1D68A0: winCreateDevice (osal2_win_create__linux.c:29)
==12332==    by 0x167E5A: test_graphics_shader_glsl (test_graphics_shader_glsl.c:267)
==12332==    by 0x12CF3B: testall (test_all.c:237)
==12332==    by 0x126FF7: tstTestSequence (rltest_client_sequence.c:22)
==12332==    by 0x127232: tstTestThread (rltest_client_thread.c:59)
==12332==    by 0x126F84: tstTestRun (rltest_client_run.c:151)
==12332==    by 0x12750D: tstCmdClient (rltest_command_client.c:59)
==12332==    by 0x129CB4: Command (rltest_main__linux.c:94)
==12332== 
==12332== 5,760 bytes in 9 blocks are definitely lost in loss record 52 of 57
==12332==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==12332==    by 0x5ACC805: XGetVisualInfo (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==12332==    by 0x5DE6E62: glXChooseVisual (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)
==12332==    by 0x1D6C27: winCreateOGLPlugin (osal2_win_plugin_ogl_create__linux.c:43)
==12332==    by 0x1D68A0: winCreateDevice (osal2_win_create__linux.c:29)
==12332==    by 0x16B82D: test_graphics_system (test_graphics_system.c:681)
==12332==    by 0x12D0A3: testall (test_all.c:254)
==12332==    by 0x126FF7: tstTestSequence (rltest_client_sequence.c:22)
==12332==    by 0x127232: tstTestThread (rltest_client_thread.c:59)
==12332==    by 0x126F84: tstTestRun (rltest_client_run.c:151)
==12332==    by 0x12750D: tstCmdClient (rltest_command_client.c:59)
==12332==    by 0x129CB4: Command (rltest_main__linux.c:94)
==12332== 
==12332== 8,884 (212 direct, 8,672 indirect) bytes in 4 blocks are definitely lost in loss record 54 of 57
==12332==    at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
==12332==    by 0x10BB9021: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BB9304: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10BF2FB0: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCCADB: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10DCD0C1: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8BBFB: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8D0D0: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x10C8DE3D: ??? (in /usr/lib/x86_64-linux-gnu/dri/i965_dri.so)
==12332==    by 0x1D7524: winOGLSceneEnterContext (osal2_win_plugin_ogl_fct_scene_enter.c:25)
==12332==    by 0x1ECC8D: gfxSystemDraw (graphics_system_draw.c:35)
==12332==    by 0x1DD4C7: winOGLPluginDraw (osal2_win_plugin_ogl_draw__linux.c:22)
==12332== 
==12332== LEAK SUMMARY:
==12332==    definitely lost: 24,260 bytes in 45 blocks
==12332==    indirectly lost: 18,769 bytes in 126 blocks
==12332==      possibly lost: 0 bytes in 0 blocks
==12332==    still reachable: 2,987,516 bytes in 736 blocks
==12332==         suppressed: 0 bytes in 0 blocks
==12332== Reachable blocks (those to which a pointer was found) are not shown.
==12332== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==12332== 
==12332== For counts of detected and suppressed errors, rerun with: -v
==12332== Use --track-origins=yes to see where uninitialised values come from
==12332== ERROR SUMMARY: 333 errors from 10 contexts (suppressed: 0 from 0)

Attachment: osal2_win_plugin_ogl_fct_scene_enter.c
Description: Binary data


--- End Message ---
--- Begin Message ---
Source: mesa
Source-Version: 20.1.2-1
Done: Timo Aaltonen <tjaalton@debian.org>

We believe that the bug you reported is fixed in the latest version of
mesa, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 890846@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Aaltonen <tjaalton@debian.org> (supplier of updated mesa package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 25 Jun 2020 10:24:29 +0300
Source: mesa
Architecture: source
Version: 20.1.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Changed-By: Timo Aaltonen <tjaalton@debian.org>
Closes: 890846 963677
Changes:
 mesa (20.1.2-1) unstable; urgency=medium
 .
   * New upstream release. (Closes: #963677)
   * mesa-vulkan-drivers: Add support for device-select-layer.
   * control, rules: Enable valgrind where supported. (Closes: #890846)
Checksums-Sha1:
 3a37663423717f66f2d49bda44a771a05f59b1d8 5346 mesa_20.1.2-1.dsc
 203bc4713fcf9c60761aeb08bbc1c5e3d92979fb 19697409 mesa_20.1.2.orig.tar.gz
 fd76e5a08134dc5521be70ce17f8a5d4509fef4d 107487 mesa_20.1.2-1.diff.gz
 22f68be5793459ae50ebd5bd3460e17093372784 9565 mesa_20.1.2-1_source.buildinfo
Checksums-Sha256:
 696bada4f53ecf436d5a49b3200b29784a720f1a432b0e586951a56c4680ea15 5346 mesa_20.1.2-1.dsc
 52a5bd533b9f86d03e5d3b6b4122bbde57d4758b500d34bb748ffadf24d65b36 19697409 mesa_20.1.2.orig.tar.gz
 637c9a21cef5fe99db4a0af633af8c5a9cd96b85c6408165ffb663c84b4b7f92 107487 mesa_20.1.2-1.diff.gz
 4a038f5283d569698f38023c711d1640d0d34fd4783758b531793cfe1884b62c 9565 mesa_20.1.2-1_source.buildinfo
Files:
 8bfd12793020e29bbb955474a4b14013 5346 graphics optional mesa_20.1.2-1.dsc
 6108de37669d25e5659ca75b67ff5f73 19697409 graphics optional mesa_20.1.2.orig.tar.gz
 27e722acdc7a98ed13750ff0f79bf32f 107487 graphics optional mesa_20.1.2-1.diff.gz
 36291ad5b80dcc07c5a649a4040f3cc0 9565 graphics optional mesa_20.1.2-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEdS3ifE3rFwGbS2Yjy3AxZaiJhNwFAl70UVsACgkQy3AxZaiJ
hNxQMBAAgZu424wBMZ6BoKWSxwlgnIWvSb1rX01QTA8ZCEHsyFWckoiUCowmE7un
NhOR6d7tZRyA0Ia4dQ469ox5grOyTMYVupL7euX8bkX1oLXdP+d8L9N8N5zKE9cX
SoUEXlPyaMElItz60cHL3dPWpyYpb1+GH9XR7AFZfMQXeUMftPdQvsEPGdHl9Fb/
jXmoexTC3m9XTpYkx13OWKMC1QNQBIriZE2wrRl993hcT3SwCyUY/RQ0533Wj/z+
Xks4unr5bL8I9fzcF0pT8e2Qe2XFDTNAM970i/tyIUxYXO/RF40cGlloICs8gYSm
Wfzg13Eyz6QE8vGEh4Yb0mB6fte7DpJxyy35BxP2fC1h8eWJQC+GQEE6FAaYT3CE
HuuUKFUGBw8s7KmjDab0kXhhDnLW5AGFtMUClIMErinp1TGML/0K88K81fcHQRcb
lO9JdR0JGsZNsTBD0l8FX+p6Q7JxFTBku/EEf5XIf651rg8JJzpqobkqYnliNcYE
xlbZH1X2i8vZ8xH/r+uY5Q1lkZanwgfKi5v+LWNm2PcnDxcwfUgCsrlbNPi73T8s
bXcrziELffa/H8OzdApgK9lDWa/nJfYs4w6rQDLnRqODoW1EiZhPqef5gLcRC/mb
9ojR+SJ8xQ2glzdS/Yp4S+C81G58hVRD4sq53nL+ccbudA5poaU=
=2z30
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: