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

leaks in slave_connection_state::slave_connection_state() and Domain_id_filter::Domain_id_filter()

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5
    • 10.5
    • Replication
    • None

    Description

      At MDEV-22031 analysis the following stacks were found

      Version: '10.5.2-MariaDB-debug'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
      2020-03-25  7:20:28 0 [Note] sql/mysqld (initiated by: unknown): Normal shutdown
      2020-03-25  7:20:28 0 [Note] InnoDB: FTS optimize thread exiting.
      2020-03-25  7:20:28 0 [Note] InnoDB: Starting shutdown...
      2020-03-25  7:20:28 0 [Note] InnoDB: Dumping buffer pool(s) to /dev/shm/data/ib_buffer_pool
      2020-03-25  7:20:28 0 [Note] InnoDB: Buffer pool(s) dump completed at 200325  7:20:28
      2020-03-25  7:20:31 0 [Note] InnoDB: Shutdown completed; log sequence number 18288986; transaction id 43442
      2020-03-25  7:20:31 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
      2020-03-25  7:20:31 0 [Note] sql/mysqld: Shutdown complete
      =================================================================
      ==27012==ERROR: LeakSanitizer: detected memory leaks
      Direct leak of 21888 byte(s) in 1 object(s) allocated from:
          #0 0x7c202d in operator new(unsigned long) (/dev/shm/10.5a/sql/mariadbd+0x7c202d)
          #1 0x828f2d in init_slave() /mariadb/10.5m/sql/slave.cc:739:20
          #2 0x7ce347 in mysqld_main(int, char**) /mariadb/10.5m/sql/mysqld.cc:5710:7
          #3 0x7fa0dc0c3e0a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26e0a)
      Indirect leak of 1608 byte(s) in 3 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0x27f085b in my_hash_init2 /mariadb/10.5m/mysys/hash.c:98:8
          #4 0xfc31b9 in slave_connection_state::slave_connection_state() /mariadb/10.5m/sql/rpl_gtid.cc:2244:3
          #5 0xe8b18a in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:35:4
      Indirect leak of 536 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0x27f085b in my_hash_init2 /mariadb/10.5m/mysys/hash.c:98:8
          #4 0xfd95dd in rpl_parallel::rpl_parallel() /mariadb/10.5m/sql/rpl_parallel.cc:2215:3
          #5 0xe8b18a in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:35:4
      Indirect leak of 536 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0x27f085b in my_hash_init2 /mariadb/10.5m/mysys/hash.c:98:8
          #4 0xfbda0b in rpl_binlog_state::init() /mariadb/10.5m/sql/rpl_gtid.cc:1480:3
          #5 0xe8b18a in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:35:4
      Indirect leak of 536 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0x27f085b in my_hash_init2 /mariadb/10.5m/mysys/hash.c:98:8
          #4 0xfc31b9 in slave_connection_state::slave_connection_state() /mariadb/10.5m/sql/rpl_gtid.cc:2244:3
      Indirect leak of 456 byte(s) in 3 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0xfc31e2 in slave_connection_state::slave_connection_state() /mariadb/10.5m/sql/rpl_gtid.cc:2247:3
          #4 0xe8b18a in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:35:4
      Indirect leak of 152 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0xe8b86f in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:80:3
      Indirect leak of 152 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0xe8b462 in Domain_id_filter::Domain_id_filter() /mariadb/10.5m/sql/rpl_mi.cc:1745:5
          #4 0xe8b462 in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:31:14
      Indirect leak of 152 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0xfbda37 in rpl_binlog_state::init() /mariadb/10.5m/sql/rpl_gtid.cc:1482:3
          #4 0xe8b18a in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:35:4
      Indirect leak of 152 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0xe8b436 in Domain_id_filter::Domain_id_filter() /mariadb/10.5m/sql/rpl_mi.cc:1745:5
          #4 0xe8b436 in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:31:14
      Indirect leak of 152 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0x27df7e0 in init_dynamic_array2 /mariadb/10.5m/mysys/array.c:71:33
          #3 0xfc31e2 in slave_connection_state::slave_connection_state() /mariadb/10.5m/sql/rpl_gtid.cc:2247:3
      Indirect leak of 32 byte(s) in 1 object(s) allocated from:
          #0 0x7928bd in malloc (/dev/shm/10.5a/sql/mariadbd+0x7928bd)
          #1 0x287ff7c in my_malloc /mariadb/10.5m/mysys/my_malloc.c:88:29
          #2 0xe8b647 in Master_info::Master_info(st_mysql_const_lex_string*, bool) /mariadb/10.5m/sql/rpl_mi.cc:61:8
      SUMMARY: AddressSanitizer: 26352 byte(s) leaked in 16 allocation(s).
      

      Attachments

        Activity

          People

            Elkin Andrei Elkin
            Elkin Andrei Elkin
            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.