mariadb/mysql-test/suite/sys_vars/t/thread_stack_basic.test
Daniel Black 8d2665e56b MDEV-34388 default stack size under MSAN needs increasing
Without this increase the mtr test case pre/post conditions will
fail as the stack usage has increased under MSAN with clang-20.1.

ASAN takes a 11M stack, however there was no obvious gain in MSAN
test success after 2M.

The resulting behaviour observed on smaller stack size was a
SEGV normally.

Hide the default stack size from the sysvar tests that expose
thread-stack as a variable with its default value.
2025-05-28 16:30:56 +10:00

26 lines
786 B
Text

#
# only global
#
--source include/not_asan.inc
--source include/not_ubsan.inc
--source include/not_msan.inc
--replace_result 392192 299008
select @@global.thread_stack;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.thread_stack;
--replace_result 392192 299008
show global variables like 'thread_stack';
--replace_result 392192 299008
show session variables like 'thread_stack';
--replace_result 392192 299008
select * from information_schema.global_variables where variable_name='thread_stack';
--replace_result 392192 299008
select * from information_schema.session_variables where variable_name='thread_stack';
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global thread_stack=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session thread_stack=1;