Bug #65585 Valgrind warning: Syscall param pwrite64(buf) points to uninitialised byte(s)
Description:
==10770== Syscall param pwrite64(buf) points to uninitialised byte(s)
==10770== at 0x5046A73: ??? (syscall-template.S:82)
==10770== by 0x8C1009: my_pwrite (my_pread.c:162)
==10770== by 0xAEE868: inline_mysql_file_pwrite (mysql_file.h:1201)
==10770== by 0xAF313A: mi_state_info_write (mi_open.c:904)
==10770== by 0xAD686E: update_state_info (mi_check.c:4450)
==10770== by 0xAC36E1: ha_myisam::repair(THD*, st_mi_check_param&, bool) (ha_myisam.cc:1162)
==10770== by 0xAC2D03: ha_myisam::optimize(THD*, st_ha_check_opt*) (ha_myisam.cc:1019)
==10770== by 0x7515A2: handler::ha_optimize(THD*, st_ha_check_opt*) (handler.cc:3414)
==10770== by 0xB2FEE6: handle_opt_part(THD*, st_ha_check_opt*, handler*, unsigned int) (ha_partition.cc:1046)
==10770== by 0xB305CF: ha_partition::handle_opt_partitions(THD*, st_ha_check_opt*, unsigned int) (ha_partition.cc:1197)
==10770== by 0xB2FCA6: ha_partition::optimize(THD*, st_ha_check_opt*) (ha_partition.cc:919)
==10770== by 0x7515A2: handler::ha_optimize(THD*, st_ha_check_opt*) (handler.cc:3414)
==10770== by 0x6D47D7: mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char 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*)) (sql_admin.cc:601)
==10770== by 0x6D5FFF: Optimize_table_statement::execute(THD*) (sql_admin.cc:1019)
==10770== by 0x8928C9: Alter_table_optimize_partition_statement::execute(THD*) (sql_partition_admin.cc:84)
==10770== by 0x5EACB1: mysql_execute_command(THD*) (sql_parse.cc:4430)
==10770== Address 0x40b025c is on thread 13's stack
How to repeat:
CREATE TABLE t1 (a INT, KEY (a)) ENGINE=MyISAM
PARTITION BY KEY(a) PARTITIONS 2;
INSERT INTO t1 VALUES (3),(5),(1),(2);
ALTER TABLE t1 DISABLE KEYS;
ALTER TABLE t1 OPTIMIZE PARTITION p0;
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.