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

valgrind warning "unitialized bytes" in 10.1

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.1.2
    • 10.1.4
    • GIS
    • None

    Description

      Valgrind prints warnings like

      main.gis                                 w5 [ fail ]  Found warnings/errors in server log file!
              Test ended at 2014-12-15 23:28:07
      line
      ==1895== Thread 5:
      ==1895== Syscall param write(buf) points to uninitialised byte(s)
      ==1895==    at 0x4E3B7FB: ??? (in /lib64/libpthread-2.9.so)
      ==1895==    by 0xE72296: my_write (my_write.c:48)
      ==1895==    by 0x7AD6A5: writefrm(char const*, char const*, char const*, bool, unsigned char const*, unsigned long) (mysql_file.h:1131)
      ==1895==    by 0x6D0FBC: rea_create_table(THD*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, HA_CREATE_INFO*, handler*, bool) (unireg.cc:382)
      ==1895==    by 0x698D25: 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:4806)
      ==1895==    by 0x69CFAD: mysql_alter_table(THD*, char*, char*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) (sql_table.cc:8644)
      ==1895==    by 0x6FC459: Sql_cmd_alter_table::execute(THD*) (sql_alter.cc:329)
      ==1895==    by 0x5FAAC6: mysql_execute_command(THD*) (sql_parse.cc:5521)
      ==1895==    by 0x602039: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7024)
      ==1895==    by 0x604939: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1458)
      ==1895==    by 0x604F00: do_command(THD*) (sql_parse.cc:1089)
      ==1895==    by 0x6F787B: do_handle_one_connection(THD*) (sql_connect.cc:1347)
      ==1895==    by 0x6F7A04: handle_one_connection (sql_connect.cc:1258)
      ==1895==    by 0x9C2586: pfs_spawn_thread (pfs.cc:1860)
      ==1895==    by 0x4E3506F: start_thread (in /lib64/libpthread-2.9.so)
      ==1895==    by 0x62F913C: clone (in /lib64/libc-2.9.so)
      ==1895==  Address 0xbdd1d43 is 99 bytes inside a block of size 800 alloc'd
      ==1895==    at 0x4C25DD6: malloc (vg_replace_malloc.c:270)
      ==1895==    by 0xE6E11A: my_malloc (my_malloc.c:100)
      ==1895==    by 0x6D27DF: build_frm_image(THD*, char const*, HA_CREATE_INFO*, List<Create_field>&, unsigned int, st_key*, handler*) (unireg.cc:229)
      ==1895==    by 0x693C94: mysql_create_frm_image(THD*, char const*, char const*, HA_CREATE_INFO*, Alter_info*, int, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) (sql_table.cc:4571)
      ==1895==    by 0x698CEA: 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:4803)
      ==1895==    by 0x69CFAD: mysql_alter_table(THD*, char*, char*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) (sql_table.cc:8644)
      ==1895==    by 0x6FC459: Sql_cmd_alter_table::execute(THD*) (sql_alter.cc:329)
      ==1895==    by 0x5FAAC6: mysql_execute_command(THD*) (sql_parse.cc:5521)
      ==1895==    by 0x602039: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7024)
      ==1895==    by 0x604939: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1458)
      ==1895==    by 0x604F00: do_command(THD*) (sql_parse.cc:1089)
      ==1895==    by 0x6F787B: do_handle_one_connection(THD*) (sql_connect.cc:1347)
      ==1895==    by 0x6F7A04: handle_one_connection (sql_connect.cc:1258)
      ==1895==    by 0x9C2586: pfs_spawn_thread (pfs.cc:1860)
      ==1895==    by 0x4E3506F: start_thread (in /lib64/libpthread-2.9.so)
      ==1895==    by 0x62F913C: clone (in /lib64/libc-2.9.so)
      ==1895== Syscall param write(buf) points to uninitialised byte(s)
      ==1895==    at 0x4E3B7FB: ??? (in /lib64/libpthread-2.9.so)
      ==1895==    by 0xE72296: my_write (my_write.c:48)
      ==1895==    by 0x7AD6A5: writefrm(char const*, char const*, char const*, bool, unsigned char const*, unsigned long) (mysql_file.h:1131)
      ==1895==    by 0x6BF08B: TABLE_SHARE::write_frm_image(unsigned char const*, unsigned long) (table.cc:2202)
      ==1895==    by 0x6BFFBD: TABLE_SHARE::init_from_binary_frm_image(THD*, bool, unsigned char const*, unsigned long) (table.cc:928)
      ==1895==    by 0x7DFB51: ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) (handler.cc:4666)
      ==1895==    by 0x69D6DA: mysql_alter_table(THD*, char*, char*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) (sql_table.cc:8840)
      ==1895==    by 0x6FC459: Sql_cmd_alter_table::execute(THD*) (sql_alter.cc:329)
      ==1895==    by 0x5FAAC6: mysql_execute_command(THD*) (sql_parse.cc:5521)
      ==1895==    by 0x602039: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7024)
      ==1895==    by 0x604939: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1458)
      ==1895==    by 0x604F00: do_command(THD*) (sql_parse.cc:1089)
      ==1895==    by 0x6F787B: do_handle_one_connection(THD*) (sql_connect.cc:1347)
      ==1895==    by 0x6F7A04: handle_one_connection (sql_connect.cc:1258)
      ==1895==    by 0x9C2586: pfs_spawn_thread (pfs.cc:1860)
      ==1895==    by 0x4E3506F: start_thread (in /lib64/libpthread-2.9.so)
      ==1895==  Address 0xbdd1d43 is 99 bytes inside a block of size 800 alloc'd
      ==1895==    at 0x4C25DD6: malloc (vg_replace_malloc.c:270)
      ==1895==    by 0xE6E11A: my_malloc (my_malloc.c:100)
      ==1895==    by 0x6D27DF: build_frm_image(THD*, char const*, HA_CREATE_INFO*, List<Create_field>&, unsigned int, st_key*, handler*) (unireg.cc:229)
      ==1895==    by 0x693C94: mysql_create_frm_image(THD*, char const*, char const*, HA_CREATE_INFO*, Alter_info*, int, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) (sql_table.cc:4571)
      ==1895==    by 0x698CEA: 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:4803)
      ==1895==    by 0x69CFAD: mysql_alter_table(THD*, char*, char*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) (sql_table.cc:8644)
      ==1895==    by 0x6FC459: Sql_cmd_alter_table::execute(THD*) (sql_alter.cc:329)
      ==1895==    by 0x5FAAC6: mysql_execute_command(THD*) (sql_parse.cc:5521)
      ==1895==    by 0x602039: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7024)
      ==1895==    by 0x604939: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1458)
      ==1895==    by 0x604F00: do_command(THD*) (sql_parse.cc:1089)
      ==1895==    by 0x6F787B: do_handle_one_connection(THD*) (sql_connect.cc:1347)
      ==1895==    by 0x6F7A04: handle_one_connection (sql_connect.cc:1258)
      ==1895==    by 0x9C2586: pfs_spawn_thread (pfs.cc:1860)
      ==1895==    by 0x4E3506F: start_thread (in /lib64/libpthread-2.9.so)
      ==1895==    by 0x62F913C: clone (in /lib64/libc-2.9.so)

      This is most probably caused by MDEV-60

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.