Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-2129

LP #1515613: Valgrind error on main.repair, main.merge, main.mysqlcheck, and main.archive

    Details

      Description

      **Reported in Launchpad by Laurynas Biveinis last update 03-12-2015 08:50:48

      ./mtr --debug-server --valgrind repair
      ...
      main.repair [ fail ] Found warnings/errors in server log file!
      Test ended at 2015-11-12 14:50:57
      line
      ==30152== Thread 20:
      ==30152== Source and destination overlap in memcpy(0x14dab0c0, 0x14dab0c0, 12)
      ==30152== at 0x4C30573: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018)
      ==30152== by 0x8E9260: open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) (table.cc:2371)
      ==30152== by 0x9F1B3B: prepare_for_repair(THD*, TABLE_LIST*, st_ha_check_opt*) (sql_admin.cc:103)
      ==30152== by 0x9F298C: mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char const*, thr_lock_type, bool, bool, unsigned int, int (THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::)(THD, st_ha_check_opt*), int (THD*, TABLE_LIST*)) (sql_admin.cc:451)
      ==30152== by 0x9F539F: Sql_cmd_repair_table::execute(THD*) (sql_admin.cc:1150)
      ==30152== by 0x81B174: mysql_execute_command(THD*) (sql_parse.cc:5498)
      ==30152== by 0x81EDBD: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6972)
      ==30152== by 0x810298: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1442)
      ==30152== by 0x80F053: do_command(THD*) (sql_parse.cc:1054)
      ==30152== by 0x7D20A1: do_handle_one_connection(THD*) (sql_connect.cc:1541)
      ==30152== by 0x7D1B39: handle_one_connection (sql_connect.cc:1444)
      ==30152== by 0xF2E416: pfs_spawn_thread (pfs.cc:1860)
      ==30152== by 0x5D376A9: start_thread (pthread_create.c:333)
      ==30152== by 0x68F5EEC: clone (clone.S:109)

      Happens on PS 5.6 and 5.7 WIP, does not happen on either MySQL version.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lpjirasync lpjirasync (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: