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

          georg Georg Richter created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          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;
          }

          Adding new columns to an already initialized column crashes:

          how to repeat:

          {code}
          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;
          }

          {code}
          serg Sergei Golubchik made changes -
          Fix Version/s 10.0.5 [ 13201 ]
          serg Sergei Golubchik made changes -
          Affects Version/s 10.0.4 [ 13101 ]
          Affects Version/s 10.0.5 [ 13201 ]
          sanja Oleksandr Byelkin made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          sanja Oleksandr Byelkin made changes -
          Status In Progress [ 3 ] Stalled [ 10000 ]
          sanja Oleksandr Byelkin added a comment - - edited

          dynamic columns unit-test appeared to be switched off, so now I am fixing it.

          sanja Oleksandr Byelkin added a comment - - edited dynamic columns unit-test appeared to be switched off, so now I am fixing it.
          sanja Oleksandr Byelkin made changes -
          Status Stalled [ 10000 ] In Progress [ 3 ]
          sanja Oleksandr Byelkin made changes -
          Status In Progress [ 3 ] Stalled [ 10000 ]

          It is pushed (I am waiting buildbot).

          sanja Oleksandr Byelkin added a comment - It is pushed (I am waiting buildbot).
          sanja Oleksandr Byelkin made changes -
          Resolution Fixed [ 1 ]
          Status Stalled [ 10000 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 28820 ] MariaDB v2 [ 44404 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 44404 ] MariaDB v3 [ 63743 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 63743 ] MariaDB v4 [ 147016 ]

          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.