2021-01-25 20:12:32 0 [Note] /test/UBASAN_MD301120-mariadb-10.6.0-linux-x86_64-dbg/bin/mysqld: ready for connections.
|
Version: '10.6.0-MariaDB-debug' socket: '/test/UBASAN_MD301120-mariadb-10.6.0-linux-x86_64-dbg/socket.sock' port: 11155 MariaDB Server
|
=================================================================
|
==1076218==ERROR: AddressSanitizer: heap-use-after-free on address 0x62c0000702a8 at pc 0x561a0e570770 bp 0x14efa72188e0 sp 0x14efa72188d0
|
READ of size 8 at 0x62c0000702a8 thread T13
|
#0 0x561a0e57076f in thd_get_ha_data /test/10.6_dbg_san/sql/sql_class.cc:476
|
#1 0x561a11caa339 in thd_to_trx /test/10.6_dbg_san/storage/innobase/handler/ha_innodb.cc:1541
|
#2 0x561a11cfe018 in ha_innobase::is_read_only() const /test/10.6_dbg_san/storage/innobase/handler/ha_innodb.cc:7228
|
#3 0x561a11e0a1b2 in ha_innobase::check_if_supported_inplace_alter(TABLE*, Alter_inplace_info*) /test/10.6_dbg_san/storage/innobase/handler/handler0alter.cc:1978
|
#4 0x561a0efed533 in mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool, bool) /test/10.6_dbg_san/sql/sql_table.cc:10602
|
#5 0x561a0f385a1c in Sql_cmd_alter_table::execute(THD*) /test/10.6_dbg_san/sql/sql_alter.cc:539
|
#6 0x561a0e9ac8c0 in mysql_execute_command(THD*) /test/10.6_dbg_san/sql/sql_parse.cc:5860
|
#7 0x561a0e8ec50e in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.6_dbg_san/sql/sql_parse.cc:7883
|
#8 0x561a0e95afec in dispatch_command(enum_server_command, THD*, char*, unsigned int) /test/10.6_dbg_san/sql/sql_parse.cc:1816
|
#9 0x561a0e9703b4 in do_command(THD*) /test/10.6_dbg_san/sql/sql_parse.cc:1348
|
#10 0x561a0f34ff1a in do_handle_one_connection(CONNECT*, bool) /test/10.6_dbg_san/sql/sql_connect.cc:1410
|
#11 0x561a0f35319d in handle_one_connection /test/10.6_dbg_san/sql/sql_connect.cc:1312
|
#12 0x561a1184f42d in pfs_spawn_thread /test/10.6_dbg_san/storage/perfschema/pfs.cc:2201
|
#13 0x14efc9faf608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477
|
#14 0x14efc9103292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
|
|
0x62c0000702a8 is located 168 bytes inside of 29580-byte region [0x62c000070200,0x62c00007758c)
|
freed by thread T14 here:
|
#0 0x561a0e0c620f in free (/test/UBASAN_MD301120-mariadb-10.6.0-linux-x86_64-dbg/bin/mariadbd+0x808d20f)
|
#1 0x561a130e2d27 in free_memory /test/10.6_dbg_san/mysys/safemalloc.c:279
|
#2 0x561a130e3635 in sf_free /test/10.6_dbg_san/mysys/safemalloc.c:197
|
#3 0x561a130a0cf9 in my_free /test/10.6_dbg_san/mysys/my_malloc.c:209
|
#4 0x561a0e72a5a8 in Delayed_insert::~Delayed_insert() (/test/UBASAN_MD301120-mariadb-10.6.0-linux-x86_64-dbg/bin/mariadbd+0x86f15a8)
|
#5 0x561a0e6e1244 in handle_delayed_insert /test/10.6_dbg_san/sql/sql_insert.cc:3368
|
#6 0x561a1184f42d in pfs_spawn_thread /test/10.6_dbg_san/storage/perfschema/pfs.cc:2201
|
#7 0x14efc9faf608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477
|
|
previously allocated by thread T13 here:
|
#0 0x561a0e0c6608 in malloc (/test/UBASAN_MD301120-mariadb-10.6.0-linux-x86_64-dbg/bin/mariadbd+0x808d608)
|
#1 0x561a130e2f36 in sf_malloc /test/10.6_dbg_san/mysys/safemalloc.c:118
|
#2 0x561a130a061d in my_malloc /test/10.6_dbg_san/mysys/my_malloc.c:88
|
#3 0x561a0e7011e6 in ilink::operator new(unsigned long) /test/10.6_dbg_san/sql/sql_list.h:680
|
#4 0x561a0e7011e6 in delayed_get_table /test/10.6_dbg_san/sql/sql_insert.cc:2444
|
#5 0x561a0e7011e6 in open_and_lock_for_insert_delayed /test/10.6_dbg_san/sql/sql_insert.cc:574
|
#6 0x561a0e712430 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/10.6_dbg_san/sql/sql_insert.cc:751
|
#7 0x561a0e9911ca in mysql_execute_command(THD*) /test/10.6_dbg_san/sql/sql_parse.cc:4439
|
#8 0x561a0e8ec50e in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.6_dbg_san/sql/sql_parse.cc:7883
|
#9 0x561a0e95afec in dispatch_command(enum_server_command, THD*, char*, unsigned int) /test/10.6_dbg_san/sql/sql_parse.cc:1816
|
#10 0x561a0e9703b4 in do_command(THD*) /test/10.6_dbg_san/sql/sql_parse.cc:1348
|
#11 0x561a0f34ff1a in do_handle_one_connection(CONNECT*, bool) /test/10.6_dbg_san/sql/sql_connect.cc:1410
|
#12 0x561a0f35319d in handle_one_connection /test/10.6_dbg_san/sql/sql_connect.cc:1312
|
#13 0x561a1184f42d in pfs_spawn_thread /test/10.6_dbg_san/storage/perfschema/pfs.cc:2201
|
#14 0x14efc9faf608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477
|
|
Thread T13 created by T0 here:
|
#0 0x561a0dff3275 in __interceptor_pthread_create (/test/UBASAN_MD301120-mariadb-10.6.0-linux-x86_64-dbg/bin/mariadbd+0x7fba275)
|
#1 0x561a1185ff45 in my_thread_create /test/10.6_dbg_san/storage/perfschema/my_thread.h:38
|
#2 0x561a1185ff45 in pfs_spawn_thread_v1 /test/10.6_dbg_san/storage/perfschema/pfs.cc:2252
|
#3 0x561a0e12130d in inline_mysql_thread_create /test/10.6_dbg_san/include/mysql/psi/mysql_thread.h:1323
|
#4 0x561a0e12130d in create_thread_to_handle_connection(CONNECT*) /test/10.6_dbg_san/sql/mysqld.cc:5804
|
#5 0x561a0e134d9b in create_new_thread(CONNECT*) /test/10.6_dbg_san/sql/mysqld.cc:5863
|
#6 0x561a0e1353d0 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /test/10.6_dbg_san/sql/mysqld.cc:5928
|
#7 0x561a0e136e54 in handle_connections_sockets() /test/10.6_dbg_san/sql/mysqld.cc:6055
|
#8 0x561a0e13a966 in mysqld_main(int, char**) /test/10.6_dbg_san/sql/mysqld.cc:5699
|
#9 0x561a0e107bba in main /test/10.6_dbg_san/sql/main.cc:25
|
#10 0x14efc90080b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
|
|
Thread T14 created by T13 here:
|
#0 0x561a0dff3275 in __interceptor_pthread_create (/test/UBASAN_MD301120-mariadb-10.6.0-linux-x86_64-dbg/bin/mariadbd+0x7fba275)
|
#1 0x561a1185ff45 in my_thread_create /test/10.6_dbg_san/storage/perfschema/my_thread.h:38
|
#2 0x561a1185ff45 in pfs_spawn_thread_v1 /test/10.6_dbg_san/storage/perfschema/pfs.cc:2252
|
#3 0x561a0e70ae5a in inline_mysql_thread_create /test/10.6_dbg_san/include/mysql/psi/mysql_thread.h:1323
|
#4 0x561a0e70ae5a in delayed_get_table /test/10.6_dbg_san/sql/sql_insert.cc:2481
|
#5 0x561a0e70ae5a in open_and_lock_for_insert_delayed /test/10.6_dbg_san/sql/sql_insert.cc:574
|
#6 0x561a0e712430 in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/10.6_dbg_san/sql/sql_insert.cc:751
|
#7 0x561a0e9911ca in mysql_execute_command(THD*) /test/10.6_dbg_san/sql/sql_parse.cc:4439
|
#8 0x561a0e8ec50e in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.6_dbg_san/sql/sql_parse.cc:7883
|
#9 0x561a0e95afec in dispatch_command(enum_server_command, THD*, char*, unsigned int) /test/10.6_dbg_san/sql/sql_parse.cc:1816
|
#10 0x561a0e9703b4 in do_command(THD*) /test/10.6_dbg_san/sql/sql_parse.cc:1348
|
#11 0x561a0f34ff1a in do_handle_one_connection(CONNECT*, bool) /test/10.6_dbg_san/sql/sql_connect.cc:1410
|
#12 0x561a0f35319d in handle_one_connection /test/10.6_dbg_san/sql/sql_connect.cc:1312
|
#13 0x561a1184f42d in pfs_spawn_thread /test/10.6_dbg_san/storage/perfschema/pfs.cc:2201
|
#14 0x14efc9faf608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /test/10.6_dbg_san/sql/sql_class.cc:476 in thd_get_ha_data
|
Shadow bytes around the buggy address:
|
0x0c5880006000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5880006010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5880006020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5880006030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c5880006040: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
=>0x0c5880006050: fd fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd
|
0x0c5880006060: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c5880006070: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c5880006080: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c5880006090: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c58800060a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
Shadow byte legend (one shadow byte represents 8 application bytes):
|
Addressable: 00
|
Partially addressable: 01 02 03 04 05 06 07
|
Heap left redzone: fa
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Container overflow: fc
|
Array cookie: ac
|
Intra object redzone: bb
|
ASan internal: fe
|
Left alloca redzone: ca
|
Right alloca redzone: cb
|
Shadow gap: cc
|
==1076218==ABORTING
|
210125 20:12:35 [ERROR] mysqld got signal 6 ;
|
...
|
Query (0x62b0000a12a8): ALTER TABLE t AUTO_INCREMENT=1
|