mirror of
https://github.com/MariaDB/server.git
synced 2025-07-04 02:18:12 +02:00

With MSAN the following test behavious where observed: * funcs_1.myisam_views-big - normal big test for non-debug * innodb_gis.rtree_purge - normal big test with MSAN * main.alter_table_lock - very quick - unclear why disabled * main.cte_recursive - slow on Debug only * main.join_cache_notasan - special MSAN handing for returning OOM added * main.sum_distinct-big - 90 seconds on non-debug - still big however * maria.max_length - normal big test with MSAN * perfschema.statement_digest_long_query - overflows stack on debug Timingsi (on old memory constrained hardware): non-debug: funcs_1.myisam_views-big w2 [ pass ] 78564 innodb_gis.rtree_purge '16k' w2 [ pass ] 5784 innodb_gis.rtree_purge '32k' w2 [ pass ] 5242 innodb_gis.rtree_purge '4k' w1 [ pass ] 8303 innodb_gis.rtree_purge '64k' w1 [ pass ] 6348 innodb_gis.rtree_purge '8k' w2 [ pass ] 5870 main.alter_table_lock w1 [ pass ] 41 main.cte_recursive w1 [ pass ] 15485 main.join_cache_notasan w1 [ pass ] 39 main.sum_distinct-big w2 [ pass ] 96256 maria.max_length w1 [ pass ] 92990 perfschema.statement_digest_long_query w2 [ pass ] 8 debug: funcs_1.myisam_views-big w1 [ skipped ] Can't be run WITH_MSAN and CMAKE_BUILD_TYPE=Debug innodb_gis.rtree_purge '16k' w2 [ pass ] 109788 innodb_gis.rtree_purge '32k' w2 [ pass ] 62361 innodb_gis.rtree_purge '4k' w1 [ pass ] 89423 innodb_gis.rtree_purge '64k' w1 [ pass ] 72082 innodb_gis.rtree_purge '8k' w1 [ pass ] 98452 main.alter_table_lock w2 [ pass ] 38 main.cte_recursive w2 [ pass ] 180047 main.join_cache_notasan w1 [ pass ] 166 main.sum_distinct-big w1 [ skipped ] Can't be run WITH_MSAN and CMAKE_BUILD_TYPE=Debug maria.max_length w1 [ skipped ] Can't be run WITH_MSAN and CMAKE_BUILD_TYPE=Debug perfschema.statement_digest_long_query w1 [ skipped ] Can't be run WITH_MSAN and CMAKE_BUILD_TYPE=Debug
42 lines
1.5 KiB
Text
42 lines
1.5 KiB
Text
#
|
|
# Tests that should be in join_cache but cannot be run with ASAN
|
|
|
|
--source include/have_64bit.inc
|
|
# Disable asan it asan builds crashes when trying to allocate too much memory
|
|
--source include/not_asan.inc
|
|
# Valgrind is useful here, but very slow as lots of memory is allocated
|
|
--source include/no_valgrind_without_big.inc
|
|
--source include/have_innodb.inc
|
|
|
|
# MSAN runs, but ignore its notice. ER_OUTOFMEMORY is expected by tests
|
|
call mtr.add_suppression("MemorySanitizer failed to allocate");
|
|
|
|
--echo #
|
|
--echo # MDEV-28217 Incorrect Join Execution When Controlling Join Buffer Size
|
|
--echo #
|
|
|
|
# This test tries to allocate a too big bufffer, for which ASAN gives an error
|
|
|
|
CREATE TABLE t1 (i int PRIMARY KEY)engine=innodb;
|
|
INSERT INTO t1 VALUES (1332945389);
|
|
CREATE TABLE t2 (i int PRIMARY KEY)engine=innodb;
|
|
INSERT INTO t2 VALUES (1180244875), (1951338178);
|
|
--replace_regex /[0-9][0-9]+/X/
|
|
SET SESSION join_buffer_size= 5250229460064350213;
|
|
SET SESSION join_cache_level = 4;
|
|
SET optimizer_switch='optimize_join_buffer_size=on';
|
|
SELECT t2.i FROM t2 LEFT JOIN t1 ON t1.i = t2.i WHERE t1.i;
|
|
SET optimizer_switch='optimize_join_buffer_size=off';
|
|
--replace_regex /[0-9][0-9]+/X/
|
|
--error ER_OUTOFMEMORY
|
|
SELECT t1.i,t2.i FROM t2 LEFT JOIN t1 ON t1.i = t2.i WHERE t1.i;
|
|
SET SESSION join_buffer_size= 10000000;
|
|
SELECT t1.i,t2.i FROM t2 LEFT JOIN t1 ON t1.i = t2.i WHERE t1.i;
|
|
SET SESSION optimizer_switch= default;
|
|
SET SESSION join_buffer_size= default;
|
|
SET SESSION join_cache_level= default;
|
|
drop table t1,t2;
|
|
|
|
--echo #
|
|
--echo # End of 10.4 tests
|
|
--echo #
|