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

simple json functions flatline cpu on garbage input

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.3.6, 10.2(EOL), 10.3(EOL)
    • 10.2.17
    • JSON
    • None
    • Win x64

    Description

      MariaDB [(none)]> select * from information_schema.processlist where user<>'system user' and id<>connection_id()\G
      *************************** 1. row ***************************
                   ID: 8
                 USER: root
                 HOST:
                   DB: test
              COMMAND: Query
                 TIME: 121
                STATE: NULL
                 INFO: do json_array(1,uuid(),compress(5.140264e+307))
              TIME_MS: 121143.104
                STAGE: 0
            MAX_STAGE: 0
             PROGRESS: 0.000
          MEMORY_USED: 76104
      MAX_MEMORY_USED: 76104
        EXAMINED_ROWS: 0
             QUERY_ID: 1
          INFO_BINARY: do json_array(1,uuid(),compress(5.140264e+307))
                  TID: 0
      1 row in set (0.002 sec)
      

      How to Repeat:

      do json_array(1,uuid(),compress(5.140264e+307));
      

      Attachments

        Activity

          sbester1 sbester1 created issue -
          sbester1 sbester1 made changes -
          Field Original Value New Value
          Description {noformat}
          MariaDB [(none)]> select * from information_schema.processlist where user<>'system user' and id<>connection_id()\G
          *************************** 1. row ***************************
                       ID: 8
                     USER: root
                     HOST:
                       DB: test
                  COMMAND: Query
                     TIME: 121
                    STATE: NULL
                     INFO: do json_array(1,uuid(),compress(5.140264e+307))
                  TIME_MS: 121143.104
                    STAGE: 0
                MAX_STAGE: 0
                 PROGRESS: 0.000
              MEMORY_USED: 76104
          MAX_MEMORY_USED: 76104
            EXAMINED_ROWS: 0
                 QUERY_ID: 1
              INFO_BINARY: do json_array(1,uuid(),compress(5.140264e+307))
                      TID: 0
          1 row in set (0.002 sec)
          {noformat}
          {code:sql}
          do json_array(1,uuid(),compress(5.140264e+307));
          {code}
          {noformat}
          MariaDB [(none)]> select * from information_schema.processlist where user<>'system user' and id<>connection_id()\G
          *************************** 1. row ***************************
                       ID: 8
                     USER: root
                     HOST:
                       DB: test
                  COMMAND: Query
                     TIME: 121
                    STATE: NULL
                     INFO: do json_array(1,uuid(),compress(5.140264e+307))
                  TIME_MS: 121143.104
                    STAGE: 0
                MAX_STAGE: 0
                 PROGRESS: 0.000
              MEMORY_USED: 76104
          MAX_MEMORY_USED: 76104
            EXAMINED_ROWS: 0
                 QUERY_ID: 1
              INFO_BINARY: do json_array(1,uuid(),compress(5.140264e+307))
                      TID: 0
          1 row in set (0.002 sec)
          {noformat}
          *+How to Repeat:+*
          {code:sql}
          do json_array(1,uuid(),compress(5.140264e+307));
          {code}
          elenst Elena Stepanova made changes -
          Status Open [ 1 ] Confirmed [ 10101 ]
          elenst Elena Stepanova made changes -
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.3 [ 22126 ]
          Affects Version/s 10.2 [ 14601 ]
          Affects Version/s 10.3 [ 22126 ]
          Assignee Alexey Botchkov [ holyfoot ]
          holyfoot Alexey Botchkov made changes -
          Status Confirmed [ 10101 ] In Progress [ 3 ]
          holyfoot Alexey Botchkov made changes -
          issue.field.resolutiondate 2018-07-31 13:08:33.0 2018-07-31 13:08:33.654
          holyfoot Alexey Botchkov made changes -
          Fix Version/s 10.2.17 [ 23111 ]
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.3 [ 22126 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 86846 ] MariaDB v4 [ 154278 ]

          People

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