mariadb/BUILD
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
..
autorun.sh
check-cpu
cleanup
cmake_configure.sh
compile-amd64-debug-all
compile-amd64-debug-max
compile-amd64-debug-wsrep
compile-amd64-gcov
compile-amd64-gprof
compile-amd64-max
compile-amd64-valgrind-max
compile-amd64-wsrep
compile-bintar
compile-darwin-mwcc
compile-dist
compile-hpux11-parisc2-aCC
compile-irix-mips64-mipspro
compile-pentium-icc
compile-pentium-icc-yassl
compile-pentium-pgcc
compile-pentium32
compile-pentium32-cybozu
compile-pentium32-debug
compile-pentium32-debug-max
compile-pentium32-debug-openssl
compile-pentium32-gcov
compile-pentium32-gprof
compile-pentium32-icc-valgrind-max
compile-pentium32-max
compile-pentium32-valgrind-max
compile-pentium32-wsrep
compile-pentium64
compile-pentium64-asan-max
compile-pentium64-debug
compile-pentium64-debug-all
compile-pentium64-debug-max
compile-pentium64-gcov
compile-pentium64-gprof
compile-pentium64-max
compile-pentium64-ubsan
compile-pentium64-valgrind-max
compile-pentium64-wsrep
compile-ppc
compile-ppc-debug
compile-ppc-debug-max
compile-ppc-max
compile-solaris-amd64
compile-solaris-amd64-debug
compile-solaris-amd64-debug-forte
compile-solaris-amd64-forte
compile-solaris-amd64-forte-debug
compile-solaris-sparc
compile-solaris-sparc-debug
compile-solaris-sparc-forte
compile-solaris-sparc-purify
FINISH.sh
SETUP.sh Check and remove high stack usage 2024-04-23 14:12:31 +03:00
util.sh