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

‘explain_node’ may be used uninitialized in this function

    XMLWordPrintable

Details

    Description

      Compiling MariaDB with ASAN gives:
      cmake -DWITH_ASAN=ON -DCMAKE_BUILD_TYPE=Debug -DMYSQL_MAINTAINER_MODE=ON

      [ 51%] Building CXX object sql/CMakeFiles/sql.dir/sql_select.cc.o
      In file included from /home/svoj/devel/maria/10.0/sql/handler.h:34:0,
                       from /home/svoj/devel/maria/10.0/sql/datadict.h:18,
                       from /home/svoj/devel/maria/10.0/sql/table.h:23,
                       from /home/svoj/devel/maria/10.0/sql/field.h:29,
                       from /home/svoj/devel/maria/10.0/sql/unireg.h:172,
                       from /home/svoj/devel/maria/10.0/sql/sql_select.cc:33:
      /home/svoj/devel/maria/10.0/sql/sql_array.h: In member function ‘int JOIN::save_explain_data_intern(Explain_query*, bool, bool, bool, const char*)’:
      /home/svoj/devel/maria/10.0/sql/sql_array.h:159:38: warning: ‘explain_node’ may be used uninitialized in this function [-Wmaybe-uninitialized]
           return insert_dynamic(&array, &el);
                                            ^
      /home/svoj/devel/maria/10.0/sql/sql_select.cc:23218:17: note: ‘explain_node’ was declared here
         Explain_node *explain_node;
                       ^

      Please check if there is a real bug here.

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              svoj Sergey Vojtovich
              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.