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

Assertion `null_value' failed in Item::send(Protocol*, String*) upon casting NULL as JSON

    XMLWordPrintable

Details

    Description

      SELECT CAST(NULL AS JSON);
      

      10.2 6a10681266

      mysqld: /data/src/10.2/sql/item.cc:6742: virtual bool Item::send(Protocol*, String*): Assertion `null_value' failed.
      161201 23:12:32 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f2283e83312 in __GI___assert_fail (assertion=0x7f228749cc74 "null_value", file=0x7f228749c2f8 "/data/src/10.2/sql/item.cc", line=6742, function=0x7f228749f5a0 <Item::send(Protocol*, String*)::__PRETTY_FUNCTION__> "virtual bool Item::send(Protocol*, String*)") at assert.c:101
      #8  0x00007f2286be453d in Item::send (this=0x7f223f0601b8, protocol=0x7f223f016600, buffer=0x7f2287a577a0) at /data/src/10.2/sql/item.cc:6742
      #9  0x00007f2286893178 in Protocol::send_result_set_row (this=0x7f223f016600, row_items=0x7f223f01a3a8) at /data/src/10.2/sql/protocol.cc:979
      #10 0x00007f2286911e50 in select_send::send_data (this=0x7f223f060330, items=...) at /data/src/10.2/sql/sql_class.cc:2915
      #11 0x00007f228699ee4f in JOIN::exec_inner (this=0x7f223f060350) at /data/src/10.2/sql/sql_select.cc:3278
      #12 0x00007f228699e8ea in JOIN::exec (this=0x7f223f060350) at /data/src/10.2/sql/sql_select.cc:3198
      #13 0x00007f228699fa41 in mysql_select (thd=0x7f223f016070, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f223f060330, unit=0x7f223f019b48, select_lex=0x7f223f01a280) at /data/src/10.2/sql/sql_select.cc:3583
      #14 0x00007f2286994b25 in handle_select (thd=0x7f223f016070, lex=0x7f223f019a80, result=0x7f223f060330, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:373
      #15 0x00007f228696146f in execute_sqlcom_select (thd=0x7f223f016070, all_tables=0x0) at /data/src/10.2/sql/sql_parse.cc:6356
      #16 0x00007f2286956f2a in mysql_execute_command (thd=0x7f223f016070) at /data/src/10.2/sql/sql_parse.cc:3379
      #17 0x00007f2286964e2e in mysql_parse (thd=0x7f223f016070, rawbuf=0x7f223f060088 "SELECT CAST(NULL AS JSON)", length=25, parser_state=0x7f2287a58e20, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7799
      #18 0x00007f2286952b7e in dispatch_command (command=COM_QUERY, thd=0x7f223f016070, packet=0x7f223f054071 "", packet_length=25, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1808
      #19 0x00007f2286951558 in do_command (thd=0x7f223f016070) at /data/src/10.2/sql/sql_parse.cc:1368
      #20 0x00007f2286a98a26 in do_handle_one_connection (connect=0x7f228345ff70) at /data/src/10.2/sql/sql_connect.cc:1354
      #21 0x00007f2286a987b3 in handle_one_connection (arg=0x7f228345ff70) at /data/src/10.2/sql/sql_connect.cc:1260
      #22 0x00007f2285f900a4 in start_thread (arg=0x7f2287a5a300) at pthread_create.c:309
      #23 0x00007f2283f3d87d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
      

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              elenst Elena Stepanova
              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.