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

mthd_my_read_query_result segment fault at parsing session_track_info

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.2
    • Fix Version/s: 10.2, 10.3, 10.4
    • Component/s: libmariadb
    • Labels:
      None
    • Environment:
      mariadb-connector-c: 3.0.2
      crash at: mthd_my_read_query_result (mysql=0x10a8d70) at ***/connector-c-prefix/src/connector-c/libmariadb/mariadb_lib.c:2048

      Description

      SESSION_TRACK_STATE_CHANGE should be treated differently from other trackers
      https://mariadb.com/kb/en/library/mysql_session_track_get_first/
      SESSION_TRACK_STATE_CHANGE:
      length encode int: "1" (changed) or "0" (unchanged).
      int<1> : boolean info;
      SESSION_TRACK_SYSTEM_VARIABLES:
      length encode int: length;
      length encode string: key;
      length encode string: value;

      attach with my candidate fix

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            dapeng dapeng huang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: