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

ASAN: 133 byte(s) leaked in 4 allocation(s) while shutting down server after executing auth_gssapi plugin installation command

Details

    Description

      --ERROR ER_UNKNOWN_ERROR 
      INSTALL SONAME 'auth_gssapi';
      SHUTDOWN;
      

      Leads to

      CS 10.5.27 e997bf58fbefa06d47403001482ab81502f764dd (Optimized, UBASAN)

      =================================================================
      ==3388317==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 48 byte(s) in 1 object(s) allocated from:
          #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
          #1 0x14efa64d0ee4  (<unknown module>)
       
      Indirect leak of 53 byte(s) in 1 object(s) allocated from:
          #0 0x56018f5a1ced in strdup (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7b95ced)
          #1 0x14efa6614a45  (<unknown module>)
       
      Indirect leak of 24 byte(s) in 1 object(s) allocated from:
          #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
          #1 0x14efa6614903  (<unknown module>)
       
      Indirect leak of 8 byte(s) in 1 object(s) allocated from:
          #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
          #1 0x14efa6614959  (<unknown module>)
       
      SUMMARY: AddressSanitizer: 133 byte(s) leaked in 4 allocation(s).
      241205  8:20:59 [ERROR] mysqld got signal 6 ;
      Sorry, we probably made a mistake, and this is a bug.
      

      ASAN Build command

      cmake . -DWITH_SSL=bundled -DBUILD_CONFIG=mysql_release -DWITH_TOKUDB=0 -DWITH_JEMALLOC=no -DFEATURE_SET=community -DDEBUG_EXTNAME=OFF -DWITH_EMBEDDED_SERVER=0 -DENABLE_DOWNLOADS=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost_184112 -DENABLED_LOCAL_INFILE=1 -DENABLE_DTRACE=0 -DWITH_SAFEMALLOC=OFF -DPLUGIN_PERFSCHEMA=NO -DWITH_DBUG_TRACE=OFF -DWITH_ZLIB=bundled -DWITH_ROCKSDB=1 -DWITH_PAM=ON -DWITH_MARIABACKUP=0 -DFORCE_INSOURCE_BUILD=1 -DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DWSREP_LIB_WITH_ASAN=ON -DCMAKE_CXX_FLAGS=-static-libasan -DMYSQL_MAINTAINER_MODE=OFF -DWARNING_AS_ERROR='' -DCMAKE_BUILD_TYPE=RelWithDebInfo
      

      Attachments

        Activity

          ramesh Ramesh Sivaraman created issue -
          ramesh Ramesh Sivaraman made changes -
          Field Original Value New Value
          Description {code:sql}
          --ERROR ER_UNKNOWN_ERROR
          INSTALL SONAME 'auth_gssapi';
          SHUTDOWN;
          {code}

          Leads to
          {noformat:title=CS 10.5.27 e997bf58fbefa06d47403001482ab81502f764dd (Optimized, UBASAN)}
          =================================================================
          ==3388317==ERROR: LeakSanitizer: detected memory leaks

          Direct leak of 48 byte(s) in 1 object(s) allocated from:
              #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
              #1 0x14efa64d0ee4 (<unknown module>)

          Indirect leak of 53 byte(s) in 1 object(s) allocated from:
              #0 0x56018f5a1ced in strdup (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7b95ced)
              #1 0x14efa6614a45 (<unknown module>)

          Indirect leak of 24 byte(s) in 1 object(s) allocated from:
              #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
              #1 0x14efa6614903 (<unknown module>)

          Indirect leak of 8 byte(s) in 1 object(s) allocated from:
              #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
              #1 0x14efa6614959 (<unknown module>)

          SUMMARY: AddressSanitizer: 133 byte(s) leaked in 4 allocation(s).
          241205 8:20:59 [ERROR] mysqld got signal 6 ;
          Sorry, we probably made a mistake, and this is a bug.
          {noformat}
          {code:sql}
          --ERROR ER_UNKNOWN_ERROR
          INSTALL SONAME 'auth_gssapi';
          SHUTDOWN;
          {code}

          Leads to
          {noformat:title=CS 10.5.27 e997bf58fbefa06d47403001482ab81502f764dd (Optimized, UBASAN)}
          =================================================================
          ==3388317==ERROR: LeakSanitizer: detected memory leaks

          Direct leak of 48 byte(s) in 1 object(s) allocated from:
              #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
              #1 0x14efa64d0ee4 (<unknown module>)

          Indirect leak of 53 byte(s) in 1 object(s) allocated from:
              #0 0x56018f5a1ced in strdup (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7b95ced)
              #1 0x14efa6614a45 (<unknown module>)

          Indirect leak of 24 byte(s) in 1 object(s) allocated from:
              #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
              #1 0x14efa6614903 (<unknown module>)

          Indirect leak of 8 byte(s) in 1 object(s) allocated from:
              #0 0x56018f6190d8 in malloc (/test/UBASAN_MD090824-mariadb-10.5.27-linux-x86_64-opt/bin/mariadbd+0x7c0d0d8)
              #1 0x14efa6614959 (<unknown module>)

          SUMMARY: AddressSanitizer: 133 byte(s) leaked in 4 allocation(s).
          241205 8:20:59 [ERROR] mysqld got signal 6 ;
          Sorry, we probably made a mistake, and this is a bug.
          {noformat}

          ASAN Build command
          {noformat}
          cmake . -DWITH_SSL=bundled -DBUILD_CONFIG=mysql_release -DWITH_TOKUDB=0 -DWITH_JEMALLOC=no -DFEATURE_SET=community -DDEBUG_EXTNAME=OFF -DWITH_EMBEDDED_SERVER=0 -DENABLE_DOWNLOADS=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost_184112 -DENABLED_LOCAL_INFILE=1 -DENABLE_DTRACE=0 -DWITH_SAFEMALLOC=OFF -DPLUGIN_PERFSCHEMA=NO -DWITH_DBUG_TRACE=OFF -DWITH_ZLIB=bundled -DWITH_ROCKSDB=1 -DWITH_PAM=ON -DWITH_MARIABACKUP=0 -DFORCE_INSOURCE_BUILD=1 -DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DWSREP_LIB_WITH_ASAN=ON -DCMAKE_CXX_FLAGS=-static-libasan -DMYSQL_MAINTAINER_MODE=OFF -DWARNING_AS_ERROR='' -DCMAKE_BUILD_TYPE=RelWithDebInfo
          {noformat}
          wlad Vladislav Vaintroub made changes -
          Assignee Sergei Golubchik [ serg ] Vladislav Vaintroub [ wlad ]
          wlad Vladislav Vaintroub made changes -
          Fix Version/s 10.5.28 [ 29952 ]
          Fix Version/s 10.5 [ 23123 ]
          Fix Version/s 10.6 [ 24028 ]
          Fix Version/s 10.11 [ 27614 ]
          Fix Version/s 11.4 [ 29301 ]
          Fix Version/s 11.7 [ 29815 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          JIraAutomate JiraAutomate made changes -
          Fix Version/s 10.6.21 [ 29953 ]
          Fix Version/s 10.11.11 [ 29954 ]
          Fix Version/s 11.4.5 [ 29956 ]
          Fix Version/s 11.7.2 [ 29914 ]

          People

            wlad Vladislav Vaintroub
            ramesh Ramesh Sivaraman
            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.