[MDEV-4994] Crash in dynamic column API Created: 2013-09-04  Updated: 2013-09-12  Resolved: 2013-09-12

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.4
Fix Version/s: 10.0.5

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
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;
}
 



 Comments   
Comment by Oleksandr Byelkin [ 2013-09-09 ]

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

Comment by Oleksandr Byelkin [ 2013-09-11 ]

It is pushed (I am waiting buildbot).

Generated at Thu Feb 08 07:00:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.