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

Crash in dynamic column API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.4
    • Fix Version/s: 10.0.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      -

      Description

      Adding new columns to an already initialized column crashes:

      how to repeat:

      static int test_mdev_4994(MYSQL *mysql)
      {
        DYNAMIC_COLUMN dyncol;
        uint key= 1;
        DYNAMIC_COLUMN_VALUE val;
        int rc;
        
        val.type= MYSQL_TYPE_NULL;
       
        mariadb_dyncol_init(&dyncol); /* see patch for MDEV-4993 */
        rc= mariadb_dyncol_create_many_named(&dyncol, 1,&key, &val, 0);  /* crash */
        FAIL_IF(rc < 0, "Unexpected error");
        return OK;
      }
       

        Attachments

          Activity

            People

            Assignee:
            sanja Oleksandr Byelkin
            Reporter:
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: