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

Warning: Memory not freed: 280 on mangled query, LeakSanitizer: detected memory leaks

Details

    Description

      Present in 10.5+ only, both in debug and optimized.

      IF(NOT (scalar (@0s)>scalar (@0s))) { die (.);�ku u va�oj SQL sINTaksi{ die (. na liniji0;;
      SHUTDOWN;
      

      Leads to (ref error log after shutdown):

      11.0.1 f2dc4d4c10ac36a73b5c1eb765352d3aee808d66 (Debug)

      2023-02-18 14:22:07 0 [Note] /test/MD180223-mariadb-11.0.1-linux-x86_64-dbg/bin/mariadbd: Shutdown complete
      Warning: Memory not freed: 280
      

      In all affected versions.

      No UBSAN/ASAN issues observed.

      I tried to make this work under MTR for some time, but failed. AFAICS ftm, this issue can only be reproduced in a client, not in MTR, not even when using the CLI via MTR i.e. --start-and-exit.

      As such, you will need to start mariadbd and then mariadb manually/directly to reproduce.

      Attachments

        Issue Links

          Activity

            Roel Roel Van de Paar created issue -
            Roel Roel Van de Paar made changes -
            Field Original Value New Value
            Description Present in 10.5+ only, both in debug and optimized.
            {code:sql}
            IF(NOT (scalar (@0s)>scalar (@0s))) { die (.);�ku u va�oj SQL sINTaksi{ die (. na liniji0;;
            SHUTDOWN;
            {code}
            Leads to:
            {noformat}
            Warning: Memory not freed: 280
            {noformat}
            In all affected versions.

            No UBSAN/ASAN issues observed.

            I tried to make this work under MTR for some time, but failed. AFAICS ftm, this issue can only be reproduced in a client, not in MTR, not even when using the CLI via MTR i.e. {{--start-and-exit}}.

            As such, you will need to start mariadbd and then mariadb manually/directly to reproduce.
            Present in 10.5+ only, both in debug and optimized.
            {code:sql}
            IF(NOT (scalar (@0s)>scalar (@0s))) { die (.);�ku u va�oj SQL sINTaksi{ die (. na liniji0;;
            SHUTDOWN;
            {code}
            Leads to (ref error log after shutdown):
            {noformat}
            Warning: Memory not freed: 280
            {noformat}
            In all affected versions.

            No UBSAN/ASAN issues observed.

            I tried to make this work under MTR for some time, but failed. AFAICS ftm, this issue can only be reproduced in a client, not in MTR, not even when using the CLI via MTR i.e. {{--start-and-exit}}.

            As such, you will need to start mariadbd and then mariadb manually/directly to reproduce.
            Roel Roel Van de Paar made changes -
            Description Present in 10.5+ only, both in debug and optimized.
            {code:sql}
            IF(NOT (scalar (@0s)>scalar (@0s))) { die (.);�ku u va�oj SQL sINTaksi{ die (. na liniji0;;
            SHUTDOWN;
            {code}
            Leads to (ref error log after shutdown):
            {noformat}
            Warning: Memory not freed: 280
            {noformat}
            In all affected versions.

            No UBSAN/ASAN issues observed.

            I tried to make this work under MTR for some time, but failed. AFAICS ftm, this issue can only be reproduced in a client, not in MTR, not even when using the CLI via MTR i.e. {{--start-and-exit}}.

            As such, you will need to start mariadbd and then mariadb manually/directly to reproduce.
            Present in 10.5+ only, both in debug and optimized.
            {code:sql}
            IF(NOT (scalar (@0s)>scalar (@0s))) { die (.);�ku u va�oj SQL sINTaksi{ die (. na liniji0;;
            SHUTDOWN;
            {code}
            Leads to (ref error log after shutdown):
            {noformat:title=11.0.1 f2dc4d4c10ac36a73b5c1eb765352d3aee808d66 (Debug)}
            2023-02-18 14:22:07 0 [Note] /test/MD180223-mariadb-11.0.1-linux-x86_64-dbg/bin/mariadbd: Shutdown complete
            Warning: Memory not freed: 280
            {noformat}
            In all affected versions.

            No UBSAN/ASAN issues observed.

            I tried to make this work under MTR for some time, but failed. AFAICS ftm, this issue can only be reproduced in a client, not in MTR, not even when using the CLI via MTR i.e. {{--start-and-exit}}.

            As such, you will need to start mariadbd and then mariadb manually/directly to reproduce.
            ramesh Ramesh Sivaraman made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.7 [ 24805 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.8 [ 26121 ]
            Roel Roel Van de Paar made changes -
            Fix Version/s 11.0 [ 28320 ]
            Fix Version/s 11.1 [ 28549 ]
            Affects Version/s 11.1 [ 28549 ]
            Labels regression-10.5 Memory_leak regression-10.5
            Roel Roel Van de Paar made changes -
            Summary Warning: Memory not freed: 280 on mangled query Warning: Memory not freed: 280 on mangled query, LeakSanitizer: detected memory leaks
            Roel Roel Van de Paar made changes -
            Labels Memory_leak regression-10.5 LSAN Memory_leak regression-10.5
            bar Alexander Barkov made changes -
            Status Confirmed [ 10101 ] In Progress [ 3 ]
            bar Alexander Barkov made changes -
            Assignee Alexander Barkov [ bar ] Dmitry Shulga [ JIRAUSER47315 ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            shulga Dmitry Shulga made changes -
            Status In Review [ 10002 ] Stalled [ 10000 ]
            shulga Dmitry Shulga made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            shulga Dmitry Shulga made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            bar Alexander Barkov made changes -
            Assignee Dmitry Shulga [ JIRAUSER47315 ] Alexander Barkov [ bar ]
            bar Alexander Barkov made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            bar Alexander Barkov made changes -
            bar Alexander Barkov made changes -
            Component/s Stored routines [ 13905 ]
            Fix Version/s 10.5.22 [ 29011 ]
            Fix Version/s 10.6.15 [ 29013 ]
            Fix Version/s 10.9.8 [ 29015 ]
            Fix Version/s 10.10.6 [ 29017 ]
            Fix Version/s 10.11.5 [ 29019 ]
            Fix Version/s 11.0.3 [ 28920 ]
            Fix Version/s 11.1.2 [ 28921 ]
            Fix Version/s 10.8.8 [ 28518 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.9 [ 26905 ]
            Fix Version/s 10.10 [ 27530 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.0 [ 28320 ]
            Fix Version/s 11.1 [ 28549 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            bar Alexander Barkov made changes -

            People

              bar Alexander Barkov
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.