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

Assertion `field_types == 0 || field_types[field_pos] == MYSQL_TYPE_LONGLONG' fails on EXPLAIN PARTITIONS UPDATE

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • 10.0.5
    • None
    • None

    Description

      --source include/have_partition.inc
      create table t1 (i int);
      explain partitions update t1 set i = 3;

      10.0-base-explain-slowquerylog/sql/protocol.cc:1100: virtual bool Protocol_text::store_longlong(longlong, bool): Assertion `field_types == 0 || field_types[field_pos] == MYSQL_TYPE_LONGLONG' failed.
      131002 19:24:00 [ERROR] mysqld got signal 6 ;

      #6  0x00007fe99b6940ee in __assert_fail_base (fmt=<optimized out>, assertion=0xd99e18 "field_types == 0 || field_types[field_pos] == MYSQL_TYPE_LONGLONG", file=0xd99820 "10.0-base-explain-slowquerylog/sql/protocol.cc", line=<optimized out>, function=<optimized out>) at assert.c:94
      #7  0x00007fe99b694192 in __GI___assert_fail (assertion=0xd99e18 "field_types == 0 || field_types[field_pos] == MYSQL_TYPE_LONGLONG", file=0xd99820 "10.0-base-explain-slowquerylog/sql/protocol.cc", line=1100, function=0xd9a3c0 "virtual bool Protocol_text::store_longlong(longlong, bool)") at assert.c:103
      #8  0x000000000057e019 in Protocol_text::store_longlong (this=0x21b9bd8, from=0, unsigned_flag=true) at 10.0-base-explain-slowquerylog/sql/protocol.cc:1099
      #9  0x0000000000826332 in Item::send (this=0x7fe988023b20, protocol=0x21b9bd8, buffer=0x7fe998577010) at 10.0-base-explain-slowquerylog/sql/item.cc:6372
      #10 0x000000000057d5ee in Protocol::send_result_set_row (this=0x21b9bd8, row_items=0x7fe998577430) at 10.0-base-explain-slowquerylog/sql/protocol.cc:900
      #11 0x00000000005e7611 in select_send::send_data (this=0x7fe988022940, items=...) at 10.0-base-explain-slowquerylog/sql/sql_class.cc:2365
      #12 0x000000000068d904 in print_explain_row (result=0x7fe988022940, options=0 '\000', select_number=1, select_type=0xdb1f3b "SIMPLE", table_name=0x7fe988022620 "t1", jtype=JT_ALL, possible_keys=0x0, index=0x0, key_len=0x0, ref=0x0, rows=0, extra=0x7fe998577510 "") at 10.0-base-explain-slowquerylog/sql/sql_select.cc:22386
      #13 0x0000000000771921 in QPF_update::print_explain (this=0x7fe9880225c0, query=0x7fe98804aef0, output=0x7fe988022940, explain_flags=0 '\000') at 10.0-base-explain-slowquerylog/sql/opt_qpf.cc:806
      #14 0x000000000076f86a in QPF_query::print_explain (this=0x7fe98804aef0, output=0x7fe988022940, explain_flags=0 '\000') at 10.0-base-explain-slowquerylog/sql/opt_qpf.cc:112
      #15 0x00000000006eb330 in mysql_update (thd=0x21b95f8, table_list=0x7fe98801ca20, fields=..., values=..., conds=0x0, order_num=0, order=0x0, limit=18446744073709551615, handle_duplicates=DUP_ERROR, ignore=false, found_return=0x7fe998577df8, updated_return=0x7fe998577e00) at 10.0-base-explain-slowquerylog/sql/sql_update.cc:1042
      #16 0x000000000062304e in mysql_execute_command (thd=0x21b95f8) at 10.0-base-explain-slowquerylog/sql/sql_parse.cc:3016
      #17 0x000000000062b8eb in mysql_parse (thd=0x21b95f8, rawbuf=0x7fe988007f20 "explain partitions update t1 set i = 3", length=38, parser_state=0x7fe998578510) at 10.0-base-explain-slowquerylog/sql/sql_parse.cc:6064
      #18 0x000000000061e59e in dispatch_command (command=COM_QUERY, thd=0x21b95f8, packet=0x21be369 "", packet_length=38) at 10.0-base-explain-slowquerylog/sql/sql_parse.cc:1097
      #19 0x000000000061da67 in do_command (thd=0x21b95f8) at 10.0-base-explain-slowquerylog/sql/sql_parse.cc:812
      #20 0x000000000073dcdf in do_handle_one_connection (thd_arg=0x21b95f8) at 10.0-base-explain-slowquerylog/sql/sql_connect.cc:1266
      #21 0x000000000073da4d in handle_one_connection (arg=0x21b95f8) at 10.0-base-explain-slowquerylog/sql/sql_connect.cc:1181
      #22 0x0000000000c8d268 in pfs_spawn_thread (arg=0x20bded8) at 10.0-base-explain-slowquerylog/storage/perfschema/pfs.cc:1015
      #23 0x00007fe99c464e9a in start_thread (arg=0x7fe998579700) at pthread_create.c:308
      #24 0x00007fe99b758cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      bzr version-info
      revision-id: psergey@askmonty.org-20130926104732-aq7wcma425u5skrw
      revno: 3700
      branch-nick: 10.0-base-explain-slowquerylog

      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.