Bug #74613 MySQL 5.5.9 server crashed (mysqld.exe causes an access violation)
Submitted: 29 Oct 2014 6:52 Modified: 30 Nov 2014 0:35
Reporter: yu liang Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.5.9 OS:Windows (6.1.7600)
Assigned to: CPU Architecture:Any
Tags: crashed

[29 Oct 2014 6:52] yu liang
Description:
copied from error log file 

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=0
read_buffer_size=65536
max_used_connections=58
max_threads=1000
thread_count=58
connection_count=57
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 330242 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x6e322170
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...
000000013F553CCE    mysqld.exe!wait_for_readers()[mf_keycache.c:1436]
000000013F554150    mysqld.exe!free_block()[mf_keycache.c:3378]
000000013F5556DD    mysqld.exe!key_cache_read()[mf_keycache.c:2666]
000000013F66B01E    mysqld.exe!_mi_fetch_keypage()[mi_page.c:35]
000000013F668DE6    mysqld.exe!_mi_search()[mi_search.c:85]
000000013F6595CF    mysqld.exe!mi_rkey()[mi_rkey.c:95]
000000013F63DFE1    mysqld.exe!ha_myisam::index_read_map()[ha_myisam.cc:1558]
000000013F4D42FA    mysqld.exe!join_read_key()[sql_select.cc:12207]
000000013F4CCEE3    mysqld.exe!sub_select()[sql_select.cc:11671]
000000013F4C6BC4    mysqld.exe!evaluate_join_record()[sql_select.cc:11796]
000000013F4CCEF1    mysqld.exe!sub_select()[sql_select.cc:11673]
000000013F4DF2F9    mysqld.exe!do_select()[sql_select.cc:11436]
000000013F4E1D69    mysqld.exe!JOIN::exec()[sql_select.cc:2363]
000000013F4E20D7    mysqld.exe!mysql_select()[sql_select.cc:2573]
000000013F4E24D6    mysqld.exe!handle_select()[sql_select.cc:297]
000000013F3A252A    mysqld.exe!execute_sqlcom_select()[sql_parse.cc:4472]
000000013F3A4F2F    mysqld.exe!mysql_execute_command()[sql_parse.cc:2053]
000000013F3A896A    mysqld.exe!mysql_parse()[sql_parse.cc:5514]
000000013F3A9712    mysqld.exe!dispatch_command()[sql_parse.cc:1038]
000000013F3AA50C    mysqld.exe!do_command()[sql_parse.cc:772]
000000013F3CCD8A    mysqld.exe!do_handle_one_connection()[sql_connect.cc:748]
000000013F3CCFF4    mysqld.exe!handle_one_connection()[sql_connect.cc:686]
000000013F54FE6E    mysqld.exe!pthread_start()[my_winthread.c:63]
000000013F6F1283    mysqld.exe!_callthreadstartex()[threadex.c:348]
000000013F6F1337    mysqld.exe!_threadstartex()[threadex.c:326]
000000007721F56D    kernel32.dll!BaseThreadInitThunk()
0000000077353281    ntdll.dll!RtlUserThreadStart()

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (000000007032F260): =SELECT `ct`.`String` AS CallType, `cs`.`String` AS CallStatus, `cnt`, `ratio`
	FROM (
	SELECT
		`t`.`CallType`,
		`t`.`CallStatus`,
		COUNT(*) AS `cnt`,
		COUNT(*) / (SELECT COUNT(*) FROM `sessiondb_20141020_161938_707`.`tbl_cl_global`) AS `ratio`
		FROM `sessiondb_20141020_161938_707`.`tbl_cl_global`  AS `t`
		GROUP BY `CallType`, `CallStatus` ORDER BY `CallType`, `CallStatus`
	) `tmp` 
	INNER JOIN `sessiondb_20141020_161938_707`.`tbl_ct_strings` AS `ct` ON `tmp`.`CallType` = `ct`.`id`
	INNER JOIN `sessiondb_20141020_161938_707`.`tbl_ct_strings` AS `cs` ON `tmp`.`CallStatus` = `cs`.`id`
Connection ID (thread ID): 343
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

How to repeat:
Very seldom issue. Cannot always reproduce 

Suggested fix:
Need enhancement on server stability. A database server crashes is insane and unacceptable  to any user
[29 Oct 2014 7:45] yu liang
detail version is 5.5.9
[29 Oct 2014 22:21] MySQL Verification Team
Thank you for the bug report. Your server version 5.5.9 is quite older please try today release 5.5.40. Thanks.
[29 Oct 2014 23:46] yu liang
Many thanks, we will do upgrade any test again.
[30 Oct 2014 0:35] MySQL Verification Team
Please reopen this bug after your test and comments. Thanks.
[30 Nov 2014 1: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".