List:Commits« Previous MessageNext Message »
From:Ramil Kalimullin Date:September 9 2008 8:03am
Subject:bzr commit into mysql-5.1-bugteam branch (ramil:2676) Bug#21476
View as plain text  
#At file:///home/ram/mysql/b21476.5.0/

 2676 Ramil Kalimullin	2008-09-09
      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.
modified:
  sql/mysql_priv.h

per-file messages:
  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.
=== modified file 'sql/mysql_priv.h'
--- a/sql/mysql_priv.h	2008-08-26 08:32:43 +0000
+++ b/sql/mysql_priv.h	2008-09-09 08:03:22 +0000
@@ -166,15 +166,11 @@ MY_LOCALE *my_locale_by_number(uint numb
 #define TABLE_OPEN_CACHE_DEFAULT 64
 
 /* 
- 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

Thread
bzr commit into mysql-5.1-bugteam branch (ramil:2676) Bug#21476Ramil Kalimullin9 Sep