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

280 Bytes lost in mysys/array.c, mysys/hash.c, sql/sp.cc, sql/sp.cc, sql/item_create.cc, sql/item_create.cc, sql/sql_yacc.yy:10748 when using oracle sql_mode

    XMLWordPrintable

Details

    Description

      SET sql_mode= 'oracle';
      WHILE f(8)<1 DO SELECT 1;
      SHUTDOWN;
      

      Leads to:

      10.7.0 57f14eab20ae2733eb341f3d293515a10a40bc48 (Optimized)

      2021-07-20 18:09:19 0 [Note] /test/MD090721-mariadb-10.7.0-linux-x86_64-opt/bin/mysqld: Shutdown complete
      Warning: Memory not freed: 280
      

      10.7.0 57f14eab20ae2733eb341f3d293515a10a40bc48 (Debug)

      2021-07-20 18:09:18 0 [Note] /test/MD090721-mariadb-10.7.0-linux-x86_64-dbg/bin/mysqld: Shutdown complete
      Warning: Memory not freed: 280
      Warning:  280 bytes lost at 0x150bc0022480, allocated by T@0 at 0x55de58a978ba, mysys/array.c:71, mysys/hash.c:98, sql/sp.cc:2324, sql/sp.cc:2639, sql/item_create.cc:2601, sql/item_create.cc:2450, sql/sql_yacc.yy:10748
      Memory lost: 280 bytes in 1 chunks
      Warning:  280 bytes lost at 0x150bc0022480, allocated by T@0 at sql/sql_parse.cc:10378, mysys/array.c:71, mysys/hash.c:98, sql/sp.cc:2324, sql/sp.cc:2639, sql/item_create.cc:2601, sql/item_create.cc:2450, sql/sql_yacc.yy:10748
      Memory lost: 280 bytes in 1 chunks
      

      Present in 10.5 to 10.11, in debug and optimized. Not present in 10.2 to 10.4.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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