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

AddressSanitizer Leak in CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC CONNECTION='Bad connection string'

    XMLWordPrintable

Details

    Description

      minimal odbc.test

      --source have_odbc.inc
       
      SET NAMES utf8;
       
      # MS ODBC and unixODBC return different error message text,
      # so disable displaying error messages
      --disable_result_log ONCE
      --error ER_UNKNOWN_ERROR
      CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC CONNECTION='Bad connection string';
      

      2025-09-11 22:11:38 0 [Note] /build/sql/mariadbd: Shutdown complete
       
      =================================================================
      ==173470==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 72 byte(s) in 1 object(s) allocated from:
          #0 0x55fe199ad9d9 in calloc (/build/sql/mariadbd+0x1dd49d9) (BuildId: b86681084ee0a40fe287a57899238e0093dc92ba)
          #1 0x7b04082972ee  (<unknown module>)
       
      Indirect leak of 72 byte(s) in 1 object(s) allocated from:
          #0 0x55fe199ad9d9 in calloc (/build/sql/mariadbd+0x1dd49d9) (BuildId: b86681084ee0a40fe287a57899238e0093dc92ba)
          #1 0x7b04082972ee  (<unknown module>)
       
      Indirect leak of 26 byte(s) in 2 object(s) allocated from:
          #0 0x55fe19993eea in strdup (/build/sql/mariadbd+0x1dbaeea) (BuildId: b86681084ee0a40fe287a57899238e0093dc92ba)
          #1 0x7b0408297303  (<unknown module>)
       
      Indirect leak of 14 byte(s) in 2 object(s) allocated from:
          #0 0x55fe19993eea in strdup (/build/sql/mariadbd+0x1dbaeea) (BuildId: b86681084ee0a40fe287a57899238e0093dc92ba)
          #1 0x7b0408297325  (<unknown module>)
       
      Indirect leak of 10 byte(s) in 2 object(s) allocated from:
          #0 0x55fe19993eea in strdup (/build/sql/mariadbd+0x1dbaeea) (BuildId: b86681084ee0a40fe287a57899238e0093dc92ba)
          #1 0x7b0408297314  (<unknown module>)
       
      Indirect leak of 5 byte(s) in 2 object(s) allocated from:
          #0 0x55fe19993eea in strdup (/build/sql/mariadbd+0x1dbaeea) (BuildId: b86681084ee0a40fe287a57899238e0093dc92ba)
          #1 0x7b0408297348  (<unknown module>)
       
      Indirect leak of 5 byte(s) in 2 object(s) allocated from:
          #0 0x55fe19993eea in strdup (/build/sql/mariadbd+0x1dbaeea) (BuildId: b86681084ee0a40fe287a57899238e0093dc92ba)
          #1 0x7b0408297394  (<unknown module>)
       
      SUMMARY: AddressSanitizer: 204 byte(s) leaked in 12 allocation(s).
      

      Other "CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC" queries that succeeded didn't leak.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.