查询时MySQL崩溃 [英] Mysql crash when querying

查看:414
本文介绍了查询时MySQL崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我选择2个条件时,mysql总是崩溃.对我来说,这个问题很奇怪:

When I select with 2 conditions, mysql is always crashed.For me the problem is very strange:

  1. 仅用于此表
  2. 这只发生在我的笔记本上.我们有具有相同版本mysql和相同sql的测试服务器(linux)
  3. 这不是只在任何一种情况下发生的
  4. 我尝试删除并重新创建表,转储数据,问题仍然存在
  5. 我尝试重新安装相同版本的mysql,然后在笔记本中再次发生
  6. 有人说mysql 5.6可以,我没有尝试

Mysql版本是5.7.17.OS:win764.我想使用5.7.有人可以提些建议吗?

Mysql version is 5.7.17.OS: win7 64. I want to use 5.7. Can anybody give some advice.

PS:问题可能与my.cnf有关吗?

PS: Is is possible that the problem is relevant with my.cnf?

错误日志:

01:15:19 UTC - mysqld got exception 0xc000001d ;
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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=1
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68005 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0xe5fe040
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...
13ff93c21    mysqld.exe!pow()[pow.asm:1616]
13f4d3b4b    mysqld.exe!get_sweep_read_cost()[handler.cc:7055]
13fa90117    mysqld.exe!ror_intersect_add()[opt_range.cc:5430]
13fa861e9    mysqld.exe!get_best_ror_intersect()[opt_range.cc:5611]
13fa923b5    mysqld.exe!test_quick_select()[opt_range.cc:3078]
13f68bdde    mysqld.exe!get_quick_record_count()[sql_optimizer.cc:5890]
13f68a8cd    mysqld.exe!JOIN::estimate_rowcount()[sql_optimizer.cc:5636]
13f68d479    mysqld.exe!JOIN::make_join_plan()[sql_optimizer.cc:4993]
13f68ef3f    mysqld.exe!JOIN::optimize()[sql_optimizer.cc:363]
13f66a659    mysqld.exe!st_select_lex::optimize()[sql_select.cc:1009]
13f66852d    mysqld.exe!handle_query()[sql_select.cc:164]
13f5227f6    mysqld.exe!execute_sqlcom_select()[sql_parse.cc:4947]
13f5246de    mysqld.exe!mysql_execute_command()[sql_parse.cc:2597]
13f527faa    mysqld.exe!mysql_parse()[sql_parse.cc:5363]
13f5212c9    mysqld.exe!dispatch_command()[sql_parse.cc:1287]
13f52226a    mysqld.exe!do_command()[sql_parse.cc:854]
13f4c9634    mysqld.exe!handle_connection()[connection_handler_per_thread.cc:295]
13fedad82    mysqld.exe!pfs_spawn_thread()[pfs.cc:2195]
13fc046fb    mysqld.exe!win_thread_start()[my_thread.c:38]
13ff9b39f    mysqld.exe!_callthreadstartex()[threadex.c:376]
13ff9b5ea    mysqld.exe!_threadstartex()[threadex.c:354]
773af56d    kernel32.dll!BaseThreadInitThunk()
77723281    ntdll.dll!RtlUserThreadStart()

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (e61cf50): select * from sys_dauth_filter_item
where ENTITY_ID_ = 1
and FIELD_ID_ = 1
Connection ID (thread ID): 2
Status: NOT_KILLED

推荐答案

您应尝试更新Windows.

You should try to update the Windows.

在我的情况下,Windows 2008 R2服务器MySql 5.7.17,将Win更新为sp1 =>解决了该问题.

In my case, MySql 5.7.17, Windows 2008 R2 server, update Win to sp1 => solve that problem.

参考: http://bugs.mysql.com/bug.php?id = 81197

我的错误日志:

Thread pointer: 0x5705b3850
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...
140692571    mysqld.exe!pow()[pow.asm:1616]
13fc439a8    mysqld.exe!Item_func_pow::val_real()[item_func.cc:2924]
13fc03188    mysqld.exe!Item::send()[item.cc:7566]
13fc167a2    mysqld.exe!THD::send_result_set_row()[sql_class.cc:4661]
13fc15a1c    mysqld.exe!Query_result_send::send_data()[sql_class.cc:2716]
140158d8f    mysqld.exe!JOIN::exec()[sql_executor.cc:158]
13fd6d1e1    mysqld.exe!handle_query()[sql_select.cc:185]
13fbe4107    mysqld.exe!execute_sqlcom_select()[sql_parse.cc:5195]
13fbe6036    mysqld.exe!mysql_execute_command()[sql_parse.cc:2794]
13fbe9a83    mysqld.exe!mysql_parse()[sql_parse.cc:5617]
13fbe2b83    mysqld.exe!dispatch_command()[sql_parse.cc:1464]
13fbe3b7a    mysqld.exe!do_command()[sql_parse.cc:1001]
13fbb981c    mysqld.exe!handle_connection()[connection_handler_per_thread.cc:300]
1405d7392    mysqld.exe!pfs_spawn_thread()[pfs.cc:2191]
1402efc4b    mysqld.exe!win_thread_start()[my_thread.c:38]
140699a3f    mysqld.exe!_callthreadstartex()[threadex.c:376]
140699c8a    mysqld.exe!_threadstartex()[threadex.c:354]
770cf34d    kernel32.dll!BaseThreadInitThunk()
77302ca1    ntdll.dll!RtlUserThreadStart()

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (57133e640): SELECT POWER(1024,1)
Connection ID (thread ID): 5
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.

这篇关于查询时MySQL崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆