-- before patching rm -rf CMakeCache.txt cmake . -DCMAKE_INSTALL_PREFIX=/export/umesh/server/source/bugs/fb/5635 -DWITH_VALGRIND=1 -DWITH_DEBUG=1 -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF make -j32 && make install cd /export/umesh/server/source/bugs/fb/5635/mysql-test [umshastr@hod03]/export/umesh/server/source/bugs/fb/5635/mysql-test: ./mtr --valgrind --debug bug85301 Logging: ./mtr --valgrind --debug bug85301 2017-03-06 07:39:17 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path. 2017-03-06 07:39:17 0 [Note] /export/umesh/server/source/bugs/fb/5635/bin/mysqld-debug (mysqld 5.6.35-debug) starting as process 21448 ... 2017-03-06 07:39:17 21448 [Note] Plugin 'FEDERATED' is disabled. 2017-03-06 07:39:17 21448 [Note] Binlog end 2017-03-06 07:39:17 21448 [Note] Shutting down plugin 'CSV' 2017-03-06 07:39:17 21448 [Note] Shutting down plugin 'MyISAM' MySQL Version 5.6.35 Turning on valgrind for all executables Running valgrind with options " --show-reachable=yes " Turning off --check-testcases to save time when valgrinding Checking supported features... - SSL connections supported - binaries are debug compiled Collecting tests... Removing old var directory... Creating var directory '/export/umesh/server/source/bugs/fb/5635/mysql-test/var'... Installing system database... Using parallel: 1 ============================================================================== TEST RESULT TIME (ms) or COMMENT -------------------------------------------------------------------------- worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009 CREATE TABLE t1 (i INT PRIMARY KEY) ENGINE=INNODB PARTITION BY KEY(i) PARTITIONS 4; INSERT INTO t1 VALUES(1); ALTER TABLE t1 REBUILD PARTITION p0; DROP TABLE IF EXISTS t1; main.bug85301 [ pass ] 7198 valgrind_report [ pass ] -------------------------------------------------------------------------- The servers were restarted 0 times Spent 7.198 of 42 seconds executing testcases Completed: All 2 tests were successful. -- After patching rm -rf CMakeCache.txt cmake . -DCMAKE_INSTALL_PREFIX=/export/umesh/server/source/bugs/fb/5635 -DWITH_VALGRIND=1 -DWITH_DEBUG=1 -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF make -j32 && make install cd /export/umesh/server/source/bugs/fb/5635/mysql-test [umshastr@hod03]/export/umesh/server/source/bugs/fb/5635/mysql-test: ./mtr --valgrind --debug bug85301 Logging: ./mtr --valgrind --debug bug85301 2017-03-06 07:47:58 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path. 2017-03-06 07:47:58 0 [Note] /export/umesh/server/source/bugs/fb/5635/bin/mysqld-debug (mysqld 5.6.35-debug) starting as process 28293 ... 2017-03-06 07:47:58 28293 [Note] Plugin 'FEDERATED' is disabled. 2017-03-06 07:47:58 28293 [Note] Binlog end 2017-03-06 07:47:58 28293 [Note] Shutting down plugin 'CSV' 2017-03-06 07:47:58 28293 [Note] Shutting down plugin 'MyISAM' MySQL Version 5.6.35 Turning on valgrind for all executables Running valgrind with options " --show-reachable=yes " Turning off --check-testcases to save time when valgrinding Checking supported features... - SSL connections supported - binaries are debug compiled Collecting tests... Removing old var directory... Creating var directory '/export/umesh/server/source/bugs/fb/5635/mysql-test/var'... Installing system database... Using parallel: 1 ============================================================================== TEST RESULT TIME (ms) or COMMENT -------------------------------------------------------------------------- worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009 CREATE TABLE t1 (i INT PRIMARY KEY) ENGINE=INNODB PARTITION BY KEY(i) PARTITIONS 4; INSERT INTO t1 VALUES(1); ALTER TABLE t1 REBUILD PARTITION p0; DROP TABLE IF EXISTS t1; main.bug85301 [ pass ] 7224 worker[1] Valgrind report from /export/umesh/server/source/bugs/fb/5635/mysql-test/var/log/mysqld.1.trace after tests: main.bug85301 -------------------------------------------------------------------------- HEAP SUMMARY: in use at exit: 67,907,797 bytes in 1,102 blocks total heap usage: 28,232 allocs, 27,130 frees, 112,657,595 bytes allocated 8 bytes in 1 blocks are definitely lost in loss record 1 of 374 at 0x4C29BFD: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0xAB87AD: my_malloc (my_malloc.c:38) by 0x83F30E: String::realloc(unsigned int, bool) (sql_string.cc:110) by 0x83FE59: String::append(char const*, unsigned int) (sql_string.cc:477) by 0x83FED4: String::append(char const*) (sql_string.cc:491) by 0xAFE30A: ha_innobase::ha_innobase(handlerton*, TABLE_SHARE*) (ha_innodb.cc:2369) by 0xAFCA20: innobase_create_handler(handlerton*, TABLE_SHARE*, st_mem_root*) (ha_innodb.cc:1166) by 0x63ABA9: get_new_handler(TABLE_SHARE*, st_mem_root*, handlerton*) (handler.cc:442) by 0xE56AF5: ha_partition::change_partitions(st_ha_create_information*, char const*, unsigned long long*, unsigned long long*, unsigned char const*, unsigned long) (ha_partition.cc:1848) by 0x64388A: handler::ha_change_partitions(st_ha_create_information*, char const*, unsigned long long*, unsigned long long*, unsigned char const*, unsigned long) (handler.cc:4575) by 0x9DECA9: mysql_change_partitions(st_lock_param_type*) (sql_partition.cc:5877) by 0x9E1A7C: fast_alter_partition_table(THD*, TABLE*, Alter_info*, st_ha_create_information*, TABLE_LIST*, char*, char const*, partition_info*) (sql_partition.cc:7242) by 0x8552E6: mysql_alter_table(THD*, char*, char*, st_ha_create_information*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) (sql_table.cc:8236) by 0x99BA06: Sql_cmd_alter_table::execute(THD*) (sql_alter.cc:313) by 0x7E65CA: mysql_execute_command(THD*) (sql_parse.cc:5023) by 0x7E9A1F: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6433) LEAK SUMMARY: definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks still reachable: 0 bytes in 0 blocks suppressed: 67,907,789 bytes in 1,101 blocks For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 319 from 319) valgrind_report [ fail ] Test ended at 2017-03-06 07:48:40 Valgrind reported failures at shutdown, see above -------------------------------------------------------------------------- The servers were restarted 0 times Spent 7.224 of 42 seconds executing testcases Completed: Failed 1/2 tests, 50.00% were successful. Failing test(s): valgrind_report The log files in var/log may give you some hint of what went wrong. If you want to report this error, please read first the documentation at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html mysql-test-run: *** ERROR: there were failing test cases [umshastr@hod03]/export/umesh/server/source/bugs/fb/5635/mysql-test: