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

ANALYZE SELECT crashes in Explain_query::print_explain with a non-existing column

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • N/A
    • 10.1.0
    • None
    • None

    Description

      create table t1 (i int);
      analyze select a from t1;

      #2  0x000000000086052d in handle_fatal_signal (sig=11) at 10.1/sql/signal_handler.cc:262
      #3  <signal handler called>
      #4  0x00000000007c15f2 in Explain_query::print_explain (this=0x0, output=0x7f0661822f08, explain_flags=0 '\000', is_analyze=true) at 10.1/sql/sql_explain.cc:159
      #5  0x00000000007c158e in Explain_query::send_explain (this=0x0, thd=0x7f06777f7070) at 10.1/sql/sql_explain.cc:143
      #6  0x000000000067bfed in execute_sqlcom_select (thd=0x7f06777f7070, all_tables=0x7f0661822280) at 10.1/sql/sql_parse.cc:5285
      #7  0x0000000000674244 in mysql_execute_command (thd=0x7f06777f7070) at 10.1/sql/sql_parse.cc:2554
      #8  0x000000000067e775 in mysql_parse (thd=0x7f06777f7070, rawbuf=0x7f0661822088 "analyze select a from t1", length=24, parser_state=0x7f068d7b2660) at 10.1/sql/sql_parse.cc:6433
      #9  0x00000000006714e5 in dispatch_command (command=COM_QUERY, thd=0x7f06777f7070, packet=0x7f067259a071 "", packet_length=24) at 10.1/sql/sql_parse.cc:1309
      #10 0x000000000067088a in do_command (thd=0x7f06777f7070) at 10.1/sql/sql_parse.cc:1006
      #11 0x000000000078d399 in do_handle_one_connection (thd_arg=0x7f06777f7070) at 10.1/sql/sql_connect.cc:1379
      #12 0x000000000078d0ec in handle_one_connection (arg=0x7f06777f7070) at 10.1/sql/sql_connect.cc:1293
      #13 0x00007f068d3e7b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #14 0x00007f068b6bfa7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Stack trace from

      commit b95ec135533b13e921aa8de1b9c769d47b2efe60
      Author: Alexey Botchkov <holyfoot@montyprogram.com>
      Date:   Thu Jun 26 11:37:24 2014 +0500

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.