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

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

    XMLWordPrintable

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

            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.