----------------------------- startup a new clean instance: ----------------------------- H:\mysql\5.1\5.1.49\mysql-advanced-gpl-5.1.49-winx64\bin>mysqld --no-defaults --console --skip-gr --skip-na 100809 8:23:02 [Note] Plugin 'FEDERATED' is disabled. InnoDB: The first specified data file .\ibdata1 did not exist: InnoDB: a new database to be created! 100809 8:23:02 InnoDB: Setting file .\ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 100809 8:23:03 InnoDB: Log file .\ib_logfile0 did not exist: new to be created InnoDB: Setting log file .\ib_logfile0 size to 5 MB InnoDB: Database physically writes the file full: wait... 100809 8:23:03 InnoDB: Log file .\ib_logfile1 did not exist: new to be created InnoDB: Setting log file .\ib_logfile1 size to 5 MB InnoDB: Database physically writes the file full: wait... InnoDB: Doublewrite buffer not found: creating new InnoDB: Doublewrite buffer created InnoDB: Creating foreign key constraint system tables InnoDB: Foreign key constraint system tables created 100809 8:23:03 InnoDB: Started; log sequence number 0 0 100809 8:23:03 [Note] mysqld: ready for connections. Version: '5.1.49-enterprise-gpl-advanced' socket: '' port: 3306 MySQL Enterprise Server - Advanced Edition (GPL) ---------------- now run the sql: ---------------- set global innodb_fast_shutdown=0; drop table if exists t1; create table t1(a int)engine=innodb; insert into t1 values (2),(1),(4); --------------------------------------------------- shutdown the instance and start with force recovery and run: select 1 from `t1` order by `a`; --------------------------------------------------- 100809 8:25:46 [Note] mysqld: Normal shutdown 100809 8:25:48 InnoDB: Starting shutdown... 100809 8:25:53 InnoDB: Shutdown completed; log sequence number 0 45941 100809 8:25:53 [Note] mysqld: Shutdown complete H:\mysql\5.1\5.1.49\mysql-advanced-gpl-5.1.49-winx64\bin>mysqld --no-defaults --console --skip-gr --skip-na --innodb-force-recovery=6 100809 8:27:08 [Note] Plugin 'FEDERATED' is disabled. InnoDB: The user has set SRV_FORCE_NO_LOG_REDO on InnoDB: Skipping log redo 100809 8:27:08 InnoDB: Started; log sequence number 0 0 InnoDB: !!! innodb_force_recovery is set to 6 !!! 100809 8:27:08 [Note] mysqld: ready for connections. Version: '5.1.49-enterprise-gpl-advanced' socket: '' port: 3306 MySQL Enterprise Server - Advanced Edition (GPL) 100809 8:28:10 - mysqld got exception 0xc0000005 ; 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=8384512 read_buffer_size=131072 max_used_connections=2 max_threads=151 threads_connected=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 338128 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd: 0x2bf9080 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... 00000001401C0ADF mysqld.exe!make_sortkey()[filesort.cc:766] 00000001401C164C mysqld.exe!find_all_keys()[filesort.cc:618] 00000001401C1B44 mysqld.exe!filesort()[filesort.cc:247] 0000000140170D94 mysqld.exe!create_sort_index()[sql_select.cc:13851] 000000014017530D mysqld.exe!JOIN::exec()[sql_select.cc:2271] 000000014017576A mysqld.exe!mysql_select()[sql_select.cc:2519] 0000000140175B66 mysqld.exe!handle_select()[sql_select.cc:269] 0000000140069AA0 mysqld.exe!execute_sqlcom_select()[sql_parse.cc:5094] 000000014006CA6C mysqld.exe!mysql_execute_command()[sql_parse.cc:2288] 0000000140071410 mysqld.exe!mysql_parse()[sql_parse.cc:6021] 00000001400720C8 mysqld.exe!dispatch_command()[sql_parse.cc:1256] 0000000140072B57 mysqld.exe!do_command()[sql_parse.cc:882] 0000000140099AD7 mysqld.exe!handle_one_connection()[sql_connect.cc:1136] 000000014031D845 mysqld.exe!pthread_start()[my_winthread.c:85] 00000001402E78F7 mysqld.exe!_callthreadstart()[thread.c:295] 00000001402E79C5 mysqld.exe!_threadstart()[thread.c:275] 0000000077D6B71A kernel32.dll!BaseThreadStart() Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0000000001D8F7C0=select 1 from `t1` order by `a` thd->thread_id=60 thd->killed=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. H:\mysql\5.1\5.1.49\mysql-advanced-gpl-5.1.49-winx64\bin>