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

Crash in dynamic column API

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.4
    • 10.0.5
    • None
    • None
    • -

    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

            sanja Oleksandr Byelkin
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.