Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-27627

LSAN: detected memory leaks - Memory not freed: 256/264/280/312 when using FOR...IN

    XMLWordPrintable

Details

    Description

      FOR rec IN cur (2) DO SELECT * a;
      SHUTDOWN;
      

      2022-01-26 18:48:19 0 [Note] /test/MD190122-mariadb-10.8.0-linux-x86_64-dbg/bin/mysqld: Shutdown complete
       
      Warning: Memory not freed: 280
      Warning:  280 bytes lost at 0x15520001f630, allocated by T@0 at 0x55e20e710fe3, mysys/array.c:72, mysys/hash.c:98, sql/sp.cc:2330, sql/sp.cc:2645, sql/item_create.cc:2622, sql/item_create.cc:2471, sql/sql_yacc.yy:10468
      Memory lost: 280 bytes in 1 chunks
      Warning:  280 bytes lost at 0x15520001f630, allocated by T@0 at sql/sql_parse.cc:10379, mysys/array.c:72, mysys/hash.c:98, sql/sp.cc:2330, sql/sp.cc:2645, sql/item_create.cc:2622, sql/item_create.cc:2471, sql/sql_yacc.yy:10468
      Memory lost: 280 bytes in 1 chunks
      

      10.8.0 e222e44d1bfc995870430bb90d8ac97e91f66cb4 (Optimized)

      2022-01-26 18:52:17 0 [Note] /test/MD190122-mariadb-10.8.0-linux-x86_64-opt/bin/mysqld: Shutdown complete
       
      Warning: Memory not freed: 280
      

      10.3.33 97425f740faf83ac2d16585084476470f3f898ce (Optimized)

      2022-01-26 18:50:30 0 [Note] /test/MD190122-mariadb-10.3.33-linux-x86_64-opt/bin/mysqld: Shutdown complete
       
      Warning: Memory not freed: 264
      

      10.3.33 97425f740faf83ac2d16585084476470f3f898ce (Debug)

      2022-01-26 18:50:29 0 [Note] /test/MD190122-mariadb-10.3.33-linux-x86_64-dbg/bin/mysqld: Shutdown complete
       
      Warning: Memory not freed: 256
      Warning:  256 bytes lost at 0x14e3c4020020, allocated by T@0 at mysys/array.c:70, mysys/hash.c:98, sql/sp.cc:2290, sql/sp.cc:2605, sql/item_create.cc:3512, sql/item_create.cc:3361, sql/sql_yacc.yy:11201, sql/sql_parse.cc:10199
      Memory lost: 256 bytes in 1 chunks
      Warning:  256 bytes lost at 0x14e3c4020020, allocated by T@0 at mysys/array.c:70, mysys/hash.c:98, sql/sp.cc:2290, sql/sp.cc:2605, sql/item_create.cc:3512, sql/item_create.cc:3361, sql/sql_yacc.yy:11201, sql/sql_parse.cc:10199
      Memory lost: 256 bytes in 1 chunks
      

      Attachments

        Issue Links

          Activity

            People

              shulga Dmitry Shulga
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.