mariadb/tests
Monty 0ccdf54b64 Check and remove high stack usage
I checked all stack overflow potential problems found with
gcc -Wstack-usage=16384
and
clang -Wframe-larger-than=16384 -no-inline

Fixes:
Added '#pragma clang diagnostic ignored "-Wframe-larger-than="'
  to a lot of function to where stack usage large but resonable.
- Added stack check warnings to BUILD scrips when using clang and debug.

Function changed to use malloc instead allocating things on stack:
- read_bootstrap_query() now allocates line_buffer (20000 bytes) with
  malloc() instead of using stack. This has a small performance impact
  but this is not releant for bootstrap.
- mroonga grn_select() used 65856 bytes on stack. Changed it to use
  malloc().
- Wsrep_schema::replay_transaction() and
  Wsrep_schema::recover_sr_transactions().
- Connect zipOpen3()

Not fixed:
- mroonga/vendor/groonga/lib/expr.c grn_proc_call() uses
  43712 byte on stack.  However this is not easy to fix as the stack
  used is caused by a lot of code generated by defines.
- Most changes in mroonga/groonga where only adding of pragmas to disable
  stack warnings.
- rocksdb/options/options_helper.cc uses 20288 of stack space.
  (no reason to fix except to get rid of the compiler warning)
- Causes using alloca() where the allocation size is resonable.
- An issue in libmariadb (reported to connectors).
2024-04-23 14:12:31 +03:00
..
code_quality All-green GitLab CI in 10.4 branch 2023-05-19 13:21:34 +01:00
async_queries.c Check and remove high stack usage 2024-04-23 14:12:31 +03:00
auto_increment.res
auto_increment.tst
big_record.pl Merge 10.4 into 10.5 2020-07-02 09:41:44 +03:00
bug25714.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
check_async_queries.pl Switch Perl DBI scripts from DBD::mysql to DBD::MariaDB driver 2019-07-19 13:39:20 +03:00
CMakeLists.txt MDEV-21303 Make executables MariaDB named 2020-03-21 20:20:29 +01:00
connect_test.c
consistent_snapshot.pl Switch Perl DBI scripts from DBD::mysql to DBD::MariaDB driver 2019-07-19 13:39:20 +03:00
deadlock_test.c
drop_test.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
export.pl mtr: use env for perl 2020-06-23 03:24:46 +02:00
fork2_test.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
fork_big.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
fork_big2.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
function.res
function.tst
grant.res
index_corrupt.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
insert_and_repair.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
insert_test.c
list_test.c MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
lock_test.pl mtr: use env for perl 2020-06-23 03:24:46 +02:00
lock_test.res
mail_to_db.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
myisam-big-rows.tst
mysql_client_fw.c Check and remove high stack usage 2024-04-23 14:12:31 +03:00
mysql_client_test.c MDEV-33506 Show original IP in the "aborted" message. 2024-03-26 11:11:03 +01:00
nonblock-wrappers.h MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
pmail.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
rename_test.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
restore-lock.smack
select_test.c
showdb_test.c MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
ssl_test.c MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
table_types.pl mtr: use env for perl 2020-06-23 03:24:46 +02:00
test_delayed_insert.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30
thread_test.c Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
truncate.pl Merge branch '10.4' into 10.5 2020-09-29 16:59:36 +05:30