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

json_arrayagg crashes in Item_func_group_concat::add, Assertion `(ptr != __null && end >= ptr) || (ptr == __null && end == __null)' failed in copy_fields

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.5.0, 10.5
    • 10.5.4
    • JSON
    • None
    • Linux x64

    Description

      Version: '10.5.0-MariaDB' MariaDB Server

      Thread 20 "mysqld" received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0x7ffff44af700 (LWP 21758)]
      in Item_func_group_concat::add at ./sql/item_sum.cc:4019
      4019	in ./sql/item_sum.cc
      (gdb) bt
      #0  in Item_func_group_concat::add at ./sql/item_sum.cc:4019
      #1  in Item_sum::aggregator_add at ./sql/item_sum.h:559
      #2  in Item_sum::reset_and_add at ./sql/item_sum.h:444
      #3  in init_sum_functions at ./sql/sql_select.cc:25309
      #4  in end_send_group at ./sql/sql_select.cc:21689
      #5  in do_select at ./sql/sql_select.cc:19789
      #6  in JOIN::exec_inner at ./sql/sql_select.cc:4391
      #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 json_arrayagg(null);

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              sbester1 sbester1
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.