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

            Transition Time In Source Status Execution Times
            Ramesh Sivaraman made transition -
            Open Confirmed
            2d 3h 8m 1
            Alexander Barkov made transition -
            Confirmed In Progress
            84d 3h 40m 1
            Alexander Barkov made transition -
            In Progress In Review
            1m 18s 1
            Dmitry Shulga made transition -
            In Review Stalled
            35d 19h 45m 1
            Dmitry Shulga made transition -
            In Progress Stalled
            16s 1
            Alexander Barkov made transition -
            Stalled In Progress
            1d 7h 46m 2
            Alexander Barkov made transition -
            In Progress Closed
            7d 21h 5m 1

            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.