Bug #65585 Valgrind warning: Syscall param pwrite64(buf) points to uninitialised byte(s)
Submitted: 11 Jun 2012 15:40 Modified: 27 Sep 2012 18:20
Reporter: Elena Stepanova Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Partitions Severity:S3 (Non-critical)
Version:5.5, 5.6, 5.1 OS:Any
Assigned to: CPU Architecture:Any

[11 Jun 2012 15:40] Elena Stepanova
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;
[11 Jun 2012 18:22] Sveta Smirnova
Thank you for the report.

Verified as described.
[27 Sep 2012 18:20] Jon Stephens
Fixed in 5.6.8 and trunk.

Closed.