Logging: /home/mleich/Server/10.4/mysql-test/mysql-test-run.pl --mem MDEV-7974-1 vardir: /home/mleich/Server/10.4/bld_asan/mysql-test/var Checking leftover processes... Removing old var directory... Creating var directory '/home/mleich/Server/10.4/bld_asan/mysql-test/var'... - symlinking 'var' to '/dev/shm/var_auto_VNlb' Checking supported features... MariaDB Version 10.4.4-MariaDB-debug - SSL connections supported - binaries are debug compiled Collecting tests... Installing system database... ============================================================================== TEST RESULT TIME (ms) or COMMENT -------------------------------------------------------------------------- worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019 main.MDEV-7974-1 'innodb' [ fail ] Test ended at 2019-04-05 16:27:11 CURRENT_TEST: main.MDEV-7974-1 Server [mysqld.1 - pid: 15202, winpid: 15202, exit: 256] failed during test run Server log from this test: ----------SERVER LOG START----------- 2019-04-05 16:26:55 0 [Note] /home/mleich/Server/10.4/bld_asan/sql/mysqld (mysqld 10.4.4-MariaDB-debug-log) starting as process 15203 ... 2019-04-05 16:26:55 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 4190) 2019-04-05 16:26:55 0 [Warning] Changed limits: max_open_files: 1024 max_connections: 151 (was 151) table_cache: 421 (was 2000) 2019-04-05 16:26:55 0 [Warning] setrlimit could not change the size of core files to 'infinity'; We may not be able to generate a core file on signals 2019-04-05 16:26:55 0 [Note] Plugin 'partition' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'SEQUENCE' is disabled. 2019-04-05 16:26:55 0 [Note] InnoDB: Using Linux native AIO 2019-04-05 16:26:55 0 [Note] InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!! 2019-04-05 16:26:55 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2019-04-05 16:26:55 0 [Note] InnoDB: Uses event mutexes 2019-04-05 16:26:55 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2019-04-05 16:26:55 0 [Note] InnoDB: Number of pools: 1 2019-04-05 16:26:55 0 [Note] InnoDB: Using SSE2 crc32 instructions 2019-04-05 16:26:55 0 [Note] mysqld: O_TMPFILE is not supported on /home/mleich/Server/10.4/bld_asan/mysql-test/var/tmp/mysqld.1 (disabling future attempts) 2019-04-05 16:26:55 0 [Note] InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M 2019-04-05 16:26:55 0 [Note] InnoDB: Completed initialization of buffer pool 2019-04-05 16:26:55 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2019-04-05 16:26:55 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2019-04-05 16:26:55 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2019-04-05 16:26:55 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2019-04-05 16:26:55 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2019-04-05 16:26:55 0 [Note] InnoDB: Waiting for purge to start 2019-04-05 16:26:55 0 [Note] InnoDB: 10.4.4 started; log sequence number 151263; transaction id 34 2019-04-05 16:26:55 0 [Note] InnoDB: Loading buffer pool(s) from /dev/shm/var_auto_VNlb/mysqld.1/data/ib_buffer_pool 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_SYS_DATAFILES' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_MUTEXES' is disabled. 2019-04-05 16:26:55 0 [Note] InnoDB: Buffer pool(s) load completed at 190405 16:26:55 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_CMP' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'FEEDBACK' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'user_variables' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_TABLESPACES_SCRUBBING' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'INNODB_SYS_SEMAPHORE_WAITS' is disabled. 2019-04-05 16:26:55 0 [Note] Plugin 'unix_socket' is disabled. 2019-04-05 16:26:55 0 [Warning] /home/mleich/Server/10.4/bld_asan/sql/mysqld: unknown option '--loose-pam-debug' 2019-04-05 16:26:55 0 [Warning] /home/mleich/Server/10.4/bld_asan/sql/mysqld: unknown option '--loose-aria' 2019-04-05 16:26:55 0 [Note] Server socket created on IP: '127.0.0.1'. 2019-04-05 16:26:56 0 [Note] Reading of all Master_info entries succeded 2019-04-05 16:26:56 0 [Note] Added new Master_info '' to hash table 2019-04-05 16:26:56 0 [Note] /home/mleich/Server/10.4/bld_asan/sql/mysqld: ready for connections. Version: '10.4.4-MariaDB-debug-log' socket: '/home/mleich/Server/10.4/bld_asan/mysql-test/var/tmp/mysqld.1.sock' port: 16000 Source distribution ================================================================= ==15203==ERROR: AddressSanitizer: heap-use-after-free on address 0x60300003aae0 at pc 0x564ff4abd6df bp 0x7f70c7aceed0 sp 0x7f70c7aceec0 READ of size 8 at 0x60300003aae0 thread T29 #0 0x564ff4abd6de in std::__cxx11::_List_base >::_M_clear() /usr/include/c++/7/bits/list.tcc:69 #1 0x564ff4abbcb3 in std::__cxx11::_List_base >::~_List_base() /usr/include/c++/7/bits/stl_list.h:442 #2 0x564ff4aaafcd in std::__cxx11::list >::~list() /usr/include/c++/7/bits/stl_list.h:733 #3 0x564ff4aae3f1 in ha_innobase_inplace_ctx::~ha_innobase_inplace_ctx() (/home/mleich/Server/10.4/bld_asan/sql/mysqld+0x20203f1) #4 0x564ff4aae499 in ha_innobase_inplace_ctx::~ha_innobase_inplace_ctx() (/home/mleich/Server/10.4/bld_asan/sql/mysqld+0x2020499) #5 0x564ff3f0a1fa in Alter_inplace_info::~Alter_inplace_info() /home/mleich/Server/10.4/sql/handler.h:2461 #6 0x564ff3effa72 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) /home/mleich/Server/10.4/sql/sql_table.cc:9868 #7 0x564ff406f315 in Sql_cmd_alter_table::execute(THD*) /home/mleich/Server/10.4/sql/sql_alter.cc:490 #8 0x564ff3cb8594 in mysql_execute_command(THD*) /home/mleich/Server/10.4/sql/sql_parse.cc:6344 #9 0x564ff3cc4194 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /home/mleich/Server/10.4/sql/sql_parse.cc:8154 #10 0x564ff3c98746 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/mleich/Server/10.4/sql/sql_parse.cc:1831 #11 0x564ff3c94f61 in do_command(THD*) /home/mleich/Server/10.4/sql/sql_parse.cc:1364 #12 0x564ff4057596 in do_handle_one_connection(CONNECT*) /home/mleich/Server/10.4/sql/sql_connect.cc:1398 #13 0x564ff4056e51 in handle_one_connection /home/mleich/Server/10.4/sql/sql_connect.cc:1301 #14 0x564ff55c1a94 in pfs_spawn_thread /home/mleich/Server/10.4/storage/perfschema/pfs.cc:1862 #15 0x7f70de8f77fb in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x77fb) #16 0x7f70ddb2db5e in clone (/lib/x86_64-linux-gnu/libc.so.6+0x114b5e) 0x60300003aae0 is located 0 bytes inside of 24-byte region [0x60300003aae0,0x60300003aaf8) freed by thread T29 here: #0 0x7f70dff312d0 in operator delete(void*) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe12d0) #1 0x564ff4aae3f9 in ha_innobase_inplace_ctx::~ha_innobase_inplace_ctx() (/home/mleich/Server/10.4/bld_asan/sql/mysqld+0x20203f9) #2 0x564ff4aae499 in ha_innobase_inplace_ctx::~ha_innobase_inplace_ctx() (/home/mleich/Server/10.4/bld_asan/sql/mysqld+0x2020499) #3 0x564ff3f0a1fa in Alter_inplace_info::~Alter_inplace_info() /home/mleich/Server/10.4/sql/handler.h:2461 #4 0x564ff3effa72 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) /home/mleich/Server/10.4/sql/sql_table.cc:9868 #5 0x564ff406f315 in Sql_cmd_alter_table::execute(THD*) /home/mleich/Server/10.4/sql/sql_alter.cc:490 #6 0x564ff3cb8594 in mysql_execute_command(THD*) /home/mleich/Server/10.4/sql/sql_parse.cc:6344 #7 0x564ff3cc4194 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /home/mleich/Server/10.4/sql/sql_parse.cc:8154 #8 0x564ff3c98746 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/mleich/Server/10.4/sql/sql_parse.cc:1831 #9 0x564ff3c94f61 in do_command(THD*) /home/mleich/Server/10.4/sql/sql_parse.cc:1364 #10 0x564ff4057596 in do_handle_one_connection(CONNECT*) /home/mleich/Server/10.4/sql/sql_connect.cc:1398 #11 0x564ff4056e51 in handle_one_connection /home/mleich/Server/10.4/sql/sql_connect.cc:1301 #12 0x564ff55c1a94 in pfs_spawn_thread /home/mleich/Server/10.4/storage/perfschema/pfs.cc:1862 #13 0x7f70de8f77fb in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x77fb) previously allocated by thread T29 here: #0 0x7f70dff307d8 in operator new(unsigned long, std::nothrow_t const&) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe07d8) #1 0x564ff4aa9030 in dict_table_t::instant_column(dict_table_t const&, unsigned long const*) /home/mleich/Server/10.4/storage/innobase/handler/handler0alter.cc:593 #2 0x564ff4aaed27 in ha_innobase_inplace_ctx::instant_column() (/home/mleich/Server/10.4/bld_asan/sql/mysqld+0x2020d27) #3 0x564ff4a6d7fa in innobase_instant_try /home/mleich/Server/10.4/storage/innobase/handler/handler0alter.cc:5474 #4 0x564ff4ab6821 in commit_try_norebuild(Alter_inplace_info*, ha_innobase_inplace_ctx*, TABLE*, TABLE const*, trx_t*, char const*) /home/mleich/Server/10.4/storage/innobase/handler/handler0alter.cc:10066 #5 0x564ff4a94976 in ha_innobase::commit_inplace_alter_table(TABLE*, Alter_inplace_info*, bool) /home/mleich/Server/10.4/storage/innobase/handler/handler0alter.cc:10720 #6 0x564ff448ba68 in handler::ha_commit_inplace_alter_table(TABLE*, Alter_inplace_info*, bool) /home/mleich/Server/10.4/sql/handler.cc:4712 #7 0x564ff3eefcfb in mysql_inplace_alter_table /home/mleich/Server/10.4/sql/sql_table.cc:7705 #8 0x564ff3eff8f7 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) /home/mleich/Server/10.4/sql/sql_table.cc:9969 #9 0x564ff406f315 in Sql_cmd_alter_table::execute(THD*) /home/mleich/Server/10.4/sql/sql_alter.cc:490 #10 0x564ff3cb8594 in mysql_execute_command(THD*) /home/mleich/Server/10.4/sql/sql_parse.cc:6344 #11 0x564ff3cc4194 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /home/mleich/Server/10.4/sql/sql_parse.cc:8154 #12 0x564ff3c98746 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/mleich/Server/10.4/sql/sql_parse.cc:1831 #13 0x564ff3c94f61 in do_command(THD*) /home/mleich/Server/10.4/sql/sql_parse.cc:1364 #14 0x564ff4057596 in do_handle_one_connection(CONNECT*) /home/mleich/Server/10.4/sql/sql_connect.cc:1398 #15 0x564ff4056e51 in handle_one_connection /home/mleich/Server/10.4/sql/sql_connect.cc:1301 #16 0x564ff55c1a94 in pfs_spawn_thread /home/mleich/Server/10.4/storage/perfschema/pfs.cc:1862 #17 0x7f70de8f77fb in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x77fb) Thread T29 created by T0 here: #0 0x7f70dfe87d2f in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x37d2f) #1 0x564ff55c1e81 in spawn_thread_v1 /home/mleich/Server/10.4/storage/perfschema/pfs.cc:1912 #2 0x564ff39c6334 in inline_mysql_thread_create /home/mleich/Server/10.4/include/mysql/psi/mysql_thread.h:1268 #3 0x564ff39dce92 in create_thread_to_handle_connection(CONNECT*) /home/mleich/Server/10.4/sql/mysqld.cc:6220 #4 0x564ff39dd64b in create_new_thread(CONNECT*) /home/mleich/Server/10.4/sql/mysqld.cc:6288 #5 0x564ff39dda13 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /home/mleich/Server/10.4/sql/mysqld.cc:6386 #6 0x564ff39de864 in handle_connections_sockets() /home/mleich/Server/10.4/sql/mysqld.cc:6544 #7 0x564ff39dc618 in mysqld_main(int, char**) /home/mleich/Server/10.4/sql/mysqld.cc:5876 #8 0x564ff39c41d9 in main /home/mleich/Server/10.4/sql/main.cc:25 #9 0x7f70dda3a1c0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x211c0) SUMMARY: AddressSanitizer: heap-use-after-free /usr/include/c++/7/bits/list.tcc:69 in std::__cxx11::_List_base >::_M_clear() Shadow bytes around the buggy address: 0x0c067ffff500: fa fa fd fd fd fd fa fa 00 00 00 00 fa fa 00 00 0x0c067ffff510: 00 00 fa fa 00 00 00 00 fa fa 00 00 00 00 fa fa 0x0c067ffff520: 00 00 00 00 fa fa 00 00 00 00 fa fa 00 00 00 00 0x0c067ffff530: fa fa fd fd fd fa fa fa fd fd fd fa fa fa fd fd 0x0c067ffff540: fd fd fa fa fd fd fd fd fa fa fd fd fd fa fa fa =>0x0c067ffff550: fd fd fd fa fa fa fd fd fd fd fa fa[fd]fd fd fa 0x0c067ffff560: fa fa fd fd fd fa fa fa fd fd fd fa fa fa fd fd 0x0c067ffff570: fd fa fa fa 00 00 00 00 fa fa 00 00 00 fa fa fa 0x0c067ffff580: fd fd fd fd fa fa fd fd fd fa fa fa fd fd fd fa 0x0c067ffff590: fa fa fd fd fd fa fa fa fd fd fd fa fa fa fd fd 0x0c067ffff5a0: fd fd fa fa 00 00 01 fa fa fa 00 00 00 fa fa fa 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 ==15203==ABORTING ----------SERVER LOG END------------- mysqltest failed but provided no output - saving '/home/mleich/Server/10.4/bld_asan/mysql-test/var/log/main.MDEV-7974-1-innodb/' to '/home/mleich/Server/10.4/bld_asan/mysql-test/var/log/main.MDEV-7974-1-innodb/' -------------------------------------------------------------------------- The servers were restarted 0 times Spent 0.000 of 23 seconds executing testcases Failure: Failed 1/1 tests, 0.00% were successful. Failing test(s): main.MDEV-7974-1 The log files in var/log may give you some hint of what went wrong. If you want to report this error, please read first the documentation at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html mysql-test-run: *** ERROR: there were failing test cases