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

    • Bug
    • Status: Confirmed (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.9(EOL), 10.10(EOL), 10.11, 11.1(EOL), 11.2(EOL)
    • 10.5, 10.6, 10.11, 11.4
    • JSON
    • 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

              rucha174 Rucha Deodhar
              sbester1 sbester1
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.