Commit 492a7d7a authored by Ramil Kalimullin's avatar Ramil Kalimullin

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.
parent 53056443
...@@ -282,16 +282,12 @@ class Default_object_creation_ctx : public Object_creation_ctx ...@@ -282,16 +282,12 @@ class Default_object_creation_ctx : public Object_creation_ctx
*/ */
#define TABLE_DEF_CACHE_MIN 256 #define TABLE_DEF_CACHE_MIN 256
/* /*
Value of 9236 discovered through binary search 2006-09-26 on Ubuntu Dapper Stack reservation.
Drake, libc6 2.3.6-0ubuntu2, Linux kernel 2.6.15-27-686, on x86. (Added Feel free to raise this by the smallest amount you can to get the
100 bytes as reasonable buffer against growth and other environments' "execution_constants" test to pass.
requirements.) */
#define STACK_MIN_SIZE 16000 // Abort if less stack during eval.
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.
#define STACK_MIN_SIZE_FOR_OPEN 1024*80 #define STACK_MIN_SIZE_FOR_OPEN 1024*80
#define STACK_BUFF_ALLOC 352 ///< For stack overrun checks #define STACK_BUFF_ALLOC 352 ///< For stack overrun checks
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment