mariadb/sql
unknown 0d8dce039b Fixed BUG#9937: Crash on call to stored procedure.
This only showed up on two known platforms, both ia64 (one HP-UX and one Linux wich icc).
For some reason, they only get half the stack size they are supposed to have, which
makes deep SP recursion overrun the stack before check_stack_overrun() is triggered.
Also made som minor fixes in the check_stack_overrun() definition, supporting variable
margins.
No test case added, but the reason for the bug report was a failed existing test case
on these machines, which now works.


sql/item_cmpfunc.cc:
  Adopted call to new check_stack_overrun() definition.
sql/item_func.cc:
  Adopted calls to new check_stack_overrun() definition.
sql/item_subselect.cc:
  Adopted call to new check_stack_overrun() definition.
sql/mysql_priv.h:
  Changed definition of check_stack_overrun(), thread_stack_min variable no longer needed.
sql/mysqld.cc:
  thread_stack_min variable no longer needed (with variable margin arg. to check_thread_overrun()).
  On (at least some) ia64 machines, it seems we only get half the requested stack in reality,
  so deep SP recursion crashes before the thread overrun check is triggered.
  We work around this by requesting twice the stack requested to get expected size.
sql/sp_head.cc:
  Adopted call to new check_stack_overrun() definition, and use a wider margin
  execution.
sql/sql_parse.cc:
  Modified check_stack_overrun() definition. Removed unused arg that didn't sever any
  purpose, and added a 'margin' argument to support different margins for different
  callrers.
sql/table.cc:
  Adopted call to new check_stack_overrun() definition.
2005-05-26 20:36:14 +02:00
..
examples ha_archive.cc: 2005-05-24 18:51:53 +02:00
share Fix wrong format specifier in error messages. 2005-05-14 02:28:10 +04:00
.cvsignore
add_errmsg
client_settings.h
custom_conf.h
derror.cc Remove compiler warnings and remove not used variables 2005-02-25 16:53:22 +02:00
des_key_file.cc default_modify.c: 2005-05-21 23:23:39 +02:00
discover.cc
field.cc a fix (bug #6961: Traditional: assignment of string to numeric column should fail). 2005-05-13 13:22:27 +05:00
field.h Cleanup's during review 2005-05-25 18:33:32 +03:00
field_conv.cc my_vsnprintf.c, sql_select.cc, sql_delete.cc, field_conv.cc, rt_split.c: 2005-05-20 15:17:13 +02:00
filesort.cc Moved some old test and added a new test to only be run with mysql-test-run --big 2005-04-07 19:24:14 +03:00
frm_crypt.cc
gen_lex_hash.cc a fix (#10742: Can't compile "sql_lex.cc" on AIX 5.2). 2005-05-19 18:56:01 +05:00
gstream.cc
gstream.h
ha_berkeley.cc Fixes while reviewing new code 2005-05-06 11:39:30 +03:00
ha_berkeley.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
ha_blackhole.cc Manual merge (again) 2005-05-14 12:38:12 +04:00
ha_blackhole.h BUG#10241 cygwin port: invalid pragma interface directives 2005-05-04 15:05:56 +02:00
ha_federated.cc mysqld.dsp: 2005-05-23 21:15:00 +02:00
ha_federated.h Chmod -x for ha_federated.h 2005-03-05 00:35:00 +03:00
ha_heap.cc Merge 2005-05-07 08:25:58 -07:00
ha_heap.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
ha_innodb.cc ha_innodb.cc: 2005-05-21 18:44:51 +03:00
ha_innodb.h ha_innodb.h, ha_innodb.cc: 2005-05-17 21:43:15 +03:00
ha_myisam.cc BUG#9714 libsupc++ problem 2005-04-27 11:25:08 +02:00
ha_myisam.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
ha_myisammrg.cc BUG#10687 - Merge engine fails under Windows 2005-05-23 12:31:22 -05:00
ha_myisammrg.h Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE 2005-05-18 19:40:39 +02:00
ha_ndbcluster.cc BUG#9626 2005-05-18 20:50:29 +02:00
ha_ndbcluster.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
handler.cc Change update_auto_increment to return 1 if get_auto_increment() returned ~(ulonglong) 2005-05-18 10:41:35 +03:00
handler.h Resolve merge from 4.1 2005-05-18 13:54:36 -07:00
hash_filo.cc
hash_filo.h
hostname.cc Fixes during review 2005-05-13 14:04:32 +03:00
init.cc
item.cc Move function from header file to make it easier to debug 2005-05-26 00:18:24 +03:00
item.h Move function from header file to make it easier to debug 2005-05-26 00:18:24 +03:00
item_buff.cc Fixed failing test cases 'row.test' when running with --ps-protocol 2005-02-15 16:45:00 +02:00
item_cmpfunc.cc Fixed BUG#9937: Crash on call to stored procedure. 2005-05-26 20:36:14 +02:00
item_cmpfunc.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
item_create.cc Merge mdk10.(none):/home/reggie/bk/mysql-4.1 2005-04-11 09:29:49 -05:00
item_create.h Precision Math implementation 2005-02-09 02:50:45 +04:00
item_func.cc Fixed BUG#9937: Crash on call to stored procedure. 2005-05-26 20:36:14 +02:00
item_func.h Manual merge of fix for bug #9913 into 5.0 tree. 2005-05-09 16:21:57 +04:00
item_geofunc.cc Fix for #6553 and #8776 (no errors on bad spatial data) 2005-04-29 20:23:02 +05:00
item_geofunc.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
item_row.cc Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902) 2005-04-01 15:04:50 +03:00
item_row.h Precision Math implementation 2005-02-09 02:50:45 +04:00
item_strfunc.cc hf's fix for bug #9060 (FORMAT returns incorrect result) 2005-05-20 01:04:08 +05:00
item_strfunc.h Merge neptunus.(none):/home/msvensson/mysql/bug9535 2005-05-17 20:32:00 +02:00
item_subselect.cc Fixed BUG#9937: Crash on call to stored procedure. 2005-05-26 20:36:14 +02:00
item_subselect.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
item_sum.cc compatibility issues 2005-05-20 16:14:35 +03:00
item_sum.h Manual merge of fix for bug #9913 into 5.0 tree. 2005-05-09 16:21:57 +04:00
item_timefunc.cc Merge mysql.com:/home/dlenev/src/mysql-4.1-bg10040 2005-04-25 11:35:30 +04:00
item_timefunc.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
item_uniq.cc Precision Math implementation 2005-02-09 02:50:45 +04:00
item_uniq.h Precision Math implementation 2005-02-09 02:50:45 +04:00
key.cc Fixes while reviewing new code 2005-05-06 11:39:30 +03:00
lex.h BUG#3190 fix (request for STDDEV_SAMP, VAR_SAMP). 2005-02-25 22:19:04 +04:00
lex_symbol.h
lock.cc Bug#7823 - FLUSH TABLES WITH READ LOCK + INSERT DELAYED = deadlock 2005-04-27 22:58:11 +02:00
log.cc Fixes while reviewing new code 2005-05-06 11:39:30 +03:00
log_event.cc Approximative fixes for BUG#2610,2611,9100 i.e. WL#2146 binlogging/replication of routines (stored procs and functions). 2005-05-05 14:20:53 +02:00
log_event.h Approximative fixes for BUG#2610,2611,9100 i.e. WL#2146 binlogging/replication of routines (stored procs and functions). 2005-05-05 14:20:53 +02:00
Makefile.am Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902) 2005-04-01 15:04:50 +03:00
matherr.c
mf_iocache.cc
my_decimal.cc Trimmed fix for bug #9546 (Crashing with huge decimals) 2005-05-06 19:04:58 +05:00
my_decimal.h A lot of fixes to Precision math 2005-05-05 20:06:49 +05:00
my_lock.c
mysql_priv.h Fixed BUG#9937: Crash on call to stored procedure. 2005-05-26 20:36:14 +02:00
mysqld.cc Fixed BUG#9937: Crash on call to stored procedure. 2005-05-26 20:36:14 +02:00
mysqld_suffix.h
net_serv.cc Merge bk-internal.mysql.com:/users/rburnett/bug9721 2005-05-06 15:15:48 +02:00
nt_servc.cc
nt_servc.h cleaned up mysql installation code for windows. 2005-02-09 22:02:48 +02:00
opt_range.cc Cleanup's during review 2005-05-25 18:33:32 +03:00
opt_range.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
opt_sum.cc Fixes while reviewing new code 2005-05-06 11:39:30 +03:00
parse_file.cc now my_printf_error is not better then my_error, but my_error call is shorter 2004-11-13 19:35:51 +02:00
parse_file.h
password.c Merge with 4.1 2004-12-22 13:54:39 +02:00
procedure.cc Precision Math implementation 2005-02-09 02:50:45 +04:00
procedure.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
protocol.cc Merge mysql.com:/home/psergey/mysql-4.1-bug9228 2005-05-01 19:07:01 +04:00
protocol.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
protocol_cursor.cc Fixed BUILD script to use --with-berkeley-db instead of --with-bdb 2005-02-19 18:58:27 +02:00
records.cc Moved some old test and added a new test to only be run with mysql-test-run --big 2005-04-07 19:24:14 +03:00
repl_failsafe.cc First stage of table definition cache 2005-01-06 13:00:13 +02:00
repl_failsafe.h merge 2004-11-12 15:36:31 +02:00
set_var.cc Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-05-18 14:46:05 +05:00
set_var.h Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-05-18 14:50:57 +05:00
slave.cc Approximative fixes for BUG#2610,2611,9100 i.e. WL#2146 binlogging/replication of routines (stored procs and functions). 2005-05-05 14:20:53 +02:00
slave.h merge from 4.1 2005-03-24 14:32:40 +01:00
sp.cc Fixed references to uninitialized memory 2005-05-19 04:48:22 +03:00
sp.h Better approach for prelocking of tables for stored routines execution 2005-03-04 16:35:28 +03:00
sp_cache.cc
sp_cache.h
sp_head.cc Fixed BUG#9937: Crash on call to stored procedure. 2005-05-26 20:36:14 +02:00
sp_head.h Merge in fix Bug#3788 2005-03-08 22:32:09 +00:00
sp_pcontext.cc Fixed BUG#9073: Able to declare two handlers for same condition in same scope 2005-04-08 19:58:04 +02:00
sp_pcontext.h Fixed BUG#9856: Stored procedures: crash if handler for sqlexception, not found. 2005-04-13 16:57:49 +02:00
sp_rcontext.cc Fixed on BUG#6048: Stored procedure causes operating system reboot 2005-05-23 23:43:43 +02:00
sp_rcontext.h Fixed on BUG#6048: Stored procedure causes operating system reboot 2005-05-23 23:43:43 +02:00
spatial.cc Merge mdk10.(none):/home/reggie/bk/mysql-4.1 2005-05-19 15:50:44 -05:00
spatial.h Fix warnings from icc 2005-05-18 19:00:21 +03:00
sql_acl.cc Fix warnings from icc 2005-05-18 19:00:21 +03:00
sql_acl.h Bug#10246 - Parser: bad syntax for GRANT EXECUTE 2005-05-17 19:54:20 +01:00
sql_analyse.cc Remove compiler warnings and remove not used variables 2005-02-25 16:53:22 +02:00
sql_analyse.h Precision Math implementation 2005-02-09 02:50:45 +04:00
sql_base.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-05-25 18:38:29 +03:00
sql_bitmap.h terminal.c, sql_bitmap.h, my_sys.h, configure.in, config.h: 2005-05-05 09:15:14 +02:00
sql_cache.cc Clean up merge from 4.1 2005-05-02 10:19:37 -07:00
sql_cache.h merge 2005-02-07 21:39:37 +02:00
sql_class.cc Fixed on BUG#6048: Stored procedure causes operating system reboot 2005-05-23 23:43:43 +02:00
sql_class.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
sql_client.cc
sql_crypt.cc
sql_crypt.h
sql_db.cc fixed conflicts 2005-05-20 16:34:59 -05:00
sql_delete.cc Manual merge of patch fixing several trigger related bugs with main tree. 2005-05-24 22:35:41 +04:00
sql_derived.cc Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 2005-04-01 13:02:29 +03:00
sql_do.cc Merge with 4.1 2004-12-22 13:54:39 +02:00
sql_error.cc Fixed BUG#9004: Inconsistent behaviour of SP re. warnings 2005-04-22 12:53:48 +02:00
sql_error.h Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902) 2005-04-01 15:04:50 +03:00
sql_handler.cc Better approach for prelocking of tables for stored routines execution 2005-03-04 16:35:28 +03:00
sql_help.cc Eliminate warnings noticed by VC7. This includes fixing my_mmap() on 2005-03-18 16:12:25 -08:00
sql_insert.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-05-25 18:38:29 +03:00
sql_lex.cc Fixed references to uninitialized memory 2005-05-19 04:48:22 +03:00
sql_lex.h Merge hasky:/my/mysql-build into mysql.com:/home/my/mysql-5.0 2005-05-25 19:55:01 +03:00
sql_list.cc
sql_list.h merged 2005-05-19 15:20:10 +02:00
sql_load.cc Fix for bugs: 2005-05-24 22:19:33 +04:00
sql_manager.cc
sql_manager.h
sql_map.cc A fix (mysql_priv.h should be included first) 2005-02-24 12:17:59 +04:00
sql_map.h
sql_olap.cc post-merge fix 2004-11-25 02:23:13 +02:00
sql_parse.cc Fixed BUG#9937: Crash on call to stored procedure. 2005-05-26 20:36:14 +02:00
sql_prepare.cc Fixed failing tests for not 32 bit intel machines 2005-05-16 13:34:23 +03:00
sql_rename.cc Cleanup during reviews 2005-03-16 16:11:01 +02:00
sql_repl.cc Merge 2005-05-24 15:52:48 +01:00
sql_repl.h WL#874 "Extended LOAD DATA". 2005-03-16 04:32:47 +03:00
sql_select.cc Cleanup's during review 2005-05-25 18:33:32 +03:00
sql_select.h A fix and test case for Bug#9478 "mysql_stmt_attr_set mysql_stmt_execute" 2005-05-12 11:16:12 +04:00
sql_show.cc addition of "REFERENCED_TABLE_SCHEMA", 2005-05-20 16:39:28 +04:00
sql_sort.h
sql_state.c
sql_string.cc Cleanup during reviews 2005-03-16 16:11:01 +02:00
sql_string.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
sql_table.cc Fix that we can read tables with the 'older' decimal format used in 5.0.3 & 5.0.4 2005-05-25 18:33:36 +03:00
sql_test.cc Fixes while reviewing new code 2005-05-06 11:39:30 +03:00
sql_trigger.cc Fix for bugs: 2005-05-24 22:19:33 +04:00
sql_trigger.h Fix for bugs: 2005-05-24 22:19:33 +04:00
sql_udf.cc Merge mdk10.(none):/home/reggie/bk/mysql-4.1 2005-05-19 15:50:44 -05:00
sql_udf.h Manual merge of fix for bug #9913 into 5.0 tree. 2005-05-09 16:21:57 +04:00
sql_union.cc merge 4.1->5.0 2005-03-31 10:39:48 +03:00
sql_update.cc Manual merge of patch fixing several trigger related bugs with main tree. 2005-05-24 22:35:41 +04:00
sql_view.cc Manual merge 2005-05-10 16:41:47 -07:00
sql_view.h post-merge fix 2004-11-25 02:23:13 +02:00
sql_yacc.yy Merge hasky:/my/mysql-build into mysql.com:/home/my/mysql-5.0 2005-05-25 19:55:01 +03:00
stacktrace.c Step 2 of the switch to support configuration with NPTL: 2005-04-20 20:38:57 +02:00
stacktrace.h Step 2 of the switch to support configuration with NPTL: 2005-04-20 20:38:57 +02:00
strfunc.cc Remove compiler warnings and remove not used variables 2005-02-25 16:53:22 +02:00
structs.h Add support for slave_compressed_protocol, slave_load_tmpdir, and 2005-05-07 06:55:47 -07:00
table.cc Fixed BUG#9937: Crash on call to stored procedure. 2005-05-26 20:36:14 +02:00
table.h Fix that we can read tables with the 'older' decimal format used in 5.0.3 & 5.0.4 2005-05-25 18:33:36 +03:00
thr_malloc.cc Simpler arena swapping code 2004-11-08 01:13:54 +02:00
time.cc Don't use -lsupc++ with gcc 3.3 and below as this gives linking problems when linking staticly 2005-04-04 16:43:25 +03:00
tzfile.h
tztime.cc Last part of WL#1062: better replication of timezones: no more use 2005-03-22 00:26:12 +01:00
tztime.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
udf_example.cc Merge with 4.1 2004-12-22 13:54:39 +02:00
uniques.cc
unireg.cc Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0-build 2005-05-26 01:38:29 +02:00
unireg.h Merge with 4.1 to get bug fix 2005-02-07 19:42:03 +02:00
watchdog_mysqld