Bug #20133 mysql 5.0.15-log restart
Submitted: 30 May 2006 2:21 Modified: 30 Jun 2006 5:23
Reporter: wang yue Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.15-log OS:Linux (linux 2.6)
Assigned to: CPU Architecture:Any

[30 May 2006 2:21] wang yue
Description:
my mysql server always restart. it got singal 11 every time. i don't know wheather is a bug, or hardware problems.
I used innodb engine, and my.cnf is:
port            = 3306
socket          = /tmp/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache = 8
query_cache_size= 32M
max_connections = 100
max_connect_errors = 10000
thread_concurrency = 8

innodb_buffer_pool_size = 512M
innodb_additional_mem_pool_size = 40M
innodb_log_file_size = 128M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

I use resolve_dump_stack tool to analyize the error log, and got the stack :
0x814caec handle_segfault + 392
0x4002647e _end + 934963302
0x82ff808 rec_get_offsets_func + 12
0x82a01a0 btr_search_drop_page_hash_index + 1112
0x82a0c18 btr_search_build_page_hash_index + 508
0x829f1f7 btr_search_info_update_slow + 263
0x8294740 btr_cur_search_to_nth_level + 2056
0x8279847 row_sel_get_clust_rec_for_mysql + 99
0x82755ea row_search_for_mysql + 2046
0x81ef6f3 _ZN11ha_innobase10index_readEPcPKcj16ha_rkey_function + 303
0x819ebb9 _Z20join_read_always_keyP13st_join_table + 189
0x8190def _Z10sub_selectP4JOINP13st_join_tableb + 259
0x8196c94 _Z20evaluate_join_recordP4JOINP13st_join_tableiPc + 312
0x8190d9e _Z10sub_selectP4JOINP13st_join_tableb + 178
0x8196956 _Z9do_selectP4JOINP4ListI4ItemEP8st_tableP9Procedure + 278
0x818d73d _ZN4JOIN4execEv + 3945
0x818e245 _Z12mysql_selectP3THDPPP4ItemP13st_table_listjR4ListIS1_ES2_jP8st_orderSB_S2_SB_mP13select_resultP18st_select_lex_unitP13st_sel + 305
0x818a5f2 _Z13handle_selectP3THDP6st_lexP13select_resultm + 234
0x8160209 _Z21mysql_execute_commandP3THD + 673
0x8166ce2 _Z11mysql_parseP3THDPcj + 306
0x815eb02 _Z16dispatch_command19enum_server_commandP3THDPcj + 1170
0x815e635 _Z10do_commandP3THD + 129
0x815db00 handle_one_connection + 528
0x40020941 _end + 934939945
0x420da1ca _end + 969254322

How to repeat:
I didn't find the exact way to repeat it, but it happened always
[30 May 2006 5:01] Valeriy Kravchuk
Thank you for a problem report. Please, upload part of the error log with information about the crash. And, surely, upgrade to 5.0.21 and try to repeat the crash with this version. 5.0.15 is really old.
[30 May 2006 5:13] wang yue
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
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=268435456
read_buffer_size=2093056
max_used_connections=12
max_connections=100
threads_connected=4
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 671343 K
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
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=268435456
read_buffer_size=2093056
max_used_connections=12
max_connections=100
threads_connected=4
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 671343 K
bytes of memory 
Hope that's ok; if not, decrease some variables in the equation.

thd=0x886e180
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Cannot determine thread, fp=0x67a87db8, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x814caec
0x4002647e
0x82ff808
0x82a01a0
0x82a0c18
0x829f1f7
0x8294740
0x8279847
0x82755ea
0x81ef6f3
0x819ebb9
0x8190def
0x8196c94
0x8190d9e
0x8196956
0x818d73d
0x818e245
0x818a5f2
0x8160209
0x8166ce2
0x815eb02
0x815e635
0x815db00
0x40020941
0x420da1ca
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do 
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x67d1ed38  is invalid pointer
thd->thread_id=20550
The manual page at http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.

Number of processes running now: 0
060530 02:13:42  mysqld restarted
060530  2:13:42 [Warning] Changed limits: max_open_files: 1024  max_connections: 100  table_cache: 457
060530  2:13:42 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hos
tname changed!! Please use '--log-bin=tc-wiki-db00-bin' to avoid this problem.
[30 May 2006 5:23] Valeriy Kravchuk
Can you, please, check you general query log for the SQL statement that caused this crash? We have to identify it.

What about upgrade to 5.0.21?
[30 Jun 2006 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".