Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-11644

main.check_constraint fails in buildbot with valgrind (Invalid write)

    XMLWordPrintable

Details

    • 10.2.6-3

    Description

      http://buildbot.askmonty.org/buildbot/builders/xenial-amd64-valgrind/builds/183/steps/test/logs/stdio
      Also reproducible locally with cmake . -DCMAKE_BUILD_TYPE=Debug -DWITH_VALGRIND=YES

      main.check_constraint                    w2 [ fail ]  Found warnings/errors in server log file!
              Test ended at 2016-12-22 12:00:46
      line
      ==17323== Thread 7:
      ==17323== Invalid write of size 8
      ==17323==    at 0x4C326CB: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17323==    by 0x79B34E: parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*) (table.cc:1008)
      ==17323==    by 0x7A2833: open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) (table.cc:3124)
      ==17323==    by 0x920F6A: ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) (handler.cc:4726)
      ==17323==    by 0x7BA365: rea_create_table(THD*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, HA_CREATE_INFO*, handler*, bool) (unireg.cc:419)
      ==17323==    by 0x768D2A: create_table_impl(THD*, char const*, char const*, char const*, char const*, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) (sql_table.cc:4872)
      ==17323==    by 0x769325: mysql_create_table_no_lock(THD*, char const*, char const*, Table_specification_st*, Alter_info*, bool*, int) (sql_table.cc:4984)
      ==17323==    by 0x769599: mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) (sql_table.cc:5046)
      ==17323==    by 0x6A2F85: mysql_execute_command(THD*) (sql_parse.cc:3924)
      ==17323==    by 0x6AFC4E: mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:7842)
      ==17323==    by 0x69D551: dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) (sql_parse.cc:1799)
      ==17323==    by 0x69BF24: do_command(THD*) (sql_parse.cc:1359)
      ==17323==  Address 0xe3466e8 is 0 bytes after a block of size 88 alloc'd
      ==17323==    at 0x4C2DC5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17323==    by 0x10E1ECA: my_malloc (my_malloc.c:100)
      ==17323==    by 0x10D31AA: alloc_root (my_alloc.c:184)
      ==17323==    by 0x10D33C7: multi_alloc_root (my_alloc.c:304)
      ==17323==    by 0x7A2776: open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) (table.cc:3106)
      ==17323==    by 0x920F6A: ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) (handler.cc:4726)
      ==17323==    by 0x7BA365: rea_create_table(THD*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, HA_CREATE_INFO*, handler*, bool) (unireg.cc:419)
      ==17323==    by 0x768D2A: create_table_impl(THD*, char const*, char const*, char const*, char const*, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) (sql_table.cc:4872)
      ==17323==    by 0x769325: mysql_create_table_no_lock(THD*, char const*, char const*, Table_specification_st*, Alter_info*, bool*, int) (sql_table.cc:4984)
      ==17323==    by 0x769599: mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) (sql_table.cc:5046)
      ==17323==    by 0x6A2F85: mysql_execute_command(THD*) (sql_parse.cc:3924)
      ==17323==    by 0x6AFC4E: mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:7842)
      ==17323== Invalid write of size 8
      ==17323==    at 0x4C326CB: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17323==    by 0x79B34E: parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*) (table.cc:1008)
      ==17323==    by 0x7A2833: open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) (table.cc:3124)
      ==17323==    by 0x62F93A: open_table(THD*, TABLE_LIST*, Open_table_context*) (sql_base.cc:1860)
      ==17323==    by 0x6323BF: open_and_process_table(THD*, LEX*, TABLE_LIST*, unsigned int*, unsigned int, Prelocking_strategy*, bool, Open_table_context*) (sql_base.cc:3392)
      ==17323==    by 0x63354D: open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) (sql_base.cc:3911)
      ==17323==    by 0x679AEF: open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int) (sql_base.h:462)
      ==17323==    by 0x730835: mysqld_show_create_get_fields(THD*, TABLE_LIST*, List<Item>*, String*) (sql_show.cc:1163)
      ==17323==    by 0x730F0A: mysqld_show_create(THD*, TABLE_LIST*) (sql_show.cc:1259)
      ==17323==    by 0x6A3B52: mysql_execute_command(THD*) (sql_parse.cc:4174)
      ==17323==    by 0x6AFC4E: mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:7842)
      ==17323==    by 0x69D551: dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) (sql_parse.cc:1799)
      ==17323==  Address 0xe1a7da8 is 0 bytes after a block of size 88 alloc'd
      ==17323==    at 0x4C2DC5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17323==    by 0x10E1ECA: my_malloc (my_malloc.c:100)
      ==17323==    by 0x10D31AA: alloc_root (my_alloc.c:184)
      ==17323==    by 0x10D33C7: multi_alloc_root (my_alloc.c:304)
      ==17323==    by 0x7A2776: open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) (table.cc:3106)
      ==17323==    by 0x62F93A: open_table(THD*, TABLE_LIST*, Open_table_context*) (sql_base.cc:1860)
      ==17323==    by 0x6323BF: open_and_process_table(THD*, LEX*, TABLE_LIST*, unsigned int*, unsigned int, Prelocking_strategy*, bool, Open_table_context*) (sql_base.cc:3392)
      ==17323==    by 0x63354D: open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) (sql_base.cc:3911)
      ==17323==    by 0x679AEF: open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int) (sql_base.h:462)
      ==17323==    by 0x730835: mysqld_show_create_get_fields(THD*, TABLE_LIST*, List<Item>*, String*) (sql_show.cc:1163)
      ==17323==    by 0x730F0A: mysqld_show_create(THD*, TABLE_LIST*) (sql_show.cc:1259)
      ==17323==    by 0x6A3B52: mysql_execute_command(THD*) (sql_parse.cc:4174)
      ==17323== Invalid write of size 8
      ==17323==    at 0x4C326CB: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17323==    by 0x79B34E: parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*) (table.cc:1008)
      ==17323==    by 0x7A2833: open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) (table.cc:3124)
      ==17323==    by 0x894D4D: THD::open_temporary_table(TMP_TABLE_SHARE*, char const*, bool) (temporary_tables.cc:1118)
      ==17323==    by 0x892D2B: THD::create_and_open_tmp_table(handlerton*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, bool) (temporary_tables.cc:76)
      ==17323==    by 0x773C69: mysql_alter_table(THD*, char*, char*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) (sql_table.cc:9122)
      ==17323==    by 0x7EE50D: Sql_cmd_alter_table::execute(THD*) (sql_alter.cc:324)
      ==17323==    by 0x6AB0E0: mysql_execute_command(THD*) (sql_parse.cc:6168)
      ==17323==    by 0x6AFC4E: mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:7842)
      ==17323==    by 0x69D551: dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) (sql_parse.cc:1799)
      ==17323==    by 0x69BF24: do_command(THD*) (sql_parse.cc:1359)
      ==17323==    by 0x7E8A06: do_handle_one_connection(CONNECT*) (sql_connect.cc:1354)
      ==17323==  Address 0xc896820 is 0 bytes after a block of size 96 alloc'd
      ==17323==    at 0x4C2DC5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17323==    by 0x10E1ECA: my_malloc (my_malloc.c:100)
      ==17323==    by 0x10D31AA: alloc_root (my_alloc.c:184)
      ==17323==    by 0x10D33C7: multi_alloc_root (my_alloc.c:304)
      ==17323==    by 0x7A2776: open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) (table.cc:3106)
      ==17323==    by 0x894D4D: THD::open_temporary_table(TMP_TABLE_SHARE*, char const*, bool) (temporary_tables.cc:1118)
      ==17323==    by 0x892D2B: THD::create_and_open_tmp_table(handlerton*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, bool) (temporary_tables.cc:76)
      ==17323==    by 0x773C69: mysql_alter_table(THD*, char*, char*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) (sql_table.cc:9122)
      ==17323==    by 0x7EE50D: Sql_cmd_alter_table::execute(THD*) (sql_alter.cc:324)
      ==17323==    by 0x6AB0E0: mysql_execute_command(THD*) (sql_parse.cc:6168)
      ==17323==    by 0x6AFC4E: mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:7842)
      ==17323==    by 0x69D551: dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) (sql_parse.cc:1799)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.