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

json_extract STILL crashes in Item_func_json_extract::read_json

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Confirmed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.2, 10.3, 10.4
    • Fix Version/s: 10.2, 10.3, 10.4
    • Component/s: JSON
    • Labels:
      None
    • Environment:
      Linux x64

      Description

      Version: '10.5.0-MariaDB'  MariaDB Server
       
      Thread 26 "mysqld" received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0x7ffff44af700 (LWP 23029)]
      Item_func_json_extract::read_json at ./sql/item_jsonfunc.cc:757
      757	in ./sql/item_jsonfunc.cc
      (gdb) bt
      #0  Item_func_json_extract::read_json at ./sql/item_jsonfunc.cc:757
      #1  in Arg_comparator::compare_e_json_str_basic at ./sql/item_jsonfunc.cc:3603
      #2  in Item_func_equal::val_int at ./sql/item_cmpfunc.cc:1795
      #3  in Type_handler::Item_send_long at ./sql/sql_type.cc:7171
      #4  in Protocol::send_result_set_row at ./sql/protocol.cc:1035
      #5  in select_send::send_data at ./sql/sql_class.cc:3021
      #6  in JOIN::exec_inner at ./sql/sql_select.cc:4259
      #7  in JOIN::exec at ./sql/sql_select.cc:4172
      #8  in mysql_select at ./sql/sql_select.cc:4596
      #9  in handle_select at ./sql/sql_select.cc:428
      #10 in execute_sqlcom_select at ./sql/sql_parse.cc:6217
      #11 in mysql_execute_command at ./sql/sql_parse.cc:3905
      #12 in mysql_parse at ./sql/sql_parse.cc:7986
      #13 in dispatch_command at ./sql/sql_parse.cc:1846
      #14 in do_command at ./sql/sql_parse.cc:1364
      #15 in do_handle_one_connection at ./sql/sql_connect.cc:1422
      #16 in handle_one_connection at ./sql/sql_connect.cc:1319
      #17 in start_thread at pthread_create.c:479
      

      How to Repeat:
      select null<=>json_extract('1',json_object(null,'{ }',null,null),'{}');

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              sbester1 sbester1
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: