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

Conditional jump or move depends on uninitialised value in ha_handler_stats::has_stats

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6
    • 10.6
    • Optimizer
    • None

    Description

      Discovered this while working on MDEV-34125. Its initial testcase fails like this:

      ==11329== Thread 10:
      ==11329== Conditional jump or move depends on uninitialised value(s)
      ==11329==    at 0xFA06FE: ha_handler_stats::has_stats() (ha_handler_stats.h:58)
      ==11329==    by 0xF86200: MYSQL_QUERY_LOG::write(THD*, long, char const*, unsigned long, unsigned long long, unsigned long long, bool, char const*, unsigned long) (log.cc:3273)
      ==11329==    by 0xF7F944: Log_to_file_event_handler::log_slow(THD*, my_hrtime_t, char const*, unsigned long, unsigned long long, unsigned long long, bool, char const*, unsigned long) (log.cc:1076)
      ==11329==    by 0xF80615: LOGGER::slow_log_print(THD*, char const*, unsigned long, unsigned long long) (log.cc:1350)
      ==11329==    by 0xF91F6B: slow_log_print(THD*, char const*, unsigned int, unsigned long long) (log.cc:6950)
      ==11329==    by 0xA84E94: log_slow_statement(THD*) (sql_parse.cc:2585)
      ==11329==    by 0xA848B0: dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) (sql_parse.cc:2453)
      

      This happens for this statement:

      set long_query_time=0.0, log_slow_verbosity='engine';
      

      Attachments

        Issue Links

          Activity

            People

              Johnston Rex Johnston
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.