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

LeakSanitizer: detected memory leaks when shutting down the server after reading rows from all_plugins table

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 10.11, 11.2(EOL), 11.4, 11.6(EOL), 11.7
    • 10.6, 10.11, 11.4
    • Plugins

    Description

      SELECT * FROM information_schema.all_plugins; 
      SHUTDOWN;
      

      Leads to

      CS 10.6.20 9849e3f948c7c0337220353fd34460b2f383a287 (Optimized, ASAN)

       
      =================================================================
      ==387059==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 240 byte(s) in 1 object(s) allocated from:
          #0 0x81706d in operator new(unsigned long) (/test/UBASAN_MD161024-mariadb-10.6.20-linux-x86_64-opt/bin/mariadbd+0x81706d)
          #1 0x1463a776ac3e  (<unknown module>)
          #2 0x1463a75ce1cf  (<unknown module>)
          #3 0x1463a7252360  (<unknown module>)
          #4 0x1463a694dd53  (<unknown module>)
          #5 0x1463cbe5cb99 in call_init /build/glibc-SzIz7B/glibc-2.31/elf/dl-init.c:72:3
       
      SUMMARY: AddressSanitizer: 240 byte(s) leaked in 1 allocation(s).
      241017  8:12:20 [ERROR] mysqld got signal 6 ;
      

      Setup:

      Compiled with clang version 10.0.0-4ubuntu1
      cmake . -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -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_501206 -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 -DWSREP_LIB_WITH_ASAN=ON -DCMAKE_CXX_FLAGS=-fsanitize-coverage=trace-pc-guard -DMYSQL_MAINTAINER_MODE=OFF -DWARNING_AS_ERROR='' -DCMAKE_BUILD_TYPE=RelWithDebInfo
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.