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

LSAN: LeakSanitizer: detected memory leaks in various allocations in fts_trx_create, rbt_add_node and others

    XMLWordPrintable

Details

    Description

      SET sql_mode='';
      CREATE TABLE t (c CHAR(1),FULLTEXT (c)) ENGINE=InnoDB;
      XA START 'a';
      INSERT INTO t VALUES (0);
      XA END 'a';
      XA PREPARE 'a';
      SHUTDOWN;
      

      Leads to:

      11.0.2 368dd22a816f3b437bccd0b9ff28b9de9b1abf0a (Optimized, UBASAN)

      ==538733==ERROR: LeakSanitizer: detected memory leaks
       
      Indirect leak of 1128 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947b17 in malloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1eb17)
          #1 0x55fdf2037891 in mem_heap_create_block_func(mem_block_info_t*, unsigned long, unsigned long) /test/11.0_opt_san/storage/innobase/mem/mem0mem.cc:277
          #2 0x55fdf29875b5 in mem_heap_create_func /test/11.0_opt_san/storage/innobase/include/mem0mem.inl:377
          #3 0x55fdf29875b5 in fts_trx_create(trx_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2228
          #4 0x55fdf298851f in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2413
          #5 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #8 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #9 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #10 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 63 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947b17 in malloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1eb17)
          #1 0x55fdf2558245 in rbt_add_node(ib_rbt_t*, ib_rbt_bound_t*, void const*) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:849
          #2 0x55fdf296dd96 in fts_trx_table_add_op /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2393
          #3 0x55fdf29884ec in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2419
          #4 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #5 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #6 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #7 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #8 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #9 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #10 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #11 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #12 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #13 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #14 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #15 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 56 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25576a9 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:785
          #2 0x55fdf296fb98 in fts_trx_table_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2278
          #3 0x55fdf296fb98 in fts_trx_init /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2341
          #4 0x55fdf2988472 in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2416
          #5 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #8 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #9 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #10 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 56 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25576a9 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:785
          #2 0x55fdf2989c33 in fts_savepoint_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55fdf2989c33 in fts_savepoint_laststmt_refresh(trx_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:5480
          #4 0x55fdf24e565a in trx_mark_sql_stat_end(trx_t*) /test/11.0_opt_san/storage/innobase/trx/trx0trx.cc:1641
          #5 0x55fdf1d3def4 in end_of_statement /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:4436
          #6 0x55fdf1d3def4 in innobase_commit /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:4526
          #7 0x55fdf06f103b in commit_one_phase_2 /test/11.0_opt_san/sql/handler.cc:2138
          #8 0x55fdf07547a8 in ha_commit_trans(THD*, bool) /test/11.0_opt_san/sql/handler.cc:1885
          #9 0x55fdefbcba70 in trans_commit_stmt(THD*) /test/11.0_opt_san/sql/transaction.cc:472
          #10 0x55fdef1f8f78 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:6075
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 56 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25576a9 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:785
          #2 0x55fdf2987b70 in fts_savepoint_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55fdf2987b70 in fts_trx_create(trx_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2246
          #4 0x55fdf298851f in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2413
          #5 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #8 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #9 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #10 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 47 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947b17 in malloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1eb17)
          #1 0x55fdf2558245 in rbt_add_node(ib_rbt_t*, ib_rbt_bound_t*, void const*) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:849
          #2 0x55fdf296fc0b in fts_trx_init /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2342
          #3 0x55fdf2988472 in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2416
          #4 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #5 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #6 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #7 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #8 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #9 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #10 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #11 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #12 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #13 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #14 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #15 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25577ac in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:797
          #2 0x55fdf2989c33 in fts_savepoint_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55fdf2989c33 in fts_savepoint_laststmt_refresh(trx_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:5480
          #4 0x55fdf24e565a in trx_mark_sql_stat_end(trx_t*) /test/11.0_opt_san/storage/innobase/trx/trx0trx.cc:1641
          #5 0x55fdf1d3def4 in end_of_statement /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:4436
          #6 0x55fdf1d3def4 in innobase_commit /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:4526
          #7 0x55fdf06f103b in commit_one_phase_2 /test/11.0_opt_san/sql/handler.cc:2138
          #8 0x55fdf07547a8 in ha_commit_trans(THD*, bool) /test/11.0_opt_san/sql/handler.cc:1885
          #9 0x55fdefbcba70 in trans_commit_stmt(THD*) /test/11.0_opt_san/sql/transaction.cc:472
          #10 0x55fdef1f8f78 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:6075
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25576ea in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:790
          #2 0x55fdf2989c33 in fts_savepoint_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55fdf2989c33 in fts_savepoint_laststmt_refresh(trx_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:5480
          #4 0x55fdf24e565a in trx_mark_sql_stat_end(trx_t*) /test/11.0_opt_san/storage/innobase/trx/trx0trx.cc:1641
          #5 0x55fdf1d3def4 in end_of_statement /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:4436
          #6 0x55fdf1d3def4 in innobase_commit /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:4526
          #7 0x55fdf06f103b in commit_one_phase_2 /test/11.0_opt_san/sql/handler.cc:2138
          #8 0x55fdf07547a8 in ha_commit_trans(THD*, bool) /test/11.0_opt_san/sql/handler.cc:1885
          #9 0x55fdefbcba70 in trans_commit_stmt(THD*) /test/11.0_opt_san/sql/transaction.cc:472
          #10 0x55fdef1f8f78 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:6075
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25576ea in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:790
          #2 0x55fdf296fb98 in fts_trx_table_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2278
          #3 0x55fdf296fb98 in fts_trx_init /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2341
          #4 0x55fdf2988472 in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2416
          #5 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #8 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #9 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #10 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25577ac in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:797
          #2 0x55fdf296fb98 in fts_trx_table_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2278
          #3 0x55fdf296fb98 in fts_trx_init /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2341
          #4 0x55fdf2988472 in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2416
          #5 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #8 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #9 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #10 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25577ac in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:797
          #2 0x55fdf2987b70 in fts_savepoint_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55fdf2987b70 in fts_trx_create(trx_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2246
          #4 0x55fdf298851f in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2413
          #5 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #8 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #9 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #10 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55fdee947ce7 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-opt/bin/mariadbd+0x7a1ece7)
          #1 0x55fdf25576ea in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_opt_san/storage/innobase/ut/ut0rbt.cc:790
          #2 0x55fdf2987b70 in fts_savepoint_create /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55fdf2987b70 in fts_trx_create(trx_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2246
          #4 0x55fdf298851f in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_opt_san/storage/innobase/fts/fts0fts.cc:2413
          #5 0x55fdf22a15fe in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_opt_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55fdf1db2ef4 in ha_innobase::write_row(unsigned char const*) /test/11.0_opt_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55fdf07438fd in handler::ha_write_row(unsigned char const*) /test/11.0_opt_san/sql/handler.cc:7798
          #8 0x55fdeefb14a2 in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:2204
          #9 0x55fdef015202 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_opt_san/sql/sql_insert.cc:1154
          #10 0x55fdef200646 in mysql_execute_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:4569
          #11 0x55fdef2214d2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_opt_san/sql/sql_parse.cc:8014
          #12 0x55fdef22ef5d in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_opt_san/sql/sql_parse.cc:1894
          #13 0x55fdef238728 in do_command(THD*, bool) /test/11.0_opt_san/sql/sql_parse.cc:1407
          #14 0x55fdefb4780c in do_handle_one_connection(CONNECT*, bool) /test/11.0_opt_san/sql/sql_connect.cc:1416
          #15 0x55fdefb49e0c in handle_one_connection /test/11.0_opt_san/sql/sql_connect.cc:1318
          #16 0x153c40294b42 in start_thread nptl/pthread_create.c:442
       
      SUMMARY: AddressSanitizer: 1646 byte(s) leaked in 12 allocation(s).
      230515 17:40:41 [ERROR] mysqld got signal 6 ;
      

      11.0.2 368dd22a816f3b437bccd0b9ff28b9de9b1abf0a (Debug)

      ==530665==ERROR: LeakSanitizer: detected memory leaks
       
      Indirect leak of 1152 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1337 in __interceptor_malloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964337)
          #1 0x55ff4a8a8d94 in mem_heap_create_block_func(mem_block_info_t*, unsigned long, char const*, unsigned int, unsigned long) /test/11.0_dbg_san/storage/innobase/mem/mem0mem.cc:277
          #2 0x55ff4b19f9f9 in mem_heap_create_func /test/11.0_dbg_san/storage/innobase/include/mem0mem.inl:377
          #3 0x55ff4b19f9f9 in fts_trx_create(trx_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2228
          #4 0x55ff4b1a0105 in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2413
          #5 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #8 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #9 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #10 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #11 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #12 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #13 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #14 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #15 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #16 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 63 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1337 in __interceptor_malloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964337)
          #1 0x55ff4ad9968e in rbt_add_node(ib_rbt_t*, ib_rbt_bound_t*, void const*) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:849
          #2 0x55ff4b1889fd in fts_trx_table_add_op /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2393
          #3 0x55ff4b1a00ab in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2419
          #4 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #5 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #6 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #7 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #8 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #9 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #10 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #11 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #12 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #13 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #14 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #15 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 56 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad976fe in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:785
          #2 0x55ff4b18aa17 in fts_trx_table_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2278
          #3 0x55ff4b18aa17 in fts_trx_init /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2341
          #4 0x55ff4b1a002e in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2416
          #5 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #8 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #9 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #10 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #11 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #12 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #13 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #14 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #15 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #16 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 56 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad976fe in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:785
          #2 0x55ff4b188cd7 in fts_savepoint_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55ff4b19d1db in fts_savepoint_laststmt_refresh(trx_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:5480
          #4 0x55ff4ad416e8 in trx_mark_sql_stat_end(trx_t*) /test/11.0_dbg_san/storage/innobase/trx/trx0trx.cc:1641
          #5 0x55ff4a529323 in end_of_statement /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:4436
          #6 0x55ff4a547069 in innobase_commit /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:4526
          #7 0x55ff48e11d21 in commit_one_phase_2 /test/11.0_dbg_san/sql/handler.cc:2138
          #8 0x55ff48e127f1 in ha_commit_one_phase(THD*, bool) /test/11.0_dbg_san/sql/handler.cc:2091
          #9 0x55ff48e8b31e in ha_commit_trans(THD*, bool) /test/11.0_dbg_san/sql/handler.cc:1885
          #10 0x55ff481b55ec in trans_commit_stmt(THD*) /test/11.0_dbg_san/sql/transaction.cc:472
          #11 0x55ff4772522c in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:6075
          #12 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #13 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #14 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #15 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #16 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #17 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 56 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad976fe in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:785
          #2 0x55ff4b188cd7 in fts_savepoint_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55ff4b19fcc4 in fts_trx_create(trx_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2246
          #4 0x55ff4b1a0105 in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2413
          #5 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #8 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #9 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #10 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #11 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #12 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #13 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #14 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #15 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #16 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 47 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1337 in __interceptor_malloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964337)
          #1 0x55ff4ad9968e in rbt_add_node(ib_rbt_t*, ib_rbt_bound_t*, void const*) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:849
          #2 0x55ff4b18aa83 in fts_trx_init /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2342
          #3 0x55ff4b1a002e in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2416
          #4 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #5 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #6 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #7 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #8 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #9 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #10 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #11 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #12 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #13 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #14 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #15 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad97806 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:797
          #2 0x55ff4b188cd7 in fts_savepoint_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55ff4b19d1db in fts_savepoint_laststmt_refresh(trx_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:5480
          #4 0x55ff4ad416e8 in trx_mark_sql_stat_end(trx_t*) /test/11.0_dbg_san/storage/innobase/trx/trx0trx.cc:1641
          #5 0x55ff4a529323 in end_of_statement /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:4436
          #6 0x55ff4a547069 in innobase_commit /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:4526
          #7 0x55ff48e11d21 in commit_one_phase_2 /test/11.0_dbg_san/sql/handler.cc:2138
          #8 0x55ff48e127f1 in ha_commit_one_phase(THD*, bool) /test/11.0_dbg_san/sql/handler.cc:2091
          #9 0x55ff48e8b31e in ha_commit_trans(THD*, bool) /test/11.0_dbg_san/sql/handler.cc:1885
          #10 0x55ff481b55ec in trans_commit_stmt(THD*) /test/11.0_dbg_san/sql/transaction.cc:472
          #11 0x55ff4772522c in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:6075
          #12 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #13 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #14 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #15 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #16 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #17 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad97743 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:790
          #2 0x55ff4b188cd7 in fts_savepoint_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55ff4b19d1db in fts_savepoint_laststmt_refresh(trx_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:5480
          #4 0x55ff4ad416e8 in trx_mark_sql_stat_end(trx_t*) /test/11.0_dbg_san/storage/innobase/trx/trx0trx.cc:1641
          #5 0x55ff4a529323 in end_of_statement /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:4436
          #6 0x55ff4a547069 in innobase_commit /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:4526
          #7 0x55ff48e11d21 in commit_one_phase_2 /test/11.0_dbg_san/sql/handler.cc:2138
          #8 0x55ff48e127f1 in ha_commit_one_phase(THD*, bool) /test/11.0_dbg_san/sql/handler.cc:2091
          #9 0x55ff48e8b31e in ha_commit_trans(THD*, bool) /test/11.0_dbg_san/sql/handler.cc:1885
          #10 0x55ff481b55ec in trans_commit_stmt(THD*) /test/11.0_dbg_san/sql/transaction.cc:472
          #11 0x55ff4772522c in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:6075
          #12 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #13 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #14 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #15 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #16 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #17 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad97743 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:790
          #2 0x55ff4b18aa17 in fts_trx_table_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2278
          #3 0x55ff4b18aa17 in fts_trx_init /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2341
          #4 0x55ff4b1a002e in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2416
          #5 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #8 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #9 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #10 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #11 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #12 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #13 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #14 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #15 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #16 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad97806 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:797
          #2 0x55ff4b18aa17 in fts_trx_table_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2278
          #3 0x55ff4b18aa17 in fts_trx_init /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2341
          #4 0x55ff4b1a002e in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2416
          #5 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #8 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #9 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #10 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #11 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #12 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #13 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #14 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #15 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #16 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad97806 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:797
          #2 0x55ff4b188cd7 in fts_savepoint_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55ff4b19fcc4 in fts_trx_create(trx_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2246
          #4 0x55ff4b1a0105 in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2413
          #5 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #8 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #9 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #10 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #11 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #12 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #13 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #14 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #15 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #16 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x55ff46db1507 in __interceptor_calloc (/test/UBASAN_MD120523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd+0x7964507)
          #1 0x55ff4ad97743 in rbt_create(unsigned long, int (*)(void const*, void const*)) /test/11.0_dbg_san/storage/innobase/ut/ut0rbt.cc:790
          #2 0x55ff4b188cd7 in fts_savepoint_create /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2211
          #3 0x55ff4b19fcc4 in fts_trx_create(trx_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2246
          #4 0x55ff4b1a0105 in fts_trx_add_op(trx_t*, dict_table_t*, unsigned long, fts_row_state, ib_vector_t*) /test/11.0_dbg_san/storage/innobase/fts/fts0fts.cc:2413
          #5 0x55ff4ab15273 in row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /test/11.0_dbg_san/storage/innobase/row/row0mysql.cc:1384
          #6 0x55ff4a5aa1ef in ha_innobase::write_row(unsigned char const*) /test/11.0_dbg_san/storage/innobase/handler/ha_innodb.cc:7810
          #7 0x55ff48e72943 in handler::ha_write_row(unsigned char const*) /test/11.0_dbg_san/sql/handler.cc:7798
          #8 0x55ff47497f8c in write_record(THD*, TABLE*, st_copy_info*, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:2204
          #9 0x55ff474fc88c in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/11.0_dbg_san/sql/sql_insert.cc:1154
          #10 0x55ff4770700f in mysql_execute_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:4569
          #11 0x55ff4772c973 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.0_dbg_san/sql/sql_parse.cc:8014
          #12 0x55ff4773c707 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1894
          #13 0x55ff4774a542 in do_command(THD*, bool) /test/11.0_dbg_san/sql/sql_parse.cc:1407
          #14 0x55ff4811f8b5 in do_handle_one_connection(CONNECT*, bool) /test/11.0_dbg_san/sql/sql_connect.cc:1416
          #15 0x55ff48120dd0 in handle_one_connection /test/11.0_dbg_san/sql/sql_connect.cc:1318
          #16 0x154e87c94b42 in start_thread nptl/pthread_create.c:442
       
      SUMMARY: AddressSanitizer: 1670 byte(s) leaked in 12 allocation(s).
      230515 17:40:40 [ERROR] mysqld got signal 6 ;
      

      Setup:

      Compiled with GCC >=7.5.0 (I use GCC 11.3.0) and:
          -DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DWITH_RAPID=OFF -DWSREP_LIB_WITH_ASAN=ON
      Set before execution:
          export UBSAN_OPTIONS=print_stacktrace=1
      

      Bug confirmed present in:
      MariaDB: 10.5.21 (dbg), 10.5.21 (opt), 10.6.14 (dbg), 10.6.14 (opt), 10.9.7 (dbg), 10.9.7 (opt), 10.10.5 (dbg), 10.10.5 (opt), 10.11.4 (dbg), 10.11.4 (opt), 11.0.2 (dbg), 11.0.2 (opt), 11.1.0 (dbg), 11.1.0 (opt)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.30 (dbg), 10.4.30 (opt)

      Attachments

        Activity

          People

            thiru Thirunarayanan Balathandayuthapani
            Roel Roel Van de Paar
            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.