export LD_LIBRARY_PATH=/export/umesh/utils/GCC-7.3.0/lib64 export CC=/export/umesh/utils/GCC-7.3.0/bin/gcc export CPP=/export/umesh/utils/GCC-7.3.0/bin/cpp export CXX=/export/umesh/utils/GCC-7.3.0/bin/c++ rm -rf bld/ mkdir bld && cd bld rm -rf CMakeCache.txt /export/umesh/utils/cmake-3.14.4/bin/cmake .. \ -DBUILD_CONFIG=mysql_release \ -DINSTALL_LAYOUT=STANDALONE \ -DWITH_NDBCLUSTER_STORAGE_ENGINE=0 \ -DCMAKE_INSTALL_PREFIX=$PWD \ -DWITH_BOOST=../boost \ -DWITH_UNIT_TESTS=0 \ -DWITH_VALGRIND=1 \ -DWITH_DEBUG=1 make -j32 make install ./mtr --valgrind --mem --async-client main.flush_read_lock_kill Logging: /export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/mysql-test/mysql-test-run.pl --valgrind --mem --async-client main.flush_read_lock_kill MySQL Version 8.0.18 Too long tmpdir path '/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/bld/mysql-test/var/tmp' creating a shorter one - Using tmpdir: '/tmp/VGVAsiN5AZ' Turning on valgrind for all executables Running valgrind with options " --tool=memcheck --num-callers=16 --show-reachable=yes --suppressions=/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/mysql-test/valgrind.supp " Turning off --check-testcases to save time when valgrinding Checking supported features - Binaries are debug compiled Using 'all' suites Collecting tests Checking leftover processes Removing old var directory Creating var directory '/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/bld/mysql-test/var' - symlinking 'var' to '/dev/shm/var_auto_33ON' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ [ 50%] main.flush_read_lock_kill [ fail ] Test ended at 2019-11-27 06:54:26 CURRENT_TEST: main.flush_read_lock_kill ==30392== Memcheck, a memory error detector ==30392== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==30392== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info ==30392== Command: /export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/bld/runtime_output_directory//mysqltest --defaults-file=/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/bld/mysql-test/var/my.cnf --silent --tmpdir=/tmp/VGVAsiN5AZ --character-sets-dir=/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/share/charsets --logdir=/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/bld/mysql-test/var/log --database=test --plugin_dir=/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/bld/plugin_output_directory --timer-file=/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/bld/mysql-test/var/log/timer --async-client --test-file=/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/mysql-test/t/flush_read_lock_kill.test --tail-lines=20 --result-file=/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/mysql-test/r/flush_read_lock_kill.result ==30392== ==30392== Invalid write of size 1 ==30392== at 0x52357C: cli_safe_read_with_ok_nonblocking(MYSQL*, bool, bool*, unsigned long*) (client.cc:1106) ==30392== by 0x5235F4: cli_safe_read_nonblocking (client.cc:1117) ==30392== by 0x5342C3: cli_read_query_result_nonblocking(MYSQL*) (client.cc:7042) ==30392== by 0x4C1566: async_mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:816) ==30392== by 0x4C1D5E: mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:937) ==30392== by 0x4D4B15: run_query_normal(st_connection*, st_command*, int, char const*, unsigned long, DYNAMIC_STRING*, DYNAMIC_STRING*) (mysqltest.cc:8204) ==30392== by 0x4D5E3B: run_query(st_connection*, st_command*, int) (mysqltest.cc:8671) ==30392== by 0x4D7D3B: main (mysqltest.cc:9534) ==30392== Address 0x8b2c4d0 is 192 bytes inside a block of size 200 free'd ==30392== at 0x4C2AD17: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==30392== by 0x5BD2C7: my_raw_free(void*) (my_malloc.cc:281) ==30392== by 0x5BD152: my_free(void*) (my_malloc.cc:153) ==30392== by 0x53F0B4: net_extension_free(NET*) (net_serv.cc:108) ==30392== by 0x53F352: net_end(NET*) (net_serv.cc:169) ==30392== by 0x525CF0: end_server (client.cc:1814) ==30392== by 0x5237D3: cli_safe_read_with_ok_complete(MYSQL*, bool, bool*, unsigned long) (client.cc:1165) ==30392== by 0x52356D: cli_safe_read_with_ok_nonblocking(MYSQL*, bool, bool*, unsigned long*) (client.cc:1102) ==30392== by 0x5235F4: cli_safe_read_nonblocking (client.cc:1117) ==30392== by 0x5342C3: cli_read_query_result_nonblocking(MYSQL*) (client.cc:7042) ==30392== by 0x4C1566: async_mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:816) ==30392== by 0x4C1D5E: mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:937) ==30392== by 0x4D4B15: run_query_normal(st_connection*, st_command*, int, char const*, unsigned long, DYNAMIC_STRING*, DYNAMIC_STRING*) (mysqltest.cc:8204) ==30392== by 0x4D5E3B: run_query(st_connection*, st_command*, int) (mysqltest.cc:8671) ==30392== by 0x4D7D3B: main (mysqltest.cc:9534) ==30392== ==30392== Invalid write of size 8 ==30392== at 0x523587: cli_safe_read_with_ok_nonblocking(MYSQL*, bool, bool*, unsigned long*) (client.cc:1107) ==30392== by 0x5235F4: cli_safe_read_nonblocking (client.cc:1117) ==30392== by 0x5342C3: cli_read_query_result_nonblocking(MYSQL*) (client.cc:7042) ==30392== by 0x4C1566: async_mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:816) ==30392== by 0x4C1D5E: mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:937) ==30392== by 0x4D4B15: run_query_normal(st_connection*, st_command*, int, char const*, unsigned long, DYNAMIC_STRING*, DYNAMIC_STRING*) (mysqltest.cc:8204) ==30392== by 0x4D5E3B: run_query(st_connection*, st_command*, int) (mysqltest.cc:8671) ==30392== by 0x4D7D3B: main (mysqltest.cc:9534) ==30392== Address 0x8b2c4c0 is 176 bytes inside a block of size 200 free'd ==30392== at 0x4C2AD17: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==30392== by 0x5BD2C7: my_raw_free(void*) (my_malloc.cc:281) ==30392== by 0x5BD152: my_free(void*) (my_malloc.cc:153) ==30392== by 0x53F0B4: net_extension_free(NET*) (net_serv.cc:108) ==30392== by 0x53F352: net_end(NET*) (net_serv.cc:169) ==30392== by 0x525CF0: end_server (client.cc:1814) ==30392== by 0x5237D3: cli_safe_read_with_ok_complete(MYSQL*, bool, bool*, unsigned long) (client.cc:1165) ==30392== by 0x52356D: cli_safe_read_with_ok_nonblocking(MYSQL*, bool, bool*, unsigned long*) (client.cc:1102) ==30392== by 0x5235F4: cli_safe_read_nonblocking (client.cc:1117) ==30392== by 0x5342C3: cli_read_query_result_nonblocking(MYSQL*) (client.cc:7042) ==30392== by 0x4C1566: async_mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:816) ==30392== by 0x4C1D5E: mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:937) ==30392== by 0x4D4B15: run_query_normal(st_connection*, st_command*, int, char const*, unsigned long, DYNAMIC_STRING*, DYNAMIC_STRING*) (mysqltest.cc:8204) ==30392== by 0x4D5E3B: run_query(st_connection*, st_command*, int) (mysqltest.cc:8671) ==30392== by 0x4D7D3B: main (mysqltest.cc:9534) ==30392== ==30392== Invalid write of size 4 ==30392== at 0x5342E5: cli_read_query_result_nonblocking(MYSQL*) (client.cc:7047) ==30392== by 0x4C1566: async_mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:816) ==30392== by 0x4C1D5E: mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:937) ==30392== by 0x4D4B15: run_query_normal(st_connection*, st_command*, int, char const*, unsigned long, DYNAMIC_STRING*, DYNAMIC_STRING*) (mysqltest.cc:8204) ==30392== by 0x4D5E3B: run_query(st_connection*, st_command*, int) (mysqltest.cc:8671) ==30392== by 0x4D7D3B: main (mysqltest.cc:9534) ==30392== Address 0x8b2c450 is 64 bytes inside a block of size 200 free'd ==30392== at 0x4C2AD17: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==30392== by 0x5BD2C7: my_raw_free(void*) (my_malloc.cc:281) ==30392== by 0x5BD152: my_free(void*) (my_malloc.cc:153) ==30392== by 0x53F0B4: net_extension_free(NET*) (net_serv.cc:108) ==30392== by 0x53F352: net_end(NET*) (net_serv.cc:169) ==30392== by 0x525CF0: end_server (client.cc:1814) ==30392== by 0x5237D3: cli_safe_read_with_ok_complete(MYSQL*, bool, bool*, unsigned long) (client.cc:1165) ==30392== by 0x52356D: cli_safe_read_with_ok_nonblocking(MYSQL*, bool, bool*, unsigned long*) (client.cc:1102) ==30392== by 0x5235F4: cli_safe_read_nonblocking (client.cc:1117) ==30392== by 0x5342C3: cli_read_query_result_nonblocking(MYSQL*) (client.cc:7042) ==30392== by 0x4C1566: async_mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:816) ==30392== by 0x4C1D5E: mysql_read_query_result_wrapper(MYSQL*) (mysqltest.cc:937) ==30392== by 0x4D4B15: run_query_normal(st_connection*, st_command*, int, char const*, unsigned long, DYNAMIC_STRING*, DYNAMIC_STRING*) (mysqltest.cc:8204) ==30392== by 0x4D5E3B: run_query(st_connection*, st_command*, int) (mysqltest.cc:8671) ==30392== by 0x4D7D3B: main (mysqltest.cc:9534) ==30392== ==30392== ==30392== HEAP SUMMARY: ==30392== in use at exit: 72,768 bytes in 3 blocks ==30392== total heap usage: 173,146 allocs, 173,143 frees, 1,423,395 bytes allocated ==30392== ==30392== 72,704 bytes in 1 blocks are still reachable in loss record 3 of 3 ==30392== at 0x4C29BFD: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==30392== by 0x5B3C5F5: pool (eh_alloc.cc:123) ==30392== by 0x5B3C5F5: __static_initialization_and_destruction_0 (eh_alloc.cc:262) ==30392== by 0x5B3C5F5: _GLOBAL__sub_I_eh_alloc.cc (eh_alloc.cc:338) ==30392== by 0x400F4E2: _dl_init (in /usr/lib64/ld-2.17.so) ==30392== by 0x4001459: ??? (in /usr/lib64/ld-2.17.so) ==30392== by 0xC: ??? ==30392== by 0xFFEFF5DFA: ??? ==30392== by 0xFFEFF5E6A: ??? ==30392== by 0xFFEFF5EDC: ??? ==30392== by 0xFFEFF5EE5: ??? ==30392== by 0xFFEFF5EFE: ??? ==30392== by 0xFFEFF5F6A: ??? ==30392== by 0xFFEFF5FD2: ??? ==30392== by 0xFFEFF5FE2: ??? ==30392== by 0xFFEFF6053: ??? ==30392== by 0xFFEFF60C5: ??? ==30392== by 0xFFEFF60D4: ??? ==30392== ==30392== LEAK SUMMARY: ==30392== definitely lost: 0 bytes in 0 blocks ==30392== indirectly lost: 0 bytes in 0 blocks ==30392== possibly lost: 0 bytes in 0 blocks ==30392== still reachable: 72,704 bytes in 1 blocks ==30392== suppressed: 64 bytes in 2 blocks ==30392== ==30392== For counts of detected and suppressed errors, rerun with: -v ==30392== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 2 from 2) safe_process[30391]: Child process: 30392, exit: 42 mysqltest failed with unexpected return code 42 - the logfile can be found in '/export/umesh/server/source/bugs/src_build/fb_builds/97805/mysql-8.0.18/bld/mysql-test/var/log/main.flush_read_lock_kill/flush_read_lock_kill.log' [100%] valgrind_report [ pass ] ------------------------------------------------------------------------------ The servers were restarted 0 times The servers were reinitialized 0 times Spent 0.000 of 197 seconds executing testcases Completed: Failed 1/2 tests, 50.00% were successful. Failing test(s): main.flush_read_lock_kill 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