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

binlog_encryption.rpl_semi_sync fails with valgrind (Conditional jump or move depends on uninitialised value)

    XMLWordPrintable

Details

    Description

      Stack trace from 10.1 545c91269

      binlog_encryption.rpl_semi_sync 'innodb_plugin,mix' [ fail ]  Found warnings/errors in server log file!
              Test ended at 2016-12-27 18:31:55
      line
      ==25477== Thread 26:
      ==25477== Conditional jump or move depends on uninitialised value(s)
      ==25477==    at 0x60BCBE: send_events(binlog_send_info*, st_io_cache*, st_log_info*, unsigned long long) (sql_repl.cc:2680)
      ==25477==    by 0x60C052: send_one_binlog_file(binlog_send_info*, st_io_cache*, st_log_info*, unsigned long long) (sql_repl.cc:2762)
      ==25477==    by 0x60C457: mysql_binlog_send(THD*, char*, unsigned long long, unsigned short) (sql_repl.cc:2885)
      ==25477==    by 0x5D4BBD: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1724)
      ==25477==    by 0x5D2CD3: do_command(THD*) (sql_parse.cc:1108)
      ==25477==    by 0x70921C: do_handle_one_connection(THD*) (sql_connect.cc:1350)
      ==25477==    by 0x708F80: handle_one_connection (sql_connect.cc:1262)
      ==25477==    by 0x9EC59B: pfs_spawn_thread (pfs.cc:1860)
      ==25477==    by 0x4E3D0A3: start_thread (pthread_create.c:309)
      ==25477==    by 0x6CB787C: clone (clone.S:111)
      

      ==25477== Conditional jump or move depends on uninitialised value(s)
      ==25477==    at 0x608CC5: gtid_state_from_pos(char const*, unsigned int, slave_connection_state*) (sql_repl.cc:1462)
      ==25477==    by 0x609287: gtid_state_from_binlog_pos(char const*, unsigned int, String*) (sql_repl.cc:1609)
      ==25477==    by 0x8A6DBC: Item_func_binlog_gtid_pos::val_str(String*) (item_strfunc.cc:3093)
      ==25477==    by 0x833660: Item::send(Protocol*, String*) (item.cc:6475)
      ==25477==    by 0x520BA5: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
      ==25477==    by 0x59897F: select_send::send_data(List<Item>&) (sql_class.cc:2829)
      ==25477==    by 0x619339: JOIN::exec_inner() (sql_select.cc:2584)
      ==25477==    by 0x618DB6: JOIN::exec() (sql_select.cc:2505)
      ==25477==    by 0x61C334: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3439)
      ==25477==    by 0x611E15: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
      ==25477==    by 0x5E1E5D: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5896)
      ==25477==    by 0x5D7D7F: mysql_execute_command(THD*) (sql_parse.cc:2968)
      

      ...
      Also happens in buildbot with slightly different stack:
      http://buildbot.askmonty.org/buildbot/builders/xenial-amd64-valgrind/builds/233/steps/test/logs/stdio

      binlog_encryption.rpl_semi_sync 'innodb_plugin,mix' w19 [ fail ]  Found warnings/errors in server log file!
              Test ended at 2016-12-26 23:21:20
      line
      ==1446== Thread 26:
      ==1446== Conditional jump or move depends on uninitialised value(s)
      ==1446==    at 0x5692CB: String::c_ptr() (sql_string.h:182)
      ==1446==    by 0x71AF3E: Binlog_transmit_delegate::before_send_event(THD*, unsigned short, String*, char const*, unsigned long long) (rpl_handler.cc:374)
      ==1446==    by 0x60E99D: send_event_to_slave(binlog_send_info*, Log_event_type, st_io_cache*, unsigned long, rpl_gtid*) (sql_repl.cc:1985)
      ==1446==    by 0x6107D0: send_events(binlog_send_info*, st_io_cache*, st_log_info*, unsigned long long) (sql_repl.cc:2681)
      ==1446==    by 0x610B32: send_one_binlog_file(binlog_send_info*, st_io_cache*, st_log_info*, unsigned long long) (sql_repl.cc:2762)
      ==1446==    by 0x610F38: mysql_binlog_send(THD*, char*, unsigned long long, unsigned short) (sql_repl.cc:2885)
      ==1446==    by 0x5D8910: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1724)
      ==1446==    by 0x5D6A14: do_command(THD*) (sql_parse.cc:1108)
      ==1446==    by 0x712ABE: do_handle_one_connection(THD*) (sql_connect.cc:1350)
      ==1446==    by 0x71280D: handle_one_connection (sql_connect.cc:1262)
      ==1446==    by 0xA0E4F9: pfs_spawn_thread (pfs.cc:1860)
      ==1446==    by 0x64056B9: start_thread (pthread_create.c:333)
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Git Integration

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