mariadb/mysql-test/suite/innodb/r
Sergey Glukhov 60a66c451a Bug#38999 valgrind warnings for update statement in function compare_record()
Valgrind warning happpens because of uninitialized null bytes.
In row_sel_push_cache_row_for_mysql() function we fill fetch cache
with necessary field values, row_sel_store_mysql_rec() is called
for this and leaves null bytes untouched.
Later row_sel_pop_cached_row_for_mysql() rewrites table record
buffer with uninited null bytes. We can see the problem from the
test case:
At 'SELECT...' we call row_sel_push...->row_sel_store...->row_sel_pop_cached...
chain which rewrites table->record[0] buffer with uninitialized null bytes.
When we call 'UPDATE...' statement, compare_record uses this buffer and
valgrind warning occurs.
The fix is to init null bytes with default values.


mysql-test/suite/innodb/r/innodb_mysql.result:
  test case
mysql-test/suite/innodb/t/innodb_mysql.test:
  test case
mysql-test/t/ps_3innodb.test:
  enable valgrind testing
storage/innobase/row/row0sel.c:
  init null bytes with default values as they might be
  left uninitialized in some cases and these uninited bytes
  might be copied into mysql record buffer that leads to
  valgrind warnings on next use of the buffer.
2010-06-09 16:07:34 +04:00
..
innodb-autoinc-44030.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb-autoinc-optimize.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb-autoinc.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb-lock.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb-replace.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb-semi-consistent.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb-ucs2.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb.result Factor out innodb_multi_update.test from innodb.test 2010-05-05 13:40:01 +03:00
innodb_autoinc_lock_mode_zero.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb_bug21704.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug30919.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb_bug34053.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug34300.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug35220.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug38231.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug39438.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug40565.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug42101-nonzero.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug42101.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug42419.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb_bug44369.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug45357.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug46000.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug47621.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug47777.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00
innodb_bug48024.result Make the InnoDB FOREIGN KEY parser understand multi-statements. (Bug #48024) 2010-05-14 16:02:28 +03:00
innodb_bug49164.result Add an innodb test case for Bug #49164. 2010-05-10 13:37:52 +02:00
innodb_bug51920.result mysql-5.1-innodb: add error codes to innodb_bug51920.test 2010-04-22 14:16:14 -05:00
innodb_bug52663.result row_search_for_mysql(): Never try semi-consistent read in unique searches. 2010-04-26 13:27:25 +03:00
innodb_bug53674.result Bug#53674: InnoDB: Error: unlock row could not find a 4 mode lock on the record 2010-06-02 13:26:37 +03:00
innodb_gis.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb_lock_wait_timeout_1.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb_misc1.result Split the innodb.innodb mysql-test. 2010-04-27 09:09:08 +03:00
innodb_multi_update.result Factor out innodb_multi_update.test from innodb.test 2010-05-05 13:40:01 +03:00
innodb_mysql.result Bug#38999 valgrind warnings for update statement in function compare_record() 2010-06-09 16:07:34 +04:00
innodb_mysql_rbk.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb_notembedded.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb_timeout_rollback.result Move some InnoDB tests to mysql-test/suite/innodb. 2010-06-03 12:50:32 +03:00
innodb_trx_weight.result Remove outdated InnoDB Plugin tests from mysql-test/suite/innodb, 2010-04-12 14:56:24 +03:00