Description:
When executing valgrind version 3.4 on the test case "rpl_trigger",
Jonas Oreland gets this failure:
==31768== Source and destination overlap in strcpy(0x7FEFFD991, 0x7FEFFD99B)
==31768== at 0x4C23785: strcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==31768== by 0xB27F83: pack_dirname (mf_pack.c:77)
==31768== by 0xB2A678: fn_format (mf_format.c:53)
==31768== by 0x88F526: init_relay_log_info(Relay_log_info*, char const*) (rpl_rli.cc:109)
==31768== by 0x891727: init_master_info(Master_info*, char const*, char const*, bool, int) (rpl_mi.cc:343)
==31768== by 0x884FBE: init_slave() (slave.cc:245)
==31768== by 0x6D657E: main (mysqld.cc:4457)
{
<insert a suppression name here>
Memcheck:Overlap
fun:strcpy
fun:pack_dirname
fun:fn_format
fun:_Z19init_relay_log_infoP14Relay_log_infoPKc
fun:_Z16init_master_infoP11Master_infoPKcS2_bi
fun:_Z10init_slavev
fun:main
}
==31768==
==31768== Source and destination overlap in strcpy(0x7FEFFD4C1, 0x7FEFFD4CB)
==31768== at 0x4C23785: strcpy (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==31768== by 0xB27FF5: pack_dirname (mf_pack.c:87)
==31768== by 0xB2A678: fn_format (mf_format.c:53)
==31768== by 0x88F526: init_relay_log_info(Relay_log_info*, char const*) (rpl_rli.cc:109)
==31768== by 0x891727: init_master_info(Master_info*, char const*, char const*, bool, int) (rpl_mi.cc:343)
==31768== by 0x884FBE: init_slave() (slave.cc:245)
==31768== by 0x6D657E: main (mysqld.cc:4457)
{
<insert a suppression name here>
Memcheck:Overlap
fun:strcpy
fun:pack_dirname
fun:fn_format
fun:_Z19init_relay_log_infoP14Relay_log_infoPKc
fun:_Z16init_master_infoP11Master_infoPKcS2_bi
fun:_Z10init_slavev
fun:main
}
Jonas tested this in 5.1-mainline and some cluster trees and got same result
(he also added some new supressions for pthread_* in cluster tree, http://lists.mysql.com/commits/74547)
See also:
* BUG#12194 Valgrind: Source and destination overlap in memcpy
* BUG#10188 type_timestamp.test: valgrind warning: Source and destination overlap in memcpy
How to repeat:
Install valgrind 3.4
Run test case rpl_trigger