[MDEV-12632] Source and destination overlap in memcpy, encryption.innodb-discard-import-change fails in buildbot with valgrind Created: 2017-04-29  Updated: 2019-06-06  Resolved: 2018-04-12

Status: Closed
Project: MariaDB Server
Component/s: Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB
Affects Version/s: 10.1
Fix Version/s: 10.1.33, 10.2.15, 10.3.6

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
causes MDEV-19695 Import tablespace doesn't work with R... Closed

 Description   

http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/10024/steps/test/logs/stdio

encryption.innodb-discard-import-change 'cbc,innodb_plugin' w4 [ fail ]  Found warnings/errors in server log file!
        Test ended at 2017-04-27 07:21:32
line
==2938== Thread 22:
==2938== Source and destination overlap in memcpy(0xdec8000, 0xdec8000, 16384)
==2938==    at 0x4C2C51C: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018)
==2938==    by 0xBF958EA: fil_iterate(fil_iterator_t const&, buf_block_t*, PageCallback&) (fil0fil.cc:6716)
==2938==    by 0xBF9616B: fil_tablespace_iterate(dict_table_t*, unsigned long, PageCallback&) (fil0fil.cc:6938)
==2938==    by 0xC0DF94A: row_import_for_mysql(dict_table_t*, row_prebuilt_t*) (row0import.cc:3574)
==2938==    by 0xBFF8F62: ha_innodb::discard_or_import_tablespace(char) (ha_innodb.cc:12396)
==2938==    by 0x8728C5: handler::ha_discard_or_import_tablespace(char) (handler.cc:4159)
==2938==    by 0x6DD7F1: mysql_discard_or_import_tablespace(THD*, TABLE_LIST*, bool) (sql_table.cc:5627)
==2938==    by 0x75B145: Sql_cmd_discard_import_tablespace::execute(THD*) (sql_alter.cc:365)
==2938==    by 0x6266AF: mysql_execute_command(THD*) (sql_parse.cc:5695)
==2938==    by 0x62A952: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7343)
==2938==    by 0x619942: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1490)
==2938==    by 0x61869C: do_command(THD*) (sql_parse.cc:1109)
^ Found warnings in /mnt/data/buildot/maria-slave/work-opensuse-amd64/build/mysql-test/var/4/log/mysqld.1.err

Also reproducible locally.



 Comments   
Comment by Elena Stepanova [ 2017-04-29 ]

ATTN marko

Comment by Elena Stepanova [ 2017-04-29 ]

encryption.innodb-bad-key-change2 is also affected

Generated at Thu Feb 08 07:59:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.