mysqltest: At line 9: query 'UPDATE t SET a=0' failed: 2013: Lost connection to MySQL server during query
|
|
|
Server [mysqld.1 - pid: 90995, winpid: 90995, exit: 0] failed during test run
|
Server log from this test:
|
----------SERVER LOG START-----------
|
$ ddd --command /home/sanja/maria/git/10.4/mysql-test/var/tmp/dddinit.mysqld.1 /home/sanja/maria/git/10.4/sql/mysqld
|
2023-09-25 11:15:25 0 [Note] Starting MariaDB 10.4.32-MariaDB-debug-log source revision b6773f58196d74e0a0be83b4499fcb82799e1144 as process 91015
|
2023-09-25 11:15:25 0 [Note] Plugin 'partition' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'SEQUENCE' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'InnoDB' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_DATAFILES' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_LOCKS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_MUTEXES' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_CMPMEM' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_CMP_PER_INDEX' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_CMP' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_LOCK_WAITS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_BUFFER_PAGE_LRU' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'FEEDBACK' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'user_variables' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_FOREIGN_COLS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_BUFFER_POOL_STATS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_TRX' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_FOREIGN' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_TABLES' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_BUFFER_PAGE' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_METRICS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_TABLESPACES_SCRUBBING' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'INNODB_SYS_SEMAPHORE_WAITS' is disabled.
|
2023-09-25 11:15:25 0 [Note] Plugin 'unix_socket' is disabled.
|
2023-09-25 11:15:25 0 [Warning] /home/sanja/maria/git/10.4/sql/mysqld: unknown option '--loose-pam-debug'
|
2023-09-25 11:15:25 0 [Warning] /home/sanja/maria/git/10.4/sql/mysqld: unknown option '--loose-aria'
|
2023-09-25 11:15:25 0 [Note] Server socket created on IP: '127.0.0.1'.
|
2023-09-25 11:15:25 0 [Note] Reading of all Master_info entries succeeded
|
2023-09-25 11:15:25 0 [Note] Added new Master_info '' to hash table
|
2023-09-25 11:15:25 0 [Note] /home/sanja/maria/git/10.4/sql/mysqld: ready for connections.
|
Version: '10.4.32-MariaDB-debug-log' socket: '/home/sanja/maria/git/10.4/mysql-test/var/tmp/mysqld.1.sock' port: 16000 Source distribution
|
=================================================================
|
==91015==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000025818 at pc 0x55556077ebbf bp 0x7fffedfa9d50 sp 0x7fffedfa9d40
|
READ of size 1 at 0x604000025818 thread T5
|
#0 0x55556077ebbe in Field::set_notnull(long long) /home/sanja/maria/git/10.4/sql/field.h:1211
|
#1 0x55556275004a in save_int_value_in_field /home/sanja/maria/git/10.4/sql/item.cc:6794
|
#2 0x555562750588 in Item_int::save_in_field(Field*, bool) /home/sanja/maria/git/10.4/sql/item.cc:6801
|
#3 0x5555617d211c in TABLE::update_virtual_fields(handler*, enum_vcol_update_mode) /home/sanja/maria/git/10.4/sql/table.cc:8590
|
#4 0x5555625e064e in handler::ha_rnd_next(unsigned char*) /home/sanja/maria/git/10.4/sql/handler.cc:2920
|
#5 0x5555634145b5 in rr_sequential(READ_RECORD*) /home/sanja/maria/git/10.4/sql/records.cc:485
|
#6 0x555560a141f4 in READ_RECORD::read_record() /home/sanja/maria/git/10.4/sql/records.h:70
|
#7 0x5555616a7d5f in mysql_update(THD*, TABLE_LIST*, List<Item>&, List<Item>&, Item*, unsigned int, st_order*, unsigned long long, bool, unsigned long long*, unsigned long long*) /home/sanja/maria/git/10.4/sql/sql_update.cc:1006
|
#8 0x555560f1865b in mysql_execute_command(THD*) /home/sanja/maria/git/10.4/sql/sql_parse.cc:4451
|
#9 0x555560f64caf in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /home/sanja/maria/git/10.4/sql/sql_parse.cc:8012
|
#10 0x555560ee188e in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/sanja/maria/git/10.4/sql/sql_parse.cc:1857
|
#11 0x555560ed5a61 in do_command(THD*) /home/sanja/maria/git/10.4/sql/sql_parse.cc:1378
|
#12 0x5555619705a6 in do_handle_one_connection(CONNECT*) /home/sanja/maria/git/10.4/sql/sql_connect.cc:1420
|
#13 0x55556196f03e in handle_one_connection /home/sanja/maria/git/10.4/sql/sql_connect.cc:1324
|
#14 0x555563f4f540 in pfs_spawn_thread /home/sanja/maria/git/10.4/storage/perfschema/pfs.cc:1869
|
#15 0x7ffff708f189 in start_thread nptl/pthread_create.c:444
|
#16 0x7ffff711dbcf in clone3 ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
|
0x604000025818 is located 8 bytes inside of 40-byte region [0x604000025810,0x604000025838)
|
freed by thread T5 here:
|
#0 0x555560635570 in __interceptor_free.part.0 (/home/sanja/maria/git/10.4/sql/mysqld+0xb0e1570)
|
#1 0x5555653bb519 in my_free /home/sanja/maria/git/10.4/mysys/my_malloc.c:222
|
#2 0x555565111274 in mi_repair_by_sort /home/sanja/maria/git/10.4/storage/myisam/mi_check.c:2559
|
#3 0x5555650bb445 in ha_myisam::repair(THD*, st_handler_check_param&, bool) /home/sanja/maria/git/10.4/storage/myisam/ha_myisam.cc:1344
|
#4 0x5555650c3c54 in ha_myisam::enable_indexes(unsigned int) /home/sanja/maria/git/10.4/storage/myisam/ha_myisam.cc:1683
|
#5 0x5555650c85c1 in ha_myisam::end_bulk_insert() /home/sanja/maria/git/10.4/storage/myisam/ha_myisam.cc:1878
|
#6 0x55556260e032 in handler::ha_end_bulk_insert() /home/sanja/maria/git/10.4/sql/handler.cc:4491
|
#7 0x555560e94a57 in mysql_load(THD*, sql_exchange const*, TABLE_LIST*, List<Item>&, List<Item>&, List<Item>&, enum_duplicates, bool, bool) /home/sanja/maria/git/10.4/sql/sql_load.cc:681
|
#8 0x555560f27324 in mysql_execute_command(THD*) /home/sanja/maria/git/10.4/sql/sql_parse.cc:5034
|
#9 0x555560f64caf in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /home/sanja/maria/git/10.4/sql/sql_parse.cc:8012
|
#10 0x555560ee188e in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/sanja/maria/git/10.4/sql/sql_parse.cc:1857
|
#11 0x555560ed5a61 in do_command(THD*) /home/sanja/maria/git/10.4/sql/sql_parse.cc:1378
|
#12 0x5555619705a6 in do_handle_one_connection(CONNECT*) /home/sanja/maria/git/10.4/sql/sql_connect.cc:1420
|
#13 0x55556196f03e in handle_one_connection /home/sanja/maria/git/10.4/sql/sql_connect.cc:1324
|
#14 0x555563f4f540 in pfs_spawn_thread /home/sanja/maria/git/10.4/storage/perfschema/pfs.cc:1869
|
#15 0x7ffff708f189 in start_thread nptl/pthread_create.c:444
|
|
previously allocated by thread T5 here:
|
#0 0x555560636a1f in malloc (/home/sanja/maria/git/10.4/sql/mysqld+0xb0e2a1f)
|
#1 0x5555653ba79a in my_malloc /home/sanja/maria/git/10.4/mysys/my_malloc.c:101
|
#2 0x5555653bad6e in my_realloc /home/sanja/maria/git/10.4/mysys/my_malloc.c:155
|
#3 0x5555651ba188 in mi_alloc_rec_buff /home/sanja/maria/git/10.4/storage/myisam/mi_open.c:762
|
#4 0x55556510a96f in mi_repair_by_sort /home/sanja/maria/git/10.4/storage/myisam/mi_check.c:2240
|
#5 0x5555650bb445 in ha_myisam::repair(THD*, st_handler_check_param&, bool) /home/sanja/maria/git/10.4/storage/myisam/ha_myisam.cc:1344
|
#6 0x5555650c3c54 in ha_myisam::enable_indexes(unsigned int) /home/sanja/maria/git/10.4/storage/myisam/ha_myisam.cc:1683
|
#7 0x5555650c85c1 in ha_myisam::end_bulk_insert() /home/sanja/maria/git/10.4/storage/myisam/ha_myisam.cc:1878
|
#8 0x55556260e032 in handler::ha_end_bulk_insert() /home/sanja/maria/git/10.4/sql/handler.cc:4491
|
#9 0x555560e94a57 in mysql_load(THD*, sql_exchange const*, TABLE_LIST*, List<Item>&, List<Item>&, List<Item>&, enum_duplicates, bool, bool) /home/sanja/maria/git/10.4/sql/sql_load.cc:681
|
#10 0x555560f27324 in mysql_execute_command(THD*) /home/sanja/maria/git/10.4/sql/sql_parse.cc:5034
|
#11 0x555560f64caf in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /home/sanja/maria/git/10.4/sql/sql_parse.cc:8012
|
#12 0x555560ee188e in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/sanja/maria/git/10.4/sql/sql_parse.cc:1857
|
#13 0x555560ed5a61 in do_command(THD*) /home/sanja/maria/git/10.4/sql/sql_parse.cc:1378
|
#14 0x5555619705a6 in do_handle_one_connection(CONNECT*) /home/sanja/maria/git/10.4/sql/sql_connect.cc:1420
|
#15 0x55556196f03e in handle_one_connection /home/sanja/maria/git/10.4/sql/sql_connect.cc:1324
|
#16 0x555563f4f540 in pfs_spawn_thread /home/sanja/maria/git/10.4/storage/perfschema/pfs.cc:1869
|
#17 0x7ffff708f189 in start_thread nptl/pthread_create.c:444
|
|
Thread T5 created by T0 here:
|
#0 0x5555605c20a5 in __interceptor_pthread_create (/home/sanja/maria/git/10.4/sql/mysqld+0xb06e0a5)
|
#1 0x555563f4fdc7 in spawn_thread_v1 /home/sanja/maria/git/10.4/storage/perfschema/pfs.cc:1919
|
#2 0x555560685348 in inline_mysql_thread_create /home/sanja/maria/git/10.4/include/mysql/psi/mysql_thread.h:1275
|
#3 0x5555606aacdc in create_thread_to_handle_connection(CONNECT*) /home/sanja/maria/git/10.4/sql/mysqld.cc:6289
|
#4 0x5555606abee4 in create_new_thread(CONNECT*) /home/sanja/maria/git/10.4/sql/mysqld.cc:6359
|
#5 0x5555606ac941 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /home/sanja/maria/git/10.4/sql/mysqld.cc:6457
|
#6 0x5555606ae22e in handle_connections_sockets() /home/sanja/maria/git/10.4/sql/mysqld.cc:6615
|
#7 0x5555606aa094 in mysqld_main(int, char**) /home/sanja/maria/git/10.4/sql/mysqld.cc:5947
|
#8 0x555560681cd3 in main /home/sanja/maria/git/10.4/sql/main.cc:25
|
#9 0x7ffff7023a8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /home/sanja/maria/git/10.4/sql/field.h:1211 in Field::set_notnull(long long)
|
Shadow bytes around the buggy address:
|
0x0c087fffcab0: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
|
0x0c087fffcac0: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 fa
|
0x0c087fffcad0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
|
0x0c087fffcae0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 00
|
0x0c087fffcaf0: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
|
=>0x0c087fffcb00: fa fa fd[fd]fd fd fd fa fa fa fd fd fd fd fd fa
|
0x0c087fffcb10: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
|
0x0c087fffcb20: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
|
0x0c087fffcb30: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 00
|
0x0c087fffcb40: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
|
0x0c087fffcb50: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
|
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
|
==91015==ABORTING
|
----------SERVER LOG END-------------
|
|
|
- saving '/home/sanja/maria/git/10.4/mysql-test/var/log/main.test/' to '/home/sanja/maria/git/10.4/mysql-test/var/log/main.test/'
|
--------------------------------------------------------------------------
|
The servers were restarted 0 times
|
Spent 0.000 of 1595 seconds executing testcases
|
|
|