diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2009-02-14 14:40:22 +0400 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2009-02-14 14:40:22 +0400 |
commit | 0e4333f6ccb5fb2f0fc2797745b9d8bffc2e75c0 (patch) | |
tree | d06d185e5fcf958f977308c5a0d62b8df8f53ae9 /sql/mysql_priv.h | |
parent | d97de79b65f080a9186b59a9986b20d6e06f382d (diff) | |
download | mariadb-git-0e4333f6ccb5fb2f0fc2797745b9d8bffc2e75c0.tar.gz |
Fix for bug#21476: stack overflow crashes server; error-message
stack reservation too small
Problem: some tests fail on HP-UX due to insufficient stack reservation.
Fix: increase stack reservation.
sql/mysql_priv.h:
Fix for bug#21476: stack overflow crashes server; error-message
stack reservation too small
- raised STACK_MIN_SIZE to pass execution_constants.test on HP-UX.
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r-- | sql/mysql_priv.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 015128cda1f..3fba9248940 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -282,16 +282,12 @@ protected: */ #define TABLE_DEF_CACHE_MIN 256 -/* - Value of 9236 discovered through binary search 2006-09-26 on Ubuntu Dapper - Drake, libc6 2.3.6-0ubuntu2, Linux kernel 2.6.15-27-686, on x86. (Added - 100 bytes as reasonable buffer against growth and other environments' - requirements.) - - Feel free to raise this by the smallest amount you can to get the - "execution_constants" test to pass. - */ -#define STACK_MIN_SIZE 12000 ///< Abort if less stack during eval. +/* + Stack reservation. + Feel free to raise this by the smallest amount you can to get the + "execution_constants" test to pass. +*/ +#define STACK_MIN_SIZE 16000 // Abort if less stack during eval. #define STACK_MIN_SIZE_FOR_OPEN 1024*80 #define STACK_BUFF_ALLOC 352 ///< For stack overrun checks |