Details
-
Bug
-
Status: In Testing (View Workflow)
-
Critical
-
Resolution: Unresolved
-
N/A
-
None
Description
This is not an important scenario as such, but given it's a regression and I don't know whether it only affects LOAD INDEX, I'll file it as critical.
--source include/have_innodb.inc
|
|
CREATE TABLE t (pk INT PRIMARY KEY) ENGINE=InnoDB; |
LOAD INDEX INTO CACHE t; |
|
# Cleanup
|
DROP TABLE t; |
bb-11.8-check-table 01b0c6c996db756fc40d51178d669fcfbec7a1d7 |
==1614633==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0xb65885 in check_table_referential_checks_needed(THD*) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_base.h:404:10
|
#1 0xb65885 in Check_table_prelocking_strategy::may_need_prelocking(THD*, TABLE_LIST*) const /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_base.h:522:12
|
#2 0xb2d24d in extend_table_list(THD*, TABLE_LIST*, Prelocking_strategy*, bool) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_base.cc:3913:52
|
#3 0xb2d24d in open_and_process_table(THD*, TABLE_LIST*, unsigned int*, unsigned int, Prelocking_strategy*, bool, Open_table_context*) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_base.cc:4236:10
|
#4 0xb2d24d in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_base.cc:4662:14
|
#5 0xb395ae in open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_base.cc:5682:7
|
#6 0x148b3fa in open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_base.h:286:10
|
#7 0x148b3fa in open_only_one_table(THD*, TABLE_LIST*, bool, bool, Prelocking_strategy*) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_admin.cc:439:18
|
#8 0x1472c8f in mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, st_mysql_const_lex_string const*, thr_lock_type, bool, bool, unsigned int, int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::*)(THD*, st_ha_check_opt*), int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), bool) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_admin.cc:654:19
|
#9 0x1481a3c in mysql_preload_keys(THD*, TABLE_LIST*) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_admin.cc:1604:3
|
#10 0xd9e241 in mysql_execute_command(THD*, bool) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_parse.cc:4108:11
|
#11 0xd8176f in mysql_parse(THD*, char*, unsigned int, Parser_state*) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_parse.cc:7901:18
|
#12 0xd75bf3 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_parse.cc:1903:7
|
#13 0xd832ab in do_command(THD*, bool) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_parse.cc:1416:17
|
#14 0x142bb0d in do_handle_one_connection(CONNECT*, bool) /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_connect.cc:1415:11
|
#15 0x142b13a in handle_one_connection /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_connect.cc:1327:5
|
#16 0x2859923 in pfs_spawn_thread /data/bld/preview-11.8-bb-11.8-check-table-msan/storage/perfschema/pfs.cc:2198:3
|
#17 0x7ff7e38a9043 in start_thread nptl/./nptl/pthread_create.c:442:8
|
#18 0x7ff7e392961b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
|
Memory was marked as uninitialized
|
#0 0x793ffe in __msan_allocated_memory (/mnt8t/bld/preview-11.8-bb-11.8-check-table-msan/sql/mariadbd+0x793ffe)
|
#1 0x3b3dcb9 in my_malloc /data/bld/preview-11.8-bb-11.8-check-table-msan/mysys/my_malloc.c:120:7
|
|
SUMMARY: MemorySanitizer: use-of-uninitialized-value /data/bld/preview-11.8-bb-11.8-check-table-msan/sql/sql_base.h:404:10 in check_table_referential_checks_needed(THD*)
|
Exiting
|
Attachments
Issue Links
- is caused by
-
MDEV-34309 CHECK TABLE should check that foreign key relations are correct
-
- In Testing
-