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

Warning: Memory not freed: 56 on SET @@global.wsrep_sst_auth

Details

    Description

      SET @@global.wsrep_sst_auth= 'abcdefghijklmnopqrstuvwxyz';
      SHUTDOWN;
      

      Leads to:

      10.6.0 9118fd360a3da0bba521caf2a35c424968235ac4 (Optimized)

      2021-01-01 17:17:07 0 [Note] InnoDB: Starting shutdown...
      2021-01-01 17:17:07 0 [Note] InnoDB: Dumping buffer pool(s) to /test/MD010121-mariadb-10.6.0-linux-x86_64-opt/data/ib_buffer_pool
      2021-01-01 17:17:07 0 [Note] InnoDB: Buffer pool(s) dump completed at 210101 17:17:07
      2021-01-01 17:17:07 0 [Note] InnoDB: Shutdown completed; log sequence number 42658; transaction id 19
      2021-01-01 17:17:07 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
      2021-01-01 17:17:07 0 [Note] /test/MD010121-mariadb-10.6.0-linux-x86_64-opt/bin/mysqld: Shutdown complete
       
      Warning: Memory not freed: 56
      

      Different versions give different numbers of bytes. Debug builds give bit more info:

      10.4.18 3454b5cf35a61e8f6cfab376638520dee4a50609 (Debug)

      Warning: Memory not freed: 32
      Warning:   32 bytes lost at 0x153344011c50, allocated by T@0 at mysys/my_malloc.c:245, sql/wsrep_sst.cc:248, sql/wsrep_sst.cc:284, sql/set_var.cc:209, sql/set_var.cc:837, sql/set_var.cc:740, sql/sql_parse.cc:4994, sql/sql_parse.cc:7958
      Memory lost: 32 bytes in 1 chunks
      Warning:   32 bytes lost at 0x153344011c50, allocated by T@0 at mysys/my_malloc.c:245, sql/wsrep_sst.cc:248, sql/wsrep_sst.cc:284, sql/set_var.cc:209, sql/set_var.cc:837, sql/set_var.cc:740, sql/sql_parse.cc:4994, sql/sql_parse.cc:7958
      Memory lost: 32 bytes in 1 chunks
      

      Attachments

        Issue Links

          Activity

            Roel Can you try with branch bb-10.6-MDEV-24509 I still can't repeat. Please use -mysqld=-wsrep-debug=1

            jplindst Jan Lindström (Inactive) added a comment - Roel Can you try with branch bb-10.6- MDEV-24509 I still can't repeat. Please use - mysqld= -wsrep-debug=1

            jplindst Thank you & done. Said branch also reproduces the issue.
            First testcase

            10.6.0 12d3f6c635a5f43609d5d38462db81810edb5358 (Debug)

            Warning: Memory not freed: 56
            Warning:   56 bytes lost at 0x14875c012390, allocated by T@0 at 0x55b5295ba51c, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919
            Memory lost: 56 bytes in 1 chunks
            Warning:   56 bytes lost at 0x14875c012390, allocated by T@0 at sql/sql_parse.cc:7901, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919
            Memory lost: 56 bytes in 1 chunks
            

            Second testcase

            10.6.0 12d3f6c635a5f43609d5d38462db81810edb5358 (Debug)

            Warning: Memory not freed: 32
            Warning:   32 bytes lost at 0x14feb0009160, allocated by T@0 at 0x557c8f63151c, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919
            Memory lost: 32 bytes in 1 chunks
            Warning:   32 bytes lost at 0x14feb0009160, allocated by T@0 at sql/sql_parse.cc:7901, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919
            Memory lost: 32 bytes in 1 chunks
            

            Roel Roel Van de Paar added a comment - jplindst Thank you & done. Said branch also reproduces the issue. First testcase 10.6.0 12d3f6c635a5f43609d5d38462db81810edb5358 (Debug) Warning: Memory not freed: 56 Warning: 56 bytes lost at 0x14875c012390, allocated by T@0 at 0x55b5295ba51c, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919 Memory lost: 56 bytes in 1 chunks Warning: 56 bytes lost at 0x14875c012390, allocated by T@0 at sql/sql_parse.cc:7901, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919 Memory lost: 56 bytes in 1 chunks Second testcase 10.6.0 12d3f6c635a5f43609d5d38462db81810edb5358 (Debug) Warning: Memory not freed: 32 Warning: 32 bytes lost at 0x14feb0009160, allocated by T@0 at 0x557c8f63151c, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919 Memory lost: 32 bytes in 1 chunks Warning: 32 bytes lost at 0x14feb0009160, allocated by T@0 at sql/sql_parse.cc:7901, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919 Memory lost: 32 bytes in 1 chunks

            Also figured out that the size relates to the size of the string used.

            10.6.0>SET @@global.wsrep_sst_auth= '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789';   # Length: 100
            

            10.6.0 12d3f6c635a5f43609d5d38462db81810edb5358 (Debug)

            Warning: Memory not freed: 128
            Warning:  128 bytes lost at 0x1528340091c0, allocated by T@0 at 0x5633fefc651c, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919
            Memory lost: 128 bytes in 1 chunks
            Warning:  128 bytes lost at 0x1528340091c0, allocated by T@0 at sql/sql_parse.cc:7901, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919
            Memory lost: 128 bytes in 1 chunks
            

            Roel Roel Van de Paar added a comment - Also figured out that the size relates to the size of the string used. 10.6.0>SET @@global.wsrep_sst_auth= '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789'; # Length: 100 10.6.0 12d3f6c635a5f43609d5d38462db81810edb5358 (Debug) Warning: Memory not freed: 128 Warning: 128 bytes lost at 0x1528340091c0, allocated by T@0 at 0x5633fefc651c, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919 Memory lost: 128 bytes in 1 chunks Warning: 128 bytes lost at 0x1528340091c0, allocated by T@0 at sql/sql_parse.cc:7901, mysys/my_malloc.c:231, sql/wsrep_sst.cc:249, sql/wsrep_sst.cc:295, sql/set_var.cc:208, sql/set_var.cc:859, sql/set_var.cc:746, sql/sql_parse.cc:4919 Memory lost: 128 bytes in 1 chunks

            jplindst Error log attached as requested! Thank you

            Roel Roel Van de Paar added a comment - jplindst Error log attached as requested! Thank you

            Thanks, can you test again with bb-10.6-MDEV-24509 branch. I did test case but still can't repeat.

            jplindst Jan Lindström (Inactive) added a comment - Thanks, can you test again with bb-10.6- MDEV-24509 branch. I did test case but still can't repeat.

            People

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