Activity log for bug #939866

Date Who What changed Old value New value Message
2012-02-23 22:13:01 Elena Stepanova bug added bug
2012-02-23 22:33:29 Elena Stepanova summary dflt_key_cache->key_cache_mem_size is not set, signal hanlder printskey_buffer_size=0 in the error log dflt_key_cache->key_cache_mem_size is not set, signal hanlder prints key_buffer_size=0 in the error log
2012-02-25 16:16:17 Elena Stepanova description When server gets a signal which causes an abort and attempts to print some debug info in the error log, key_buffer_size is displayed equal 0. It seems to be always so in MariaDB 5.2, 5.3, 5.5, while in MariaDB 5.1, MySQL 5.1 and 5.5 the real value is printed. From what I could see from a quick look, the printed value is dflt_key_cache->key_cache_mem_size, and in MariaDB 5.2 it does not seem to be initialized, although used, while in MariaDB 5.1 it is set on startup. I'm not sure how the variable is used later, so it might be only a cosmetic problem (bad error message), or a functional issue if some other code relies on the value. To reproduce the visible effect, start mysqld, let it start properly, then kill it with SIGABRT or alike and see the error output: We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=0 read_buffer_size=131072 max_used_connections=0 max_threads=153 threads_connected=0 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 334074 K bytes of memory When server gets a signal which causes an abort and attempts to print some debug info in the error log, key_buffer_size is displayed equal 0. It seems to be always so in MariaDB 5.2, 5.3, 5.5, while in MariaDB 5.1, MySQL 5.1 and 5.5 the real value is printed. From what I could see from a quick look, the printed value is dflt_key_cache->key_cache_mem_size, and in MariaDB 5.2 it does not seem to be set, although used, while in MariaDB 5.1 it is set on startup. I'm not sure how much the variable is used later, so it might be only a cosmetic problem (bad error message), or a functional issue if some other code relies on the value. To reproduce the visible effect, start mysqld, let it start up properly, then kill it with SIGABRT or alike and see the error output: We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=0 read_buffer_size=131072 max_used_connections=0 max_threads=153 threads_connected=0 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 334074 K bytes of memory
2012-02-25 16:16:35 Elena Stepanova maria: assignee Igor Babaev (igorb-seattle)
2012-02-25 19:23:07 Igor Babaev maria: status New Confirmed
2012-02-25 19:23:11 Igor Babaev maria: importance Undecided Medium
2012-02-25 20:45:21 Igor Babaev maria: status Confirmed In Progress
2012-03-10 08:05:38 Igor Babaev maria: status In Progress Fix Committed
2012-04-03 15:35:33 Daniel Bartholomew maria: status Fix Committed Fix Released