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

period.create test leaks/faults in asan

    XMLWordPrintable

Details

    • Bug
    • Status: Approved (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 11.4.12
    • 11.4
    • Tests, MTR
    • None

    Description

      period.create                            [ pass ]    257
      ***Warnings generated in error logs during shutdown after running tests: period.create
      

      CURRENT_TEST: period.create
      $ /build/sql/mariadbd --defaults-group-suffix=.1 --defaults-file=/build/mysql-test/var/my.cnf --log-output=file --core-file --loose-debug-sync-timeout=300
      2026-08-13  6:42:45 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32198)
      2026-08-13  6:42:45 0 [Warning] Changed limits: max_open_files: 1024  max_connections: 151 (was 151)  table_cache: 421 (was 2000)
      2026-08-13  6:42:45 0 [Note] Starting MariaDB 11.4.13-MariaDB-asan-log source revision  server_uid y/Yi6J0Tri2C8Kp8Xj1ehbuk9Bk= as process 20000
      2026-08-13  6:42:45 0 [Note] Plugin 'partition' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'InnoDB' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'SEQUENCE' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_CMP_PER_INDEX' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_CMP' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'THREAD_POOL_WAITS' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'THREAD_POOL_QUEUES' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_BUFFER_PAGE_LRU' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'FEEDBACK' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_CMPMEM' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'THREAD_POOL_GROUPS' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_FOREIGN_COLS' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_BUFFER_POOL_STATS' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_FOREIGN' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_TABLES' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'user_variables' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'THREAD_POOL_STATS' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'unix_socket' is disabled.
      2026-08-13  6:42:45 0 [Note] Plugin 'wsrep_provider' is disabled.
      2026-08-13  6:42:45 0 [Warning] /build/sql/mariadbd: unknown variable 'loose-feedback-debug-startup-interval=20'
      2026-08-13  6:42:45 0 [Warning] /build/sql/mariadbd: unknown variable 'loose-feedback-debug-first-interval=60'
      2026-08-13  6:42:45 0 [Warning] /build/sql/mariadbd: unknown variable 'loose-feedback-debug-interval=60'
      2026-08-13  6:42:45 0 [Warning] /build/sql/mariadbd: unknown option '--loose-pam-debug'
      2026-08-13  6:42:45 0 [Warning] /build/sql/mariadbd: unknown option '--loose-aria'
      2026-08-13  6:42:45 0 [Warning] /build/sql/mariadbd: unknown variable 'loose-debug-sync-timeout=300'
      2026-08-13  6:42:45 0 [Note] Server socket created on IP: '127.0.0.1', port: '19000'.
      2026-08-13  6:42:45 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
      2026-08-13  6:42:45 0 [Note] /build/sql/mariadbd: ready for connections.
      Version: '11.4.13-MariaDB-asan-log'  socket: '/build/mysql-test/var/tmp/mysqld.1.sock'  port: 19000  Source distribution
      2026-08-13  6:42:46 0 [Note] /build/sql/mariadbd (initiated by: root[root] @ localhost [127.0.0.1]): Normal shutdown
      260813  6:42:46 [ERROR] /build/sql/mariadbd got signal 11 ;
      Sorry, we probably made a mistake, and this is a bug.
       
      Your assistance in bug reporting will enable us to fix this for the next release.
      To report this bug, see https://mariadb.com/docs/general-resources/community/community/bug-tracking/reporting-bugs about how to report
      a bug on https://jira.mariadb.org/.
       
      Please include the information from the server start above, to the end of the
      information below.
       
      Server version: 11.4.13-MariaDB-asan-log source revision: 
       
      Writing a core file...
      Working directory at /build/mysql-test/var/mysqld.1/data
      Resource Limits (excludes unlimited resources):
      Limit                     Soft Limit           Hard Limit           Units     
      Max stack size            8388608              unlimited            bytes     
      Max processes             254287               254287               processes 
      Max open files            1024                 1024                 files     
      Max locked memory         8388608              8388608              bytes     
      Max pending signals       254287               254287               signals   
      Max msgqueue size         819200               819200               bytes     
      Max nice priority         0                    0                    
      Max realtime priority     0                    0                    
      Core pattern: core
       
      Kernel version: Linux version 7.1.8-200.fc44.x86_64 (mockbuild@79d5d8bc7b174d9c91204c7736be3f39) (gcc (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2), GNU ld version 2.46.1-1.fc44) #1 SMP PREEMPT_DYNAMIC Mon Aug 10 03:35:23 UTC 2026
      

      Remove duckdb and it becomes a leak:

      buildbot@069778ff0106:/build$ rm storage/duckdb/ha_duckdb.so  mysql-test/var/plugins/ha_duckdb.so 
      buildbot@069778ff0106:/build$ mysql-test/mtr   period.create
      Logging: /source/mysql-test/mariadb-test-run.pl  period.create
      VS config: 
      vardir: /build/mysql-test/var
      Checking leftover processes...
       - found old pid 20000 in 'mysqld.1.pid', killing it...
         process did not exist!
      Removing old var directory...
      Creating var directory '/build/mysql-test/var'...
      Checking supported features...
      MariaDB Version 11.4.13-MariaDB-asan
       - SSL connections supported
       - binaries built with wsrep patch
      Collecting tests...
      Installing system database...
      Using parallel: 1
       
      ==============================================================================
       
      TEST                                      RESULT   TIME (ms) or COMMENT
      --------------------------------------------------------------------------
       
      worker[01] Using MTR_BUILD_THREAD 300, with reserved ports 19000..19029
      period.create                            [ pass ]    234
      ***Warnings generated in error logs during shutdown after running tests: period.create
       
      ==20082==ERROR: LeakSanitizer: detected memory leaks
      SUMMARY: AddressSanitizer: 448 byte(s) leaked in 2 allocation(s).
      260813  6:44:13 [ERROR] /build/sql/mariadbd got signal 6 ;
       
      ==20082==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 232 byte(s) in 1 object(s) allocated from:
          #0 0x561da1065ab1 in operator new(unsigned long) (/build/sql/mariadbd+0x15beab1) (BuildId: ce4d26acf5526b118034ee5404df09845ec40c88)
          #1 0x7b0ffb2232b8  (<unknown module>)
          #2 0x7b0ffaf84b12  (<unknown module>)
          #3 0x7b0ffaca2d01  (<unknown module>)
          #4 0x7b0ffa52eec5  (<unknown module>)
          #5 0x7f100e692dcd  (/lib64/ld-linux-x86-64.so.2+0x5dcd) (BuildId: c591a5df63f461bfdafb01908ca16845b375fa37)
       
      Direct leak of 216 byte(s) in 1 object(s) allocated from:
          #0 0x561da1065ab1 in operator new(unsigned long) (/build/sql/mariadbd+0x15beab1) (BuildId: ce4d26acf5526b118034ee5404df09845ec40c88)
          #1 0x7b0ffaf84e5a  (<unknown module>)
          #2 0x7b0ffaf84b45  (<unknown module>)
          #3 0x7b0ffaca2d01  (<unknown module>)
          #4 0x7b0ffa52eec5  (<unknown module>)
          #5 0x7f100e692dcd  (/lib64/ld-linux-x86-64.so.2+0x5dcd) (BuildId: c591a5df63f461bfdafb01908ca16845b375fa37)
       
      SUMMARY: AddressSanitizer: 448 byte(s) leaked in 2 allocation(s).
      

      remove rocksdb and it works again:

      buildbot@069778ff0106:/build$ rm storage/rocksdb/ha_rocksdb.so mysql-test/var/plugins/ha_rocksdb.so 
      buildbot@069778ff0106:/build$ mysql-test/mtr   period.create
       
      ==============================================================================
       
      TEST                                      RESULT   TIME (ms) or COMMENT
      --------------------------------------------------------------------------
       
      worker[01] Using MTR_BUILD_THREAD 300, with reserved ports 19000..19029
      period.create                            [ pass ]    213
      

      Attachments

        Issue Links

          Activity

            People

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