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

json_merge_patch crashes in report_json_error_ex

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.5.0
    • Fix Version/s: N/A
    • 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 22446)]
      report_json_error_ex at ./sql/item_jsonfunc.cc:258
      258	in ./sql/item_jsonfunc.cc
      (gdb) bt
      #0  in report_json_error_ex at ./sql/item_jsonfunc.cc:258
      #1  in Item_func_json_merge_patch::val_str at ./sql/item_jsonfunc.cc:2460
      #2  in Type_handler::Item_send_str at ./sql/sql_type.cc:7138
      #3  in Protocol::send_result_set_row at ./sql/protocol.cc:1035
      #4  in select_send::send_data at ./sql/sql_class.cc:3021
      #5  in JOIN::exec_inner at ./sql/sql_select.cc:4259
      #6  in JOIN::exec at ./sql/sql_select.cc:4172
      #7  in mysql_select at ./sql/sql_select.cc:4596
      #8  in handle_select at ./sql/sql_select.cc:428
      #9  in execute_sqlcom_select at ./sql/sql_parse.cc:6217
      #10 in mysql_execute_command at ./sql/sql_parse.cc:3905
      #11 in mysql_parse at ./sql/sql_parse.cc:7986
      #12 in dispatch_command at ./sql/sql_parse.cc:1846
      #13 in do_command at ./sql/sql_parse.cc:1364
      #14 in do_handle_one_connection at ./sql/sql_connect.cc:1422
      #15 in handle_one_connection at ./sql/sql_connect.cc:1319
      #16 in start_thread at pthread_create.c:479
      

      How to Repeat
      select json_merge_patch(null,';. .*c *');

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sbester1 sbester1
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: