diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-02-14 18:14:24 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-02-14 18:41:37 +0100 |
commit | 2709380587bbcbc7abda77f11ee0abd207c65027 (patch) | |
tree | 00d9c276f75d10b23e485f63937f7b10572436cf /mysql-test/suite/maria | |
parent | c8afe7daaced3339f24b88d63f6bcf8477dfaf8c (diff) | |
download | mariadb-git-2709380587bbcbc7abda77f11ee0abd207c65027.tar.gz |
MDEV-13748 Assertion `status_var.local_memory_used == 0 || !debug_assert_on_not_freed_memory' failed in virtual THD::~THD after query with INTERSECT
my_safe_alloca()/my_safe_afree() work as alloca() or malloc()/free()
depending on the memory size to allocate, that is, depending on
reclength here. They only work correctly if reclength doesn't
change in the middle.
Diffstat (limited to 'mysql-test/suite/maria')
-rw-r--r-- | mysql-test/suite/maria/dynamic.result | 4 | ||||
-rw-r--r-- | mysql-test/suite/maria/dynamic.test | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/suite/maria/dynamic.result b/mysql-test/suite/maria/dynamic.result new file mode 100644 index 00000000000..1e87010e9ca --- /dev/null +++ b/mysql-test/suite/maria/dynamic.result @@ -0,0 +1,4 @@ +create table t1 (a blob, b varchar(20000)) engine=aria row_format=dynamic; +insert t1 (b) values (repeat('a', 20000)); +update t1 set b='b'; +drop table t1; diff --git a/mysql-test/suite/maria/dynamic.test b/mysql-test/suite/maria/dynamic.test new file mode 100644 index 00000000000..f8a1e98cd41 --- /dev/null +++ b/mysql-test/suite/maria/dynamic.test @@ -0,0 +1,7 @@ +# +# MDEV-13748 Assertion `status_var.local_memory_used == 0 || !debug_assert_on_not_freed_memory' failed in virtual THD::~THD after query with INTERSECT +# +create table t1 (a blob, b varchar(20000)) engine=aria row_format=dynamic; +insert t1 (b) values (repeat('a', 20000)); +update t1 set b='b'; +drop table t1; |